List of Available Merge Tags
This doc explains a list of the available merge tags which you can use while designing a custom thank you page.
What are merge tags?
Merge tag is a bit of code that allows you to insert unique user or order specific data on the custom thank you page.
Example: {%ctp.order.number%} – will give you the order number for the order just placed.
Order specific merge tags
- {%ctp.order.number%}
- {%ctp.order.date_created%}
- {%ctp.order.status%}
- {%ctp.order.curreny_symbol%}
- {%ctp.order.currency%}
- {%ctp.order.formatted_total%}
- {%ctp.order.total%}
- {%ctp.order.discount_total%}
- {%ctp.order.discount_tax%}
- {%ctp.order.shipping_total%}
- {%ctp.order_shipping_tax%}
- {%ctp.order.cart_tax%}
- {%ctp.order.total_tax%}
- {%ctp.order.total_discount%}
- {%ctp.order.subtotal%}
- {%ctp.order.tax_totals%}
- {%ctp.order.payment_method%}
- {%ctp.order.billing_address_1%}
- {%ctp.order.billing_address_2%}
- {%ctp.order.billing_city%}
- {%ctp.order.billing_state%}
- {%ctp.order.billing_postcode%}
- {%ctp.order.billing_country%}
- {%ctp.order.billing_first_name%}
- {%ctp.order.billing_last_name%}
- {%ctp.order.billing_company%}
- {%ctp.order.billing_phone%}
- {%ctp.order.billing_email%}
- {%ctp.order.shipping_address_1%}
- {%ctp.order.shipping_address_2%}
- {%ctp.order.shipping_city%}
- {%ctp.order.shipping_state%}
- {%ctp.order.shipping_postcode%}
- {%ctp.order.shipping_country%}
- {%ctp.order.shipping_first_name%}
- {%ctp.order.shipping_last_name%}
- {%ctp.order.shipping_company%}
- {%ctp.order.transaction_id%}
- {%ctp.order.customer_ip_address%}
- {%ctp.order.customer_note%}
User specific merge tags
- {%ctp.user.username%}
- {%ctp.user.first_name%}
- {%ctp.user.last_name%}
- {%ctp.user.email%}
- {%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 type="text/javascript"> 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>