How to redirect Quick buy button submited to other page with Add to cart
-
Hi Author, when I submited Quick buy Button, it redirect to Checkout Page, but contemporaneous Add to cart button redirect to Checkout Page.I do not want such.Although I use function redirect Add to cart submited to Cart Page
I want to submited Quick buy button redirect to Checkout Page, and Add to Cart redirect to Cart Page. But two buttons always get URL are the same. My function Add to cart redirect
function custom_add_to_cart_redirect() { return 'https://abcxyz.com/cart/'; } add_filter( 'woocommerce_add_to_cart_redirect', 'custom_add_to_cart_redirect' );
I’m setting Woocommerce – Product – Display – Not check Redirect to the cart page after successful addition – Checked Enable AJAX add to cart buttons on archives
WC quick buy setting: Redirect Location – Checkout Page
Pls help me, Thanks you !
- The topic ‘How to redirect Quick buy button submited to other page with Add to cart’ is closed to new replies.