WordPress.org

Forums

WooCommerce - excelling eCommerce
Thank you page template (4 posts)

  1. wallyBurger
    Member
    Posted 1 year ago #

    Can someone tell me how do I change the page template for the thankyou page without changing the checkout page template?

    https://wordpress.org/plugins/woocommerce/

  2. lorro
    Member
    Posted 1 year ago #

    I've not done this mod but the general steps are to create a child theme, copy
    wp-content/plugins/woocommerce/templates/checkout/thankyou.php
    to
    wp-content/themes/your-theme/woocommerce/checkout/thankyou.php
    and edit the copy to suit.

    More here.

  3. wallyBurger
    Member
    Posted 1 year ago #

    Thanks lorro.

    Sorry to be daft, but I just want to change the overall page template of this endpoint, just like I change the template of a page using the dropdown in the admin. I want this page to have a particular my-account style template.

    I guess I need to get the page id and edit the _wp_page_template in the database, but this seems silly. I'm sure I'm over-complicating this.

  4. lorro
    Member
    Posted 1 year ago #

    Oh!

    I would expect the checkout page and the thank you page to have the same page_id.

    Maybe the woocommerce_thankyou hook can be pressed to do want you want..

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.