Cart: Checkout
Key: cart-checkout
Some stores allow you to change product quantities, or add / remove discounts during the checkout process. By default Fanplayr does not track during checkout, but if we need to track things here we can using cart-checkout.
This works the same way as the general cart key, except that it only runs when "page.type" has been set to "checkout", and then only if the "doIf" conditions are satisfied.
By default it also does not track on the initial scraping, but instead only if there are changes. You must set the "initialTracking" to true to change this behavior.
You can also not supply data if you only want to track changes such as gross, discount and discountCode.
{
"gross": SET_TO_VALUE,
...
"doIf": CONDITIONALS,
"initialTracking": false, // defaults to "false"
"waitForChange": GET_A_VALUE, // optional
"action": ACTION,
"loop": LOOP_VALUE,
"loop-item": { // optional
...
}
}