1 / 3
Sep 2013

I am trying to get approved as a Google Trusted Merchant - to do this, I need to add their Javascript code to the the thank you page - that is not a problem, except I need to provide data for the 2 following lines of code:



<span id="gts-o-est-ship-date">ORDER_EST_SHIP_DATE</span>

<span id="gts-o-est-delivery-date">ORDER_EST_DELIVERY_DATE</span>



I have the order date [%c_date%]



- and we ship within 2 business days of receiving the order, with deliveries within 5 days from that - so how can I add this to the code using e-junkie?



Thanks



Denis

  • created

    Sep '13
  • last reply

    Sep '13
  • 2

    replies

  • 1.4k

    views

  • 2

    users

Note that [%c_date%] always shows the current date at the moment the page is being viewed, regardless of the buyer's original order date, so you would actually want to use [%p_date%] for the buyer's payment date.



You would need to have some custom javascript written that would take the value of [%p_date%], add 2 or 5 days to it, and insert the result inside the relevant SPANs. The substitution of template variables happens before we send the page to the browser, so your javascript can be written with the presumption that by the time the buyer's browser runs that script, the string [%p_date%] will already be replaced with an actual date (e.g., January 1, 2009).



Consult the Developer Directory link at the very top of this page if you'd like to hire an E-junkie-experienced developer to program that custom javascript for you.