I see where the IP address can be collected on the INVC screen and can be viewed in the Order admin. I'd like to be able to display the IP address on the OCST screen using Miva token instead of Toolkit tokens. (Another one of those convert snippet things).
Announcement
Collapse
No announcement yet.
Displaying IP Address
Collapse
X
-
Displaying IP Address
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
-
The IP address is in a system variable, so I guess you need two lines of code:Code:<mvt:assign name="g.customer_IP_address" value="s.remote_addr" /> Your IP address is: &mvte:global:customer_IP_address;
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
-
Originally posted by Kent Multer View PostThe IP address is in a system variable, so I guess you need two lines of code:Code:<mvt:assign name="g.customer_IP_address" value="s.remote_addr" /> Your IP address is: &mvte:global:customer_IP_address;
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
-
I think you can also just mvt:eval system vars...but i don't know if i've ever use that.
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
-
Oh, that's right, mvt:eval will do it in one line.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
-
Originally posted by Bruce - PhosphorMedia View PostI think you can also just mvt:eval system vars...but i don't know if i've ever use that.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
-
Code:<mvt:eval expr="s.remote_addr" />
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
Comment