Cart image is lost after adding a product to the cart

  • Posts: 1055
  • Thank you received: 11
  • Hikashop Business
1 year 11 months ago #347635

-- HikaShop version -- : 4.7.0
-- PHP version -- : 7.4.3.

Hello!
As recommended, we overrode the appropriate language strings, in order to insert into the cart an image together with product quantity.
Yet, there is a problem, when a product is added into the cart, the cart image placed at the navbar disappears and reappears only after a page refresh (screenshots included).
Can you fix the problem?
Thank you

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #347636

Hi,

I think the problem is with the URL you're using for the image. You're using a relative URL, not an absolute one.
When the module is refreshed, the browser is trying to load the image el/clothes/images/shopping-bag0.png instead of images/shopping-bag0.png and that's why it doesn't work.
I would recommend using the full URL in your overrides to avoid the issue.

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

  • Posts: 1055
  • Thank you received: 11
  • Hikashop Business
1 year 11 months ago #347653

Indeed, that fixed the problem!
Thanks a lot, Nicolas.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum