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

#   Cart image is lost after adding a product to the cart

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 11 months ago [\#347635](#347635) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Cart image is lost after adding a product to the cart](/forum/27-checkout/905561-cart-image-is-lost-after-adding-a-product-to-the-cart#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")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

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

- [ ![hika&#95;screenshot1.png](/forum/attachment/56166) ](/forum/attachment/56166 "...creenshot1.png") [ ](/forum/attachment/56166?download=1 "...creenshot1.png")
- [ ![hika&#95;screenshot2.png](/forum/attachment/56167) ](/forum/attachment/56167 "...creenshot2.png") [ ](/forum/attachment/56167?download=1 "...creenshot2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTU2MS1jYXJ0LWltYWdlLWlzLWxvc3QtYWZ0ZXItYWRkaW5nLWEtcHJvZHVjdC10by10aGUtY2FydD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

3 years 11 months ago [\#347636](#347636) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart image is lost after adding a product to the cart](/forum/27-checkout/905561-cart-image-is-lost-after-adding-a-product-to-the-cart#347636 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTU2MS1jYXJ0LWltYWdlLWlzLWxvc3QtYWZ0ZXItYWRkaW5nLWEtcHJvZHVjdC10by10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 years 11 months ago [\#347653](#347653) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Cart image is lost after adding a product to the cart](/forum/27-checkout/905561-cart-image-is-lost-after-adding-a-product-to-the-cart#347653 "-- 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")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTU2MS1jYXJ0LWltYWdlLWlzLWxvc3QtYWZ0ZXItYWRkaW5nLWEtcHJvZHVjdC10by10aGUtY2FydD90bXBsPW1hcmtkb3du) 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.049 seconds

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