dvhost Posted February 2, 2015 Report Share Posted February 2, 2015 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? Quote Link to comment Share on other sites More sharing options...
0 Michael Posted February 2, 2015 Report Share Posted February 2, 2015 Gateway Language file. components/gateways/nonmerchant/paypal_payments_standard/language/en_us/paypal_payments_standard.php serge 1 Quote Link to comment Share on other sites More sharing options...
0 a.daniello Posted February 2, 2015 Report Share Posted February 2, 2015 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. Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
0 dvhost Posted February 2, 2015 Author Report Share Posted February 2, 2015 Is it safe to include HTML there, or what would the best way to do that be? I want to add credit card and PayPal logos. Quote Link to comment Share on other sites More sharing options...
0 dvhost Posted February 2, 2015 Author Report Share Posted February 2, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted February 2, 2015 Report Share Posted February 2, 2015 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 . Quote Link to comment Share on other sites More sharing options...
0 dvhost Posted February 3, 2015 Author Report Share Posted February 3, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted February 3, 2015 Report Share Posted February 3, 2015 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/ Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted February 3, 2015 Report Share Posted February 3, 2015 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"; Quote Link to comment Share on other sites More sharing options...
0 dvhost Posted February 3, 2015 Author Report Share Posted February 3, 2015 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"; ?> Quote Link to comment Share on other sites More sharing options...
0 a.daniello Posted February 3, 2015 Report Share Posted February 3, 2015 @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). Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
0 serge Posted February 3, 2015 Report Share Posted February 3, 2015 I tried above solutions for change payment gateway label, Only things that work for me is to edit in database Table "gateways" & update "name" column for given gateway Quote Link to comment Share on other sites More sharing options...
0 a.daniello Posted February 3, 2015 Report Share Posted February 3, 2015 But only now, in his last post, i read that dvhost tell about "order form". In this case, you'ld make changes in plugins/order and depens on template that you use. Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
0 a.daniello Posted February 3, 2015 Report Share Posted February 3, 2015 However, i try to mark this as feature request because i think (thinked) that the right way to do this is as Licensecart said (simply modify the gateway language file). http://www.blesta.com/forums/index.php?/topic/4061-allow-for-a-separate-translatable-namedescription-of-the-gateway-name/ Quote Link to comment Share on other sites More sharing options...
Question
dvhost
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?
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.