Adding a Freebie Condition with the Similar Method (3.1)
Set the conditions to determine how freebies should be shared in the order based on the added products.
-
The second condition is to distribute one freebie in the last delivery for every 12 products added.
-
The same product should be distributed as a freebie.
To create a second Freebie Condition record:
-
Go to the created Freebie Type record → click the Related tab → click New in the Freebie Condition section.
-
Enter the following:
-
Freebie Condition Name: All Brands 12 + 1.
-
Delivery Control: select Last to share freebies in the first delivery.
-
Order: specify 2 to apply this condition in a second order.
-
Set Active.
-
Condition Details: add this JSON, according to which the condition will trigger for all products, which are not promotional products if the required number of such products is added to the order cart.
{ "conditions": { "operator": "AND", "items": [ {"field": "orders__PromotionId__c", "operator": "equal", "value": "" } ] } } -
Adding Method: select Similar to distribute the same product that matches the condition.
-
-
Click Save.
The second Freebie Condition is created.