You can attached a base64 &custom_params=
that will then disable the product on the shelf. This is useful for setting up out of stock scenarios.
To disable a specific product(s), we shall add &custom_params
to the link. At this point, you need to open a JSON to base64 converter like JSON to Base64 Converter to edit the custom params as this is what will carry the information on what SKU(s) to disable.
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 |
---|
{
"shelf2": {
"set:disabled_products": [
"a5414624321000",
"PID009937"
]
}
} |
Then convert this to a base64 string which should look something like this: Cnsic2hlbGYyIjp7InNldDpkaXNhYmxlZF9wcm9kdWN0cyI6WyJhNTQxNDYyNDMyMTAwMCIsICJQSUQwMDk5MzciXX19
This is what will be the custom_param
&custom_params=Cnsic2hlbGYyIjp7InNldDpkaXNhYmxlZF9wcm9kdWN0cyI6WyJhNTQxNDYyNDMyMTAwMCIsICJQSUQwMDk5MzciXX19
The full URL will be similar to the below:
Code Block |
---|
https://survey.rose.conceptsauce.io/?param_id=PRMS01G131YR8CY59W6KMJ1H5PKX6Q&respondent_id=previ |