What tokens are available?
(2003/09/09)Most of the available tokens are visible in the default template. Here's a quick list of some of them:
Main Page and Details Page tabs:
%orderdate%
%todaysdate%
%todaydate%
%yesterday%
%orderidL%
%orderid%
%paydata% (the data stored by the payment module)
%totaltax%
%tracklink%
%tracknum%
%tracktype%
%total% (order total)
%paytype%
%totaltax% (total tax)
%totalwithtax% (subtotal + tax)
%taxdescription%
%taxamountF%
%taxamount%
%shippingdescription%
%shippingamountF%
%shippingamount%
%orderchargedesc%
%orderchargeamountF%
%orderchargeamount%
The above three sets also have alternate tokens which will display the second, third, etc. charge (tax and shipping are considered by Merchant to be "charges").
%taxdescription2%
%taxamountF2%
%taxamount2%
%shippingdescription2%
%shippingamountF2%
%shippingamount2%
%orderchargedesc2%
%orderchargeamountF2%
%orderchargeamount2%
etc.
A specific module's charge and description can be displayed by that module's code:
%charge|desc|module_code|%
%charge|price|module_code|%
%custpassword% Customers.d.password
%custlogin% Customers.d.login
%custpwemail% Customers.d.pw_email
%custid% Customers.d.id
%cust_ship_fname% Customers.d.ship_fname
%cust_ship_lname% Customers.d.ship_lname
%cust_ship_email% Customers.d.ship_email
%cust_ship_comp% Customers.d.ship_comp
%cust_ship_phone% Customers.d.ship_phone
%cust_ship_fax% Customers.d.ship_fax
%cust_ship_addr% Customers.d.ship_addr
%cust_ship_city% Customers.d.ship_city
%cust_ship_state% Customers.d.ship_state
%cust_ship_zip% Customers.d.ship_zip
%cust_ship_cntry% Customers.d.ship_cntry
%cust_bill_fname% Customers.d.bill_fname
%cust_bill_lname% Customers.d.bill_lname
%cust_bill_email% Customers.d.bill_email
%cust_bill_comp% Customers.d.bill_comp
%cust_bill_phone% Customers.d.bill_phone
%cust_bill_fax% Customers.d.bill_fax
%cust_bill_addr% Customers.d.bill_addr
%cust_bill_city% Customers.d.bill_city
%cust_bill_state% Customers.d.bill_state
%cust_bill_zip% Customers.d.bill_zip
%cust_bill_cntry% Customers.d.bill_cntry
%totalprice% (product subtotal) g.ProductTotal
%totalpriceF%
%productstotal%
%productstotalF%
%cust_password% StatusOrders.d.password
%cust_login% StatusOrders.d.login
%cust_id% StatusOrders.d.cust_id
%ship_fname% StatusOrders.d.ship_fname
%ship_lname% StatusOrders.d.ship_lname
%ship_email% StatusOrders.d.ship_email
%ship_comp% StatusOrders.d.ship_comp
%ship_phone% StatusOrders.d.ship_phone
%ship_fax% StatusOrders.d.ship_fax
%ship_addr% StatusOrders.d.ship_addr
%ship_city% StatusOrders.d.ship_city
%ship_state% StatusOrders.d.ship_state
%ship_zip% StatusOrders.d.ship_zip
%ship_cntry% StatusOrders.d.ship_cntry
%bill_fname% StatusOrders.d.bill_fname
%bill_lname% StatusOrders.d.bill_lname
%bill_email% StatusOrders.d.bill_email
%bill_comp% StatusOrders.d.bill_comp
%bill_phone% StatusOrders.d.bill_phone
%bill_fax% StatusOrders.d.bill_fax
%bill_addr% StatusOrders.d.bill_addr
%bill_city% StatusOrders.d.bill_city
%bill_state% StatusOrders.d.bill_state
%bill_zip% StatusOrders.d.bill_zip
%bill_cntry% StatusOrders.d.bill_cntry
%note% StatusOrders.d.note
%note2% StatusOrders.d.note2
%field1% field 1
%field2% field 2
%field3% field 3
%status% (status of the order)
%close_button%
%back_button%
%add_button%
%addall_button%
%back_link%
The tokens availalbe in the "products" area of the template are, for the most part, the same as those available in the Product Page templates module. Eg:
%addtobasket%
%addquantity%
%prodcode%
%prodthumbL%
%begin_hasweight%...%end_hasweight%
etc.
The tokens specific to the product's status are:
%prodstatus% which will display the status of the product itself
%productstatus% will display the status of the product or, if it doesn't have one, the status of the order.
Last update: 2004-12-09 13:36
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
- Is it possible to display a link in Phone ... (2008-08-06 12:05)
Top 10 
- 2754 views:
Adding Tokens to Evaluate Expressions - 2697 views:
Is there a way to "Limit" the number of ... - 2654 views:
Why won't you call me for technical support? I ... - 2549 views:
Are license keys valid for more than one store? ... - 2447 views:
I'm trying to enter a license key and get ... - 2425 views:
How do I install a module? - 2286 views:
How do I check for a module upgrade? - 2255 views:
How can display and change the parameters of an ... - 2097 views:
The total on my checkout pages are not correct. ... - 1932 views:
I have select and radio type attributes in my ...
















