Added woocommerce_add_to_cart_redirect to ajax cart button, closes #8349

This commit is contained in:
Claudio Sanches 2015-06-11 11:40:26 -03:00
parent a3ed5efcd9
commit 6d3ea23fac
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class WC_Frontend_Scripts {
'ajax_url' => WC()->ajax_url(),
'wc_ajax_url' => WC_AJAX::get_endpoint(),
'i18n_view_cart' => esc_attr__( 'View Cart', 'woocommerce' ),
'cart_url' => wc_get_page_permalink( 'cart' ),
'cart_url' => apply_filters( 'woocommerce_add_to_cart_redirect', WC()->cart->get_cart_url() ),
'is_cart' => is_cart(),
'cart_redirect_after_add' => get_option( 'woocommerce_cart_redirect_after_add' )
);