Shortcodes

General Shortcodes

This shortcodes can be used in custom thank you page to show some informations to customize the Thank you Message:

  • [yith_ctpw_order_number]
  • [yith_ctpw_customer_name]
  • [yith_ctpw_customer_email]

the shortcode will print by default the customer billing name, but you can let it print the customer first name using name=”first_name” as shortcode parameter.

Example:

[yith_ctpw_customer_name name="first_name"]

Order Details Shortcodes

In the plugin options, you can choose whether to show the Order Details Parts or not. You can also show them wherever you want on the Custom Thank You page by using these shortcodes:

 

[yith_orderreview_header]
[yith_orderreview_table]
[yith_orderreview_customer_details]

(this shortcode do not need values to pass by)

Up-sells Section Shortcode

The custom Thank-you page can also include an Upsells section. You can manage it from the plugin settings page: in this case, it will show up after the share section. Alternatively, you can disable it in the plugin settings and add it wherever you want using the shortcode

[ctpw_show_products]

Shortcode settings

ids: list of products IDs separated by a comma.
sku: list of products SKUs separated by a comma.
columns: number of products per row.
orderby: order of products (you can use standard WordPress values, like title, date, rand …).
order: sorting type (it can be ASC for ascending, so from lowest to highest values, or DESC for descending, so from highest to lowest values).
products_per_page: number of products to show (default is -1 that stands for “show all”)

Example: this will show 4 products selected through their ID and ordered by ascending title on one row:

[ctpw_show_products ids="10,15,25,64" columns="4" orderby="title" order="ASC"]

Social Box Section Shortcode

The custom Thank-you page can also include a social section by which the customer can share the product\s purchased. This can be managed from the plugin settings page: in this case, it will show up after the order details section. Alternatively, you can disable it in the plugin settings and add it wherever you want in thank you page using the shortcode

[yith_ctpw_social facebook="yes" twitter="yes" google="yes" pinterest="yes"]

Save As PDF Button Shortcode

You can also activate the button Save as PDF, so the customer can save the Order Details as Pdf and download it. This button can be activated in Plugin Settings Panel and it will be added in a specific part of the page, or alternatively, you can add it where you need using this shortcode

[yith_ctpw_pdf_button]
30 Days Money Back Guarantee 30 DAYS MONEY BACK GUARANTEE
100% refund if you are not satisfied