Menu Close

Get Support From ShopWired Close

All Systems Are Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available 9.00am to 7.00pm Monday to Friday
11.00am to 5.00pm Saturday
Quickest response time

Send A Message
Response within 24 hours

Menu Close

Menu

Visitor

An extension of the global object is the global.visitor object which will return specific information about the current visitor. It has the following attributes:

global.visitor.ip

Returns the IP address of the visitor.


global.visitor.country_code

Returns the country code of the country where the visitor originates from.

A list of country codes is available at Wikipedia - the variable will return the Alpha-2 Code.


global.visitor.country_name

Returns the name of the country where the visitor originates from.

A list of country names is available at Wikipedia - the variable will return the English short name.


global.visitor.is_mobile

Will return true if the user is accessing the website from a mobile device.


global.features.apps

Will return true if a particular app is activated on the account.

Available variables are

blog
brands
bulk_discounts
currencies
digital_downloads
gift_vouchers
product_bundles
product_extras
product_reviews
reward_points
soft_add_to_cart
stockists
trade_accounts
two_for_one
videos