I am new to Laravel. Add to cart button to add same product into cart with +1 quantity. Trying to check if stock greater than qty. When one item is qty 1 than 2 stock I would like to display some text "successfully added to the cart"
Storing the quantity in session for each product in the cart. Total Stock have 2. if 3 quantity in session than 2 total stock, prevent add to cart. like display "the requested qty is not availabile".
I am new to Laravel. Add to cart button to add same product into cart with +1 quantity. Trying to check if stock greater than qty. When one item is qty 1 than 2 stock I would like to display some text "successfully added to the cart"
Storing the quantity in session for each product in the cart. Total Stock have 2. if 3 quantity in session than 2 total stock, prevent add to cart. like display "the requested qty is not availabile".