-- HikaShop version -- : 2.1.1
-- Joomla version -- : 3.0.4 Stable
I am using code to add product into cart.
$cartClass = hikashop_get('class.cart');
$productsArray = $cartClass->get();
$cartClass->update($productId,$latestQuantity);
This works fine if login session and cart session is same.If meanwhile user session is expired and after login if we edit one of the product of cart it creates new cart.Is there any way to solve this? What I need is to save some data in cart table.It remains untill I edit product.once I delete newly added cart product old one appears and this starts working fine.
Thanks,