Forums / Templates, Stylesheets, Page Layout / Adding Shopper Approved code, what is the names of these auto populated fields?

Adding Shopper Approved code, what is the names of these auto populated fields?

Views: 881

Results 1 to 2 of 2
26 Feb 2015, 5:08 PM
#1
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Adding Shopper Approved code, what is the names of these auto populated fields?

I am adding the Shopper Approved survey questionnaire to my checkout success page and it was suggested to me that I allow it to auto populate these three fields. Can someone help me get the proper names so it works correct the first time a customer fills out the questionnaire?

Order I
Name
Email

I cut a section..

<script type="text/javascript"> var sa_values = { 'site':14114, 'orderid':'ORDER123', 'name':'John Doe', 'email':'john.doeATemailDOTcom', 'forcecomments':1 };  function saLoadScript(src) { var js = window.document.createElement("script"); js.src = src; js.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(js); } var d = new Date(); if (d.getTime() - 172800000 > 1424969681000) saLoadScript("//www.shopperapproved.com/thankyou/rate/12345.js"); else saLoadScript("//direct.shopperapproved.com/thankyou/rate/12345.js?d=" + d.getTime()); </script>
27 Feb 2015, 4:45 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding Shopper Approved code, what is the names of these auto populated fields?

On checkout_success, you can use:

$orders->fields['orders_id']
$orders->fields['customers_name']
$orders->fields['customers_email_address']

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.