Payment Method changing effect

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
3 months 4 days ago #303961

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 65706
  • Thank you received: 9590
  • MODERATOR
3 months 3 days ago #303965

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:

if(window.checkout.isSource(params, <?php echo (int)$this->step; ?>, <?php echo (int)$this->module_position; ?>))
		return;
from the show_block_payment view file so that the payment view will be refreshed even when it's not needed.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum