Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Now with improved documentation!
Browse files Browse the repository at this point in the history
  • Loading branch information
boogah committed Mar 20, 2019
1 parent eecc8c9 commit db85c8e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@ This is handy when you want to:

1. Upload the `woocommerce-custom-thank-you` directory into the `/wp-content/plugins/` directory.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Set a global "Thank You" page under "WooCommerce -> Settings -> Checkout -> Checkout options -> Checkout pages". (Optional)
3. Set a global "Thank You" page under "WooCommerce -> Settings -> General -> General options". (Optional, but suggested)

## Setting a custom "Thank You" page

1. Edit an individual product.
2. In the "Product data — Simple product" meta box, enter a page into the "Thank you redirect" field.
3. Update the product.

## Custom "Thank You" page customizations

Since this plugin overwrites the default WooCommerce thank you page, we have included four shortcodes that you can use to display order details to your customers. They are:

* `[woo_order_details]` — The standard WooCommerce thank you page receipt view
* `[woo_order_stub]` — A short, one line order synopsis containing: order number, order date, customer email, order total, payment method
* `[woo_order_table]` — A table containing: a list of purchased products with prices, order subtotal, shipping cost, payment method, order taxes, order total
* `[woo_customer_details]` — A brief collection of customer details such as: customer name, customer email, billing address

## Notes

* Setting a *global* or *custom* "Thank You" page overrides the normal "Order received" display post-checkout.
Expand All @@ -43,3 +52,17 @@ This is handy when you want to:
### Checkout with thank you redirect set

![](assets/doc/img/custom-thank-you.gif)

### Shortcodes

#### `[woo_order_stub]`

![](assets/doc/img/thank-you-redir.shortcode.stub.png)

#### `[woo_order_table]`

![](assets/doc/img/thank-you-redir.shortcode.table.png)

##### `[woo_customer_details]`

![](assets/doc/img/thank-you-redir.shortcode.customer.png)
Binary file modified assets/doc/img/thank-you-redir.global.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/doc/img/thank-you-redir.shortcode.stub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db85c8e

Please sign in to comment.