Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When creating an out of stock or product substitution scenario, it is useful to disable already bought products by the respondent. This is how you can do this using the Base64 custom_params variable.

You can attached attach a base64 &custom_params= that will then disable the product on the shelf. This is useful for setting up out of stock scenarios.

...

Edit the JSON object below, and make sure you know what the block_id for the shelf is. In this case, shelf2 is the block_id. The set keyword can be replaced with append if there is another source of disabled products other than the custom params for example if there is a logic block disabling products that you don’t wish to overwrite. Using the clear key word will clear the disabled products list for a shelf, and this would take an empty list like "clear:disabled_products": []

Code Block
{
  "shelf2shelf": {
    "set:disabled_products": [
      "a5414624321000",
      "PID009937"
    ],
    "set:grey_out_runtime_disabled_products": true
  }
}

...