Cart/Basket Page Functions
- 29 Dec 2023
- 1 Minute to read
Cart/Basket Page Functions
- Updated on 29 Dec 2023
- 1 Minute to read
Article Summary
Share feedback
Thanks for sharing your feedback!
You can call these predefined functions where applicable when creating a custom campaign, rule or goal.
Detecting if the user is on cart/basket page
The following function detects if the current page is the cart/basket page.
Function Call | Returns |
---|---|
Insider.systemRules.call('isOnCartPage'); | Boolean |
Insider.systemRules.call('isOnCartPage');
For example, the below response returns if the current page is a cart/basket page.
Getting the product(s)/item(s) in the cart
The following function gets the collection of product information on the cart page. If your website has a mini cart that shows the product(s) in the cart on any page other than the cart page, this function gets the product(s) information too.
Function Call | Returns |
---|---|
Insider.systemRules.call('getPaidProducts') | Array |
Insider.systemRules.call('getPaidProducts')
For example, the below response returns the products in the cart.
Was this article helpful?