an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > How to reference the Order ID Token
Last Post 1/20/2012 3:55:24 PM By lukezy. 1 replies.
1/18/2012 10:31:34 AM
Guia
Posts: 18
Joined: 8/24/2011
How to reference the Order ID Token
Hello.  We are customizing email templates and need access to the Order ID (as opposed to the Order Number).  We have tried several variations %Order.OrderID%, %Order.ID%, and %Order.OID% without success.  Is it possilbe to reference the Order ID through a token and if so what is the syntax?
 
Thank you.
1/20/2012 3:55:24 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How to reference the Order ID Token
%Order.OrderId% should work unless you are using a very old version. If you look at Order.cs you should see the following.
 
 
        public virtual void AddTokens(SiteConfigurationSection section, NameValueCollection tokens) {
            //Todo: use reflection to auto populate tokens
            tokens.Add("Order.OrderId", OrderId.ToString());
            tokens.Add("Order.OrderNumber", OrderNumber);
            tokens.Add("Order.Email", Email);
            tokens.Add("Order.PaymentMethod", CheckoutPaymentType.Type);
            tokens.Add("Order.CreatedDate", Created.ToString());
            tokens.Add("Order.TotalAmount", OrderTotalAmount.ToString("C"));
 
 
 
DotShoppingCart Staff