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

#   Hikashop cart module not working properly

##

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 month ago [\#335393](#335393) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335393 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")* was created by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")*

-- url of the page with the problem -- : [ 06.bluepoint-concept.nl/resto-1](https://06.bluepoint-concept.nl/resto-1)
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.x

hello,

We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart.
When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.

[ ![mobileview.png](/forum/attachment/53484) ](/forum/attachment/53484 "mobileview.png")

[ ![productpage.png](/forum/attachment/53485) ](/forum/attachment/53485 "productpage.png")

Hope you can help solve this, because most of our visitors come on mobile..

Thanks

- [ ![mobileview.png](/forum/attachment/53484) ](/forum/attachment/53484 "mobileview.png") [ ](/forum/attachment/53484?download=1 "mobileview.png")
- [ ![productpage.png](/forum/attachment/53485) ](/forum/attachment/53485 "productpage.png") [ ](/forum/attachment/53485?download=1 "productpage.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

5 years 1 month ago [\#335395](#335395) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335395 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi,

The problem is that you have the cart module with the id 200 (the one displayed at the bottom) twice on the page:
[ i.imgur.com/FAUYkCa.png](https://i.imgur.com/FAUYkCa.png)
So when the cart module is updated, it searches twice for the HTML with the id hikashop_cart_200 and the browser refturns each time the last one and refreshes twice the last one.
You can have several cart modules displayed on the same page, but they need to use different instances (different ids). You can't have a module instance displayed twice since both instances will share ids.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 month ago [\#335461](#335461) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335461 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi,

Thanks, We have missed that in our investigation.
Now we know how to solve this..

Thanks.. ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 month ago [\#335463](#335463) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335463 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi,
Sorry but i am back again. The problem still exists.
We have 1 cart module in position "winkelwagen" and set only for the desktop, next to this we have another cart module for the position "winkelwagen mobiel" and set only for tablet and phone.

So when i turn off the cart module for desktop, is see in the source code (see attachment) two time the cart module for mobile ..

i also see in the product/cart.php the the module is called twice..

In all different ways i can not discover why it is loaded twice while we only have one module for the mobile view..

[ ![screenshot-nimbus-capture-2021.09.06-13&#95;37&#95;56.png](/forum/attachment/53499) ](/forum/attachment/53499 "...6-13&#95;37&#95;56.png")

*This attachment is hidden for guests.
Please log in or register to see it.*

hope you can help..

- [ ![screenshot-nimbus-capture-2021.09.06-13&#95;37&#95;56.png](/forum/attachment/53499) ](/forum/attachment/53499 "...6-13&#95;37&#95;56.png") [ ](/forum/attachment/53499?download=1 "...6-13&#95;37&#95;56.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

5 years 1 month ago [\#335467](#335467) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335467 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi,

You need to check with your template provider. It's the template which loads the modules in the different positions.
If modules in a position are rendered twice, then that's not normal.
You could probably edit product / cart.php to skip its rendering if the id of the module has already been processed, but then, you will miss the HTML of one of the two hikashop_cart_200 which might lead to the module not displaying in some cases where you expect. However, I don't know how the template's mobile position works so I can't say what should be done as I don't know.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 month ago [\#335532](#335532) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335532 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

I checked the template, we only have one position for mobile for the cart and one for the desktop.
We can not find a place where the template is rendering two times the cart module for mobile view.
Desktop view is allright and only loaded once.

So if you have more ideas please let me know..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

5 years 1 month ago [\#335536](#335536) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335536 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi,

No, the problem is the same on desktop. The cart module is loaded three times there too. It's just that the cart modules HTML of the mobile position are hidden so you don't see the problem.
Did you contact your template support ? What did they tell you ? That's where I would personnally start.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMzEzOC1oaWthc2hvcC1jYXJ0LW1vZHVsZS1ub3Qtd29ya2luZy1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 1 month ago [\#335621](#335621) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[Hikashop cart module not working properly](/forum/27-checkout/903138-hikashop-cart-module-not-working-properly#335621 "-- url of the page with the problem -- :   06.bluepoint-concept.nl/resto-1  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.x  hello,  We discovered a little issue regarding the hikashop cart module, on the mobile view see attachments, we have the cart module on the bottom, when we put on mobile 1 product without any options in the cart the counter will not add 1 product but when i go from mobile view to pc view the product is in the cart. When we put a product after that in the cart with options, the counter is spinning and then will show 2 products in the cart and we can visit the cart.  Hope you can help solve this, because most of our visitors come on mobile..  Thanks")*

Hi Nicolas,

We have found the position in the template. was really hidden so it took a while.
Thanks for helping and thinking along.

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

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

[](#top)
