woogists
3/9/2018 - 6:13 PM

[WooCommerce Core] Custom Add To Cart URL

[WooCommerce Core] Custom Add To Cart URL

/*
 * Set a custom add to cart URL to redirect to
 * @return string
 */
function custom_add_to_cart_redirect() { 
    return 'http://www.yourdomain.com/your-page/'; 
}
add_filter( 'woocommerce_add_to_cart_redirect', 'custom_add_to_cart_redirect' );