getIpAddress

getIpAddress

Method Signature

String ultraCart.getIpAddress(opts);

Description

Makes a call to the server retrieving the ip address for the current cart.

Parameter

opts - see Making an Asynchronous Call

Result

the ip address for the current cart

function showIp(result){
    jQuery('#ipDiv').html('You are visiting up from IP Address: ' + result);
}

ultraCart.getIpAddress({async:true, onComplete:showIp});