- Posts: 21
- Thank you received: 0
Payment Method changing effect
7 years 7 months ago #303961
by gigi974
Payment Method changing effect was created by gigi974
-- url of the page with the problem -- :
drtuba.eu/test/shop/checkout
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : After cheange payment method loadin image is not working. there is not looks like something changed or not.
After change payment method there ajax loading iamge is not working while payment method is changing. but background image also not changing .
Please suggestion a solution.
Thanks
Sanjeev Kumar
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : After cheange payment method loadin image is not working. there is not looks like something changed or not.
After change payment method there ajax loading iamge is not working while payment method is changing. but background image also not changing .
Please suggestion a solution.
Thanks
Sanjeev Kumar
Please Log in or Create an account to join the conversation.
7 years 7 months ago #303965
by nicolas
Replied by nicolas on topic Payment Method changing effect
Hi,
This is because the payment methods selection interface is not refreshed anymore since a few releases when you change the payment method.
And you have a customization of the show_block_payment view file to set a class on the row of the selected payment method in PHP.
But this customization doesn't have any javascript to refresh the classes of the rows when the payment method changes and only rely on the fact that the payment methods selection interface was refreshed after the selection.
So there are two solutions:
- you can add custom javascript to refresh the classes when the payment method selection changes.
- you can remove the code:
from the show_block_payment view file so that the payment view will be refreshed even when it's not needed.
This is because the payment methods selection interface is not refreshed anymore since a few releases when you change the payment method.
And you have a customization of the show_block_payment view file to set a class on the row of the selected payment method in PHP.
But this customization doesn't have any javascript to refresh the classes of the rows when the payment method changes and only rely on the fact that the payment methods selection interface was refreshed after the selection.
So there are two solutions:
- you can add custom javascript to refresh the classes when the payment method selection changes.
- you can remove the code:
Code:
if(window.checkout.isSource(params, <?php echo (int)$this->step; ?>, <?php echo (int)$this->module_position; ?>))
return;
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds