Only 1 item in cart
tripex opened this issue · 2 comments
tripex commented
Everytime I'm adding an item to the cart, it's only return one item, even if I added multiple products:
This is my code to add an item:
LaraCart::addLine($product['id'], $product['name'], 1, $product['price'], $attributes); return LaraCart::getItems();
Anybody experienced the same? LaraCart::getItems() only returns the latest added item.
lukepolo commented
This sounds like a session issue , I’ll test it out and see if I can reproduce