Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
/** * Redirect WooCommerce to a custom page after checkout */add_action( 'woocommerce_thankyou', 'reialesa_redirect_woo_checkout');function reialesa_redirect_woo_checkout( $order_id ){ $order = wc_get_order( $order_id ); $url = 'Insert URL here'; if ( ! $order->has_status( 'failed' ) ) { wp_safe_redirect( $url ); exit; }}
It worked. Thank you!
I'm Glad to hear that. Thank You.
This code showing thank you name only not showing order detail and other please make code there show all detail for order
It's ideally supposed to redirect the user to the custom-built "Thank You Page of Your Theme"
/**
* Redirect WooCommerce to a custom page after checkout
*/
add_action( 'woocommerce_thankyou', 'reialesa_redirect_woo_checkout');
function reialesa_redirect_woo_checkout( $order_id ){
$order = wc_get_order( $order_id );
$url = 'Insert URL here';
if ( ! $order->has_status( 'failed' ) ) {
wp_safe_redirect( $url );
exit;
}
}
It worked. Thank you!
I'm Glad to hear that. Thank You.
This code showing thank you name only not showing order detail and other please make code there show all detail for order
It's ideally supposed to redirect the user to the custom-built "Thank You Page of Your Theme"