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 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

| improve this answer | |

You can physically place the checkout shortcode on any page and it should load properly.


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);
| improve this answer | |
  • any reason for the downvote? if there is something wrong with my answer I would like to correct it. – MrSteve Apr 10 '18 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.