WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wallyBurger
    Member
    Posted 3 months 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 3 months 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 3 months 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 3 months 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..

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.