[Skip to main content](#vessel-content)

#   Payment Method changing effect

##

- **[gigi974](/forum/user/32449-gigi974 "View gigi974's Profile")**
- [![gigi974's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32449-gigi974 "View gigi974's Profile") Topic Author
- [ Offline](/forum/user/32449-gigi974)

Less More

- Posts: 21
- Thank you received: 0
-
-

7 years 8 months ago [\#303961](#303961) by [gigi974](/forum/user/32449-gigi974 "View gigi974's Profile")  *[Payment Method changing effect](/forum/29-payment-methods/896944-payment-method-changing-effect#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")* was created by *[gigi974](/forum/user/32449-gigi974 "View gigi974's Profile")*

-- url of the page with the problem -- : [ drtuba.eu/test/shop/checkout](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTY5NDQtcGF5bWVudC1tZXRob2QtY2hhbmdpbmctZWZmZWN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

7 years 8 months ago [\#303965](#303965) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment Method changing effect](/forum/29-payment-methods/896944-payment-method-changing-effect#303965 "-- 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")*

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

if(window.checkout.isSource(params, &lt;?php echo (int)$this-&gt;step; ?&gt;, &lt;?php echo (int)$this-&gt;module_position; ?&gt;)) 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTY5NDQtcGF5bWVudC1tZXRob2QtY2hhbmdpbmctZWZmZWN0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.104 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
