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

#   ad to cart error hikashop after insert vendor on c

##

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

Less More

- Posts: 22
- Thank you received: 1
-
-

10 years 6 months ago [\#238689](#238689) by [mprefit](/forum/user/395-mprefit "View mprefit's Profile")  *[ad to cart error hikashop after insert vendor on c](/forum/19-hikamarket/884242-ad-to-cart-error-hikashop-after-insert-vendor-on-c#238689 "After I added a vendor on products custom fields, when i want to ad to cart the vendor product it gives me following error: Can't add product Toate titlurile bune au fost datee: Carte integrală mobi of vendor Cart is empty. How can I solve this issue?")* was created by *[mprefit](/forum/user/395-mprefit "View mprefit's Profile")*

After I added a vendor on products custom fields, when i want to ad to cart the vendor product it gives me following error:
Can't add product Toate titlurile bune au fost datee: Carte integrală mobi of vendor
Cart is empty.
How can I solve this issue?

- [ ![Screen&#95;Shot&#95;2016-04-29&#95;at&#95;13&#95;50&#95;17.png](/forum/attachment/31123) ](/forum/attachment/31123 "...t&#95;13&#95;50&#95;17.png") [ ](/forum/attachment/31123?download=1 "...t&#95;13&#95;50&#95;17.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#238721](#238721) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ad to cart error hikashop after insert vendor on c](/forum/19-hikamarket/884242-ad-to-cart-error-hikashop-after-insert-vendor-on-c#238721 "After I added a vendor on products custom fields, when i want to ad to cart the vendor product it gives me following error: Can't add product Toate titlurile bune au fost datee: Carte integrală mobi of vendor Cart is empty. How can I solve this issue?")*

Hi,

You have a setting which limit the number of vendors in the cart.
When you look at the product with the vendor account, it is just one product but in the shop we can see that the product have variants.

So we need to know how the product is configured in the backend ; what are the vendor assignation.
Maybe there is something to change in the configuration or maybe a patch would be required.
But currently, we have to retrieve more details about your current settings.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 22
- Thank you received: 1
-
-

10 years 6 months ago [\#238731](#238731) by [mprefit](/forum/user/395-mprefit "View mprefit's Profile")  Replied by *[mprefit](/forum/user/395-mprefit "View mprefit's Profile")* on topic *[ad to cart error hikashop after insert vendor on c](/forum/19-hikamarket/884242-ad-to-cart-error-hikashop-after-insert-vendor-on-c#238731 "After I added a vendor on products custom fields, when i want to ad to cart the vendor product it gives me following error: Can't add product Toate titlurile bune au fost datee: Carte integrală mobi of vendor Cart is empty. How can I solve this issue?")*

Hi Jerome,
If I want to pay vendors directly in their account can I leave Payments and Shipping / Limit vendors in cart/ to NO LIMITATION?
One vendor in cart setting it is for the split payment process? If I leave to NO LIMITATION in cart the error disappear. But, I attached you my settings to see, maybe a patch is required.

Regards,
Mihnea

- [ ![setari.jpg](/forum/attachment/31134) ](/forum/attachment/31134 "setari.jpg") [ ](/forum/attachment/31134?download=1 "setari.jpg")
- [ ![Screen&#95;Shot&#95;2016-04-29&#95;at&#95;17&#95;31&#95;47.png](/forum/attachment/31135) ](/forum/attachment/31135 "...t&#95;17&#95;31&#95;47.png") [ ](/forum/attachment/31135?download=1 "...t&#95;17&#95;31&#95;47.png")
- [ ![Screen&#95;Shot&#95;2016-04-29&#95;at&#95;17&#95;31&#95;58.png](/forum/attachment/31136) ](/forum/attachment/31136 "...t&#95;17&#95;31&#95;58.png") [ ](/forum/attachment/31136?download=1 "...t&#95;17&#95;31&#95;58.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#238735](#238735) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[ad to cart error hikashop after insert vendor on c](/forum/19-hikamarket/884242-ad-to-cart-error-hikashop-after-insert-vendor-on-c#238735 "After I added a vendor on products custom fields, when i want to ad to cart the vendor product it gives me following error: Can't add product Toate titlurile bune au fost datee: Carte integrală mobi of vendor Cart is empty. How can I solve this issue?")*

Hi,

I have an identical configuration than yours and I cannot reproduce the issue ; which is strange.
In order to be sure, I wrote a patch which should avoid the problem for what I suspect.

In the file "administrator/components/com_hikamarket/classes/cart.php" please replace Code:

if(!empty($cartContent)) { foreach($cartContent as $p) { $v = (int)$p-&gt;product_vendor_id;

By Code:

if(!empty($cartContent)) { foreach($cartContent as $p) { if((int)$p-&gt;cart_product_quantity == 0) continue; $v = (int)$p-&gt;product_vendor_id; if($v == 0 &amp;&amp; $p-&gt;product_type == 'variant' &amp;&amp; isset($cartContent[ (int)$p-&gt;cart_product_parent_id ])) { $v = (int)$cartContent[ (int)$p-&gt;cart_product_parent_id ]-&gt;product_vendor_id; }

And please confirm me if it fixs the issue so I could include that patch in HikaMarket 1.7.0 (because the automatic update is launched).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

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