Jump to content
  • 0

Changing "paypal Payments Standard" Label


Question

Posted

Under Payment Method, we want it to simply show the PayPal option as "PayPal" along with a PayPal icon, instead of "PayPal Payments Standard" as it does currently.

 

Where can I change this?

13 answers to this question

Recommended Posts

  • 0
Posted

If dvhost wants to modify payment form (e.g. client_pay), i think isn't so easy because Blesta get this label from DB and not in language definitions (Blesta isn't yet full multi-language).  :(

 

In this case my solution is:

 

1. add the following in "language/it_it/client_pay.php"

$lang['PayPal Payments Standard'] = "PAYPAL as you want";

2. edit app/views/client/bootstrap/client_pay_method.pdt#81, replecing

$this->Html->_($gateway->name);

with

$this->_($gateway->name);

This works for me.

  • 0
Posted

Thank you again for everyone who contributed. I'm going to make the changes later and let you know how it goes.

 

A general observation to the Blesta team: shouldn't basic customisation options like this be integrated into the admin interface, rather than require manual editing of files, which may need to be re-done after updates? Seems like a no-brainer to me.

  • 0
Posted

1. add the following in "language/it_it/client_pay.php"

$lang['PayPal Payments Standard'] = "PAYPAL as you want";
2. edit app/views/client/bootstrap/client_pay_method.pdt#81, replecing

$this->Html->_($gateway->name);
with

$this->_($gateway->name);
This works for me.

are you sur this working for you ? i think the correct way is

1. add the following in "language/en_us/client_pay.php"

$lang['ClientPay.method.paypal_payments_standard'] = "PAYPAL as you want";
2. edit app/views/client/bootstrap/client_pay_method.pdt#81, replecing

$this->Html->_($gateway->name);
with

$this->_("ClientPay.method.paypal_payments_standard", true)
this i think the correct way .
  • 0
Posted

Editing it in the language file components/gateways/nonmerchant/paypal_payments_standard/language/en_us/paypal_payments_standard.php definitely does not work. It does not change anything. 

  • 0
Posted

Editing it in the language file components/gateways/nonmerchant/paypal_payments_standard/language/en_us/paypal_payments_standard.php definitely does not work. It does not change anything. 

 

Your're trying to change the pictures not the name for some reason you said that confused us (Well me anyway).

 

You need this: http://www.blesta.com/forums/index.php?/topic/2532-change-paypal-buttons/

  • 0
Posted

Editing it in the language file components/gateways/nonmerchant/paypal_payments_standard/language/en_us/paypal_payments_standard.php definitely does not work. It does not change anything.

you ned to change the gateway name displayed in the payment page . so imposible , you need to change it in database .

OR

you must make a condition in the app/views/client/bootstrap/client_pay_method.pdt file

search for

foreach ($this->Html->ifSet($nm_gateways, array()) as $gateway) {

replay with :

foreach ($this->Html->ifSet($nm_gateways, array()) as $gateway) {

   if ($gateway->name == "PayPal Payments Standard")
       $gateway->name = "Paypal";
  • 0
Posted

I have now made the following modification to the app/views/client/bootstrap/client_pay_method.pdt file, but it does not work. There's no change on the order page:

                                        <?php
                                        // Set non-merchant gateways
                                        foreach ($this->Html->ifSet($nm_gateways, array()) as $gateway) {
                                                if ($gateway->name == "PayPal Payments Standard")
                                                $gateway->name = "PayPal";
                                        ?>

  • 0
Posted

@naja7host, yes this works fine because $gateway->name returns the string 'PayPal Payments Standard' so i add the language definition for this string (and for other payment type).

 

I preferred this solution that impacts only in view and language file and make possible "translate" every payment name (without check it with an if control).

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...