getParameterValue

Method Signature

String getParameterValue(String parameterName);

v2 Usage

ultraCart.util.getParameterValue(parameterName)

Description

Reads the value for the parameter specified.

Parameters

String parameterName – The name of the parameter that should be retrieved.

Result

String – the value of the parameter. If the parameter was not specified then null will be returned.


Example:

// imagine this code in a page called like this:  http://www.mystore.com/checkout.html?AFFID=5123
// VERSION 2!
var affiliateId = ultraCart.util.getParameterValue('AFFID'));
//affiliateId would now equal '5123'