példa

[insert_php]

WC()->cart->empty_cart( true );
WC()->cart->add_to_cart( 196, 1 );
add_filter(‘add_to_cart_redirect’, ‘bryce_wc_add_to_cart_redirect’);
function bryce_wc_add_to_cart_redirect( $redirect ) {
$redirect = ‘http://google.com/’;
return $redirect;
}
[/insert_php]

0
    0
    Kosár
    A kosár üresVissza az üzletbe