Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Comment rediriger la page “Panier” et sauter la page Commande

<?php
add_filter( 'add_to_cart_redirect', 'redirect_to_checkout' );
function redirect_to_checkout() {
 global $woocommerce;
 $checkout_url = $woocommerce->cart->get_checkout_url();  
 return $checkout_url;
}
?>
Source by wpformation.com #
 
PREVIOUS NEXT
Tagged: #Comment #rediriger #la #page #sauter #la #page #Commande
ADD COMMENT
Topic
Name
9+4 =