How to redirect to checkout or other pages on click of ‘Add to Cart’ link

Cashier for WooCommerce plugin provides a ‘Add to Cart Redirect’ feature using which you can redirect users to checkout or any other page or custom URL when a product is added to cart. You can configure redirects at the following levels, in order of priority – for product variation and product. Steps to enable Add to Cart redirect

  1. Go to Products
  2. Open a product for editing
  3. For variable products, click on Variations, and under Add to Cart redirect, select a page from the drop-down where you want to redirect users for each variation. Add to cart redirect setting for variation - Cashier
  4. For simple products, click on General and under Add to Cart redirect, select a page from the drop-down where you want to redirect users. Add to cart redirect setting for simple product - Cashier
That’s it. Note – The Add to Cart redirect will be work for products in the following priorityVariations > Variable Product > Default behavior So, if the Add to Cart redirect is not set for a particular product variant, then the one set in the parent variable product will be applied. And if it is not set in both, the default one will be applied.