Woocommerce - custom post type of checkout page
Is it possible to set custom post type page as a checkout page in woocommerce? I can set only default pages, but I need different post type.
Is it possible to set custom post type page as a checkout page in woocommerce? I can set only default pages, but I need different post type.
You can physically place the checkout shortcode on any page and it should load properly.
[woocommerce_checkout]
You will then probably want the WooCommerce buttons to link to the correct page from the cart page etc. There is a hook to enable this - put the below snippet in your theme functions.php file and use the post id of the custom checkout page. For this example my custom checkout has a post id of 62:
add_filter('woocommerce_get_checkout_url', function($url) {
return get_permalink(62);
});
you have the answear right here: WooCommerce doc
Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php
Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.