Answers for "Comment rediriger la page “Panier” et sauter la page Commande"

PHP
0

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;
}
?>
Posted by: Guest on September-29-2021

Code answers related to "Comment rediriger la page “Panier” et sauter la page Commande"

Browse Popular Code Answers by Language