News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

No products are loaded into the cart - Multivendor option - VM 3.0.17.4

Started by giniapo, July 21, 2016, 20:50:17 PM

Previous topic - Next topic

sherylenedyer

Hello,

I'm experiencing a similar issue. I just want to know where I should paste the code that Milbo included.

Milbo

You wrote to me per pn:
Hello Milbo,

I'm hoping you can help me. I selected the 'first product determines the seller" option for virtue mart multi vendor feature. My issue is when a customer deletes the product from the cart and tries to add a product from another seller, it keeps the cart locked.

This is another problem. The code is already implemented. Your problem is just an extra line

open the cart helper in FE/helpers (/component/com_virtuemart/helpers/cart.php), around line 213 you see

if(count(self::$_cart->cartProductsData) >0 and empty(self::$_cart->vendorId)){
self::$_cart->vendorId = 1;
}


replace it against

$cp = count(self::$_cart->cartProductsData);
if( $cp >0 and empty(self::$_cart->vendorId)){
self::$_cart->vendorId = 1;
} else if ($cp == 0) {
self::$_cart->vendorId = 0;
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/