campaigns.getGWP(options)
Returns all the eligible Gift-with-Purchase "tiers"
Parameters options (optional):
achieved: boolean (optional) - When true, this will only return eligible (achieved) gift with purchase tiers. When omitted or false, this will return all gwp tiers.
Example
Return
The function returns a list of tiers:
Adding a GWP to the cart
When adding your own GWP to the cart, all you need to do is add {"_igGWP": "true"}
to the item properties.
Example
Last updated
Was this helpful?