Announcement

Collapse
No announcement yet.

Detect User Agent

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Detect User Agent

    Is there a way to capture the User Agent and include it in the Merchant Order Confirmation?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest

    #2
    I think you can use the variable s.user_agent to get that.

    FYI, there's a list of system variables at:

    http://www.mivascript.com/topic/system-variables.html .
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      So I was thinking I had seen this somewhere in one of the Template Pages and I found this at the beginning of the INVC Page Details Template

      Code:
      <mvt:if expr="l.settings:page:code CIN 'INVC'">
      <mvt:item name="customfields" param="Write_Order(l.settings:order:id, 'order_ua', s.http_user_agent)" />
      </mvt:if>
      I "think" this just inserts this info into the Additional Order Information in the field for the Order. I'm now going to hope I can get this into the Merchant Notification Email.

      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: X | Facebook | Pinterest

      Comment


        #4
        Looks like its using a completely seperate custom order field. so you need to make sure to activate that field in the INVC Order Contents template and evaluate the custom field variable in the same template.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Originally posted by Bruce - PhosphorMedia View Post
          Looks like its using a completely seperate custom order field. so you need to make sure to activate that field in the INVC Order Contents template and evaluate the custom field variable in the same template.
          FWIW - in the site I found this, all they are doing is "collecting" the data. It's displayed in the Order Additional Order Information. The custom field field was not active on the INVC.
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: X | Facebook | Pinterest

          Comment

          Working...
          X