Skip to main content

Cart image is lost after adding a product to the cart

3 years 11 months ago #347635 by verzevoul
-- 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

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

3 years 11 months ago #347636 by nicolas
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.

3 years 11 months ago #347653 by verzevoul
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.056 seconds
Powered by Kunena Forum