Hi Aizaz Imtiaz Awan
I hope you’re doing well. I need your assistance with a customization on the single product page of my WooCommerce store.
I’ve set the “Buy Now” button to redirect users directly to the checkout page. However, when users click this button, the checkout page currently shows all products that are already in the cart, along with the selected product.
What I would like to achieve is the following:
When a user clicks the “Buy Now” button, they should be redirected to the checkout page with only the selected product in the cart.
If users want to purchase multiple items from the cart, they should still be able to go through the regular cart page and proceed to checkout with all selected products.
What I would like to achieve is the following:
When a user clicks the “Buy Now” button, they should be redirected to the checkout page with only the selected product in the cart.
If users want to purchase multiple items from the cart, they should still be able to go through the regular cart page and proceed to checkout with all selected products.