Thank-you pages

Updated

After paying, customers land on one of your own pages instead of WooCommerce’s plain thank-you page. Use it to say what happens next, such as “We’ll email the workshop details a week before”, and to show the order details where you want them.

Set a shop-wide thank-you page

  1. Make the page under Pages → Add New and publish it
  2. Go to WooCommerce → Thank-you pages
  3. Pick the page under Shop-wide thank-you page
  4. Select Save Changes

Every order lands there, unless a product in it has its own page. Pick WooCommerce’s own thank-you page to go back.

If you unpublish a thank-you page, orders skip it (going to the shop-wide page, or WooCommerce’s own) until you publish it again. The settings keep it, marked (not published).

Give a product its own thank-you page

  1. Edit the product
  2. In Product data, open Advanced
  3. Pick the page under Thank-you page
  4. Select Update

For a variable product, each variation can have its own page too: open Variations, expand one and pick its Thank-you page. Same as the product uses the product’s page.

When an order has several products with their own page, the customer lands on the page of the first one in the order. WooCommerce → Thank-you pages lists every product with its own page.

Show the order details

The page shows its own content. To show the order’s details on it, add a Shortcode block with one of these:

  • [order_detail key="order_number"]: one detail. The keys are order_number, order_date, total, subtotal, payment_method, shipping_method, status, quantity, billing_address, shipping_address, billing_first_name, download_urls, and overview for WooCommerce’s whole order summary (“Thank you. Your order has been received.”, the order number, date, total and payment method, the products and the billing address)
  • [confirmation_order_details]: the table of products and totals
  • [wcctyp_content order_status="processing"]Text[/wcctyp_content]: text shown only for orders with that status, such as on-hold for bank transfer orders. Without order_status it shows for every order

For example: Thanks, [order_detail key="billing_first_name"]! Your order number is [order_detail key="order_number"].

Who can see the order

Only the customer who placed the order sees its details, the same as on WooCommerce’s own thank-you page:

  • Straight after paying, the page shows the order.
  • An order placed by a signed-in customer asks anyone else to log in first.
  • A guest order opened again later asks for the email address on the order.
  • Anyone who opens the page another way sees only its text, with the order details left blank.

Thank-you pages are kept out of search engines, the site’s sitemap and the site’s own search results. Payment methods that send customers to another site to pay, such as Stripe’s bank and wallet options, bring them back to the same page.

Moving from Custom Thank You Pages for WooCommerce

If the site used Custom Thank You Pages for WooCommerce, Dirigible Store can copy its pages into the settings above.

  1. Go to WooCommerce → Thank-you pages. The Import from Custom Thank You Pages for WooCommerce box shows when the site has that plugin’s settings
  2. Select Check what will be imported. Nothing is changed yet: the box lists the shop-wide page, each product’s page, what can’t be copied (with the reason) and what will work a little differently
  3. Select Import pages
  4. Turn Custom Thank You Pages for WooCommerce off, then clear the site’s page cache

While that plugin is on, customers keep landing where it sends them, so you can import first and switch when you’re ready. The plugin’s own settings are only read, never changed.

How things carry over:

  • The shop-wide page and each product’s and variation’s page come across as they are, with the same shortcodes.
  • A page address on the same site counts as that page. An address on another site, something that isn’t a page, and a page that’s been deleted or unpublished aren’t carried: those orders get the shop-wide page, or WooCommerce’s own.
  • That plugin’s priority numbers aren’t carried: the first product in the order with its own page wins.
  • The page switcher (arrows between several thank-you pages) isn’t carried, and its shortcode shows nothing.
  • Customers who open a thank-you page again later are asked to log in or give the order’s email address, as on WooCommerce’s own page.
  • Import again after changing pages in that plugin: it replaces what it copied before and keeps changes you made here since, including going back to the shop-wide page or WooCommerce’s own.

Built by Dirigible Studio. Get in touch