Created
April 2, 2016 10:57
-
-
Save javierarcheni/b8ad6f2e94da6860ba99db2a8ee79a04 to your computer and use it in GitHub Desktop.
Woocommerce enviar a caja al hacer clic en añadir a la cesta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_cart'); | |
function woo_redirect_to_cart() { | |
$cart_url = WC()->cart->get_cart_url(); | |
return $cart_url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment