Is there a way to capture the User Agent and include it in the Merchant Order Confirmation?
Announcement
Collapse
No announcement yet.
Detect User Agent
Collapse
X
-
Detect User Agent
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: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
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
-
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>
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: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
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
-
Originally posted by Bruce - PhosphorMedia View PostLooks 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.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: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment