How do I add an order date to my thank you page?

General ShopSite user discussion

How do I add an order date to my thank you page?

Postby gkrehbiel » Fri Feb 25, 2011 9:08 am

My thank you page doesn't have an order date. How can I add that?

Thanks,

Greg

P.S. -- I'm in Shopsite 10 professional, by the way.
gkrehbiel
 
Posts: 97
Joined: Mon Jun 15, 2009 11:31 am
Location: Washington, D.C.

Re: How do I add an order date to my thank you page?

Postby loren_d_c » Fri Feb 25, 2011 9:50 am

You can add [-- STORE.Date --] and/or [-- STORE.Time --] to the DEFINE THANKYOU section of your custom shopping cart template.

[-- STORE.Date --] results in the server date in a format like 'Fri Feb 25, 2011'.

[-- STORE.Time --] results in the server time in a format like '09:44:38'.

So you could do something like:

Order completed at: [-- STORE.Time --] [-- STORE.Date --]

If you want it in a different format, you would have to output it in the middle of some custom JavaScript and massage the format with your JavaScript code.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: How do I add an order date to my thank you page?

Postby gkrehbiel » Fri Feb 25, 2011 1:58 pm

That did it. Thanks.

For anyone else reading this thread, note that you have to put the text below the "[-- DEFINE ThankYou --]" section to get the text on the right page. The one shopping cart template controls several different pages in your store.
gkrehbiel
 
Posts: 97
Joined: Mon Jun 15, 2009 11:31 am
Location: Washington, D.C.


Return to User Forum

Who is online

Users browsing this forum: No registered users and 19 guests