- Posts: 190
- Thank you received: 0
Payment name in Customer Panel
- codewarrior
-
Topic Author
- Offline
in Customer Panel / Command History
when commands are created and not payed, customers have the ability to go again to the payment site, clicking on the Payment button.
But why the payment available the listbox is "paypal1" ?
Could it be possible (and where ?) to name it just "Paypal" ?
Thanks.
Regards
Please Log in or Create an account to join the conversation.
The name used in the dropdown is the name of your plugin.
You can change the name in HikaShop > Payment methods, rename the "paypal 1" plugin to, for example "PayPal" and it will be ok.
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
I don't see another configuration element to change !
Please Log in or Create an account to join the conversation.
You need to change the line:
$method->$name = $method->$type_name.' '.$method->$id_name;
to:
$app = JFactory::getApplication();
$method->$name = $method->$type_name.($app->isAdmin()?' '.$method->$id_name:'');
in the file "administrator/components/com_hikashop/types/plugins.php and that should avoid that.
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
PS : I cleared all caches before
Please Log in or Create an account to join the conversation.
$app = JFactory::getApplication();
$method->$name = $method->$type_name.(!$app->isAdmin()?' '.$method->$id_name:'');
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
I'm really sorry, but it doesn't change anything.
I still have "paypal1" displayed.
Tested on IE9 & FF, cleared all caches before.
Please Log in or Create an account to join the conversation.
I tested the solution and it's working fine. It will be in next release.
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
I tried to put
$method->$name = 'test';
before
$this->values[] = JHTML::_('select.option', $method->$type_name.'_'.$method->$id_name, $method->$name );
and it still displays 'paypal1'
is /administrator/components/com_hikashop/types/plugins.php the right file ?
Please Log in or Create an account to join the conversation.
Try to also replace the line:
$name = $type.' '.$id;
by:
$app = JFactory::getApplication();
$name = $type.($app->isAdmin()?' '.$id:'');
in that same file
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
now I get "paypal" in lowercase which seems to be the Plugin element name
but not my Hikashop plugin name : "PayPal Test"
The whole code is :
Please Log in or Create an account to join the conversation.
Normally, the payment name is used in the dropdown. But it the system doesn't find it, it uses the payment type instead, which is the case on your website.
We were not able to reproduce the problem though.
I checked your website, but I don't see why you have that dropdown since you only have paypal on your website. You could just remove it altogether by turning off the option "Allow customers to change their payment method after checkout" of the configuration.
Please Log in or Create an account to join the conversation.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
do you mean that there should be no listbox, because I have only one payment method enabled ?
The strange thing is that in my Report editions, I see a SIPS ATOS method with Paypal.
A long time ago, I edited SIPS plugin, but it is now disabled.
I don't know how to remove it.
Regards
Please Log in or Create an account to join the conversation.
I have the dropdown too on my end (with only one payment method), so I think that it's normal.
Is it working as you want since you have disabled the option "Allow customers to change their payment method after checkout" ?
Please Log in or Create an account to join the conversation.