In order for the website to be able to automatically handle quantity, removal, etc for BOGOF promotions, the added product must be linked to the triggering product via the “BOGOF_Parent” UDA.
This documentation will use the ”Buy 2 Get 1 NSK Z990” promotion as an example.
For this example, there are a number of products that trigger the Telesales Rule that adds the free products:
The Telesales Rule applies a Keycode that automatically adds these products to the order:
By default the website doesn’t know that the added products are part of a promotion, so will treat them as normal, and allow their quantity to be changed, etc.
For each of these added products you will need to set the “BOGOF_Parent” UDA to have a value that includes the stock codes of all of the potential triggering products in a comma-separated list.
To set this UDA, open the added product in Khaos Control, for example “OXC-145”, and click on the actions menu, and then “User Defined Attributes (UDA)”:
Now select the “BOGOF_Parent” UDA so that you can add a value:
You will need to set the value of this UDA to a list of the triggering product’s stock codes, in this case the value would be:
OXC-140,OXC-141,OXC-142,OXC-143,OXC-144
Then click “OK” to save the change.
You will need to repeat this for any other BOGOF “free” products, such as “OXC-134”.
Once this UDA is set on the “free” products, the website will know that it is a promotional product, and restrict the quantity field from being changed, as well as automatically removing the product if the triggering product is removed, etc.