After adding an item to the cart, when the back button is used the visible quantity in the cart reverts to zero. I have tried manipulating it with browser cache or a middle ware. Are there any suggestions on how to keep my quantity consistent.
Hello,
you can try to use this notation :
Cart::add(['id' => '293ad', 'name' => 'Product 1', 'qty' => 1, 'price' => 9.99, 'options' => ['size' => 'large']]);
or to try to use intance
After adding an item to the cart, when the back button is used the visible quantity in the cart reverts to zero. I have tried manipulating it with browser cache or a middle ware. Are there any suggestions on how to keep my quantity consistent.