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

#   Having several instances of a same product in the cart

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

5 years 11 months ago [\#327745](#327745) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Having several instances of a same product in the cart](/forum/27-checkout/901566-having-several-instances-of-a-same-product-in-the-cart#327745 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  We need to have several instances of the same product in the same cart, with some custom fields that will be processed by a custom plugin.  We have to know something about it?  For example:  1. If having multiple instances of the product in the same cart will have some problem like data being wiped in some context (or if there is a function that deletes duplicated entries in the cart)  2. If the data is being mixed in some point (I have checked the class cart and I haven't seen anything)  Thanks in advance.  -- Victor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23

Hi,

We need to have several instances of the same product in the same cart, with some custom fields that will be processed by a custom plugin.

We have to know something about it?

For example:

1. If having multiple instances of the product in the same cart will have some problem like data being wiped in some context (or if there is a function that deletes duplicated entries in the cart)

2. If the data is being mixed in some point (I have checked the class cart and I haven't seen anything)

Thanks in advance.

--
Victor

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMTU2Ni1oYXZpbmctc2V2ZXJhbC1pbnN0YW5jZXMtb2YtYS1zYW1lLXByb2R1Y3QtaW4tdGhlLWNhcnQ/dG1wbD1tYXJrZG93bg==) 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
-
-

5 years 11 months ago [\#327751](#327751) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Having several instances of a same product in the cart](/forum/27-checkout/901566-having-several-instances-of-a-same-product-in-the-cart#327751 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  We need to have several instances of the same product in the same cart, with some custom fields that will be processed by a custom plugin.  We have to know something about it?  For example:  1. If having multiple instances of the product in the same cart will have some problem like data being wiped in some context (or if there is a function that deletes duplicated entries in the cart)  2. If the data is being mixed in some point (I have checked the class cart and I haven't seen anything)  Thanks in advance.  -- Victor")*

Hi,

Having several instances of the same product with different characteristics, options or custom item fields values in the same cart is no problem.
You can test it here:
[ demo.hikashop.com/index.php/en/hikashop/product-page/with-form](https://demo.hikashop.com/index.php/en/hikashop/product-page/with-form)
If you add the product to the cart with different values in the custom item fields, you'll have several times the same product in the cart with the different values you enter.
If you add to the cart the same product with the same custom item fields/characteristics/options then the quantity of the product already in the cart will be increased instead of creating a new entry.
So that's basically it.

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

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