Hello,
I am facing a problem when the following steps are followed:
1. I add a product to a cart and proceed to checkout.
2. I go back to the product page without completing the checkout
3. If I try to add the same product with the exact same options at the cart I get a notification "This product is already in the cart".
- Is there a way to skip that check?
I want to allow the customers to add the same product.
Actually the case for the shop is that only one product will be placed at the cart at a time, so if there is way to empty the cart before any other check is made when the "buy now" button is pressed, I guess my problem will be solved.
- I empty the cart before the add to cart but I guess that that function is called after the check that results to the notification is called.
function fn_addonName_pre_add_to_cart( $product_data, &$cart, &$auth, $update){//clear cart before adding new itemsfn_clear_cart($cart, true, true);}
Any help is appreciated.