List of available merge tags

Following are the list of merge tags that can be used while designing your custom thank you page.

Requirements:

1. WooCommerce 3.0+
2. Custom Thank You Pages Per Product for WooCommerce 1.3.0+

Order Specific:

  1. {%ctp.order.number%}
  2. {%ctp.order.date_created%}
  3. {%ctp.order.status%}
  4. {%ctp.order.curreny_symbol%}
  5. {%ctp.order.currency%}
  6. {%ctp.order.formatted_total%}
  7. {%ctp.order.total%}
  8. {%ctp.order.discount_total%}
  9. {%ctp.order.discount_tax%}
  10. {%ctp.order.shipping_total%}
  11. {%ctp.order_shipping_tax%}
  12. {%ctp.order.cart_tax%}
  13. {%ctp.order.total_tax%}
  14. {%ctp.order.total_discount%}
  15. {%ctp.order.subtotal%}
  16. {%ctp.order.tax_totals%}
  17. {%ctp.order.payment_method%}
  18. {%ctp.order.billing_address_1%}
  19. {%ctp.order.billing_address_2%}
  20. {%ctp.order.billing_city%}
  21. {%ctp.order.billing_state%}
  22. {%ctp.order.billing_postcode%}
  23. {%ctp.order.billing_country%}
  24. {%ctp.order.billing_first_name%}
  25. {%ctp.order.billing_last_name%}
  26. {%ctp.order.billing_company%}
  27. {%ctp.order.billing_phone%}
  28. {%ctp.order.billing_email%}
  29. {%ctp.order.shipping_address_1%}
  30. {%ctp.order.shipping_address_2%}
  31. {%ctp.order.shipping_city%}
  32. {%ctp.order.shipping_state%}
  33. {%ctp.order.shipping_postcode%}
  34. {%ctp.order.shipping_country%}
  35. {%ctp.order.shipping_first_name%}
  36. {%ctp.order.shipping_last_name%}
  37. {%ctp.order.shipping_company%}
  38. {%ctp.order.transaction_id%}
  39. {%ctp.order.customer_ip_address%}
  40. {%ctp.order.customer_note%}

User Specific:

  1. {%ctp.user.username%}
  2. {%ctp.user.first_name%}
  3. {%ctp.user.last_name%}
  4. {%ctp.user.email%}
  5. {%ctp.user.avatar%}

Order and User specific data is also available as an object in JavaScript:

Here is a code snippet to get you started

<script>
if ( typeof ctp_order_details !== undefined ) {
var order = ctp_order_details.order // Will contain all the order related data
var user = ctp_order_details.user // Will contain all the user related data

// Do your further processing
}
</script>
« Back to Custom Thank You Page For WooCommerce