Created
April 13, 2017 19:46
-
-
Save nfriend21/b1513f527ad205004ed0ae07b82883b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Below are the variables that can be accessed within the <body> section of the Order Success page scripts. | |
{{ order.number }} => this will display the number of the order that is unique to your website (recommended). | |
{{ order.id }} => this will display the internal ID of the order, unique to Art Storefronts. | |
{{ order.total }} => this will display the grand total of the order, after shipping, taxes, etc. | |
{{ order.shipping_total }} | |
{{ order.tax_total }} | |
Here is an example of how a third party website called "shareasale.com" needs to track order data. | |
<img src="https://shareasale.com/sale.cfm?amount=AMOUNT&tracking=ORDERID&transtype=sale&merchantID=xxxxx" width="1" height="1"> | |
Notice how we replace the words "AMOUNT" and "ORDERID" with the proper variables: | |
<img src="https://shareasale.com/sale.cfm?amount={{ order.total }}&tracking={{ order.id }}&transtype=SALE&merchantID=70942" width="1" height="1"> | |
This URL is now ready to use. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment