Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Location
    Largo, Florida USA
    Posts
    102
    Plugin Contributions
    0

    Default 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..
    Code:
    <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>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

 

 

Similar Threads

  1. v151 Shopper Approved Server Side Code
    By chadlly2003 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Apr 2015, 07:26 PM
  2. what are these fields in table conpon use for?
    By linjuming in forum General Questions
    Replies: 1
    Last Post: 14 Oct 2013, 04:33 AM
  3. v151 What's the meaning of these code?
    By fanisme in forum General Questions
    Replies: 1
    Last Post: 5 Apr 2013, 07:55 PM
  4. Customer approved auto email ?
    By teamzr1 in forum General Questions
    Replies: 0
    Last Post: 10 Nov 2010, 08:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR