Solution
The main idea of the solution is to provide the possibility to the FZ to add a free extra item. The focus is on the ketchup but the FZ can setup any item.
Setting Up
For this solution to work, we need to ensure that Sanity is properly configured:
...
This limit will also affect the addons items. Even if we offer 30 free items the user cannot select more than 20 items (in this example).
Front-end behaviors and Business rules
After all the requirements are configured, we’ll have the following things on the FE UI:
Promotional modal when entering the checkout the first time/journey/order
...
Basic Rule: show the modal only for the first time (and always if we have a “new cart”, cleaning the cart and adding the products again)
Checkout sections
...
Your Cart behavior with free/paid items
...
Extras modal to edit addons
...
Troubleshoot
Section with free items is not in the checkout?
All the flags and toggles should be ON as showed in the Requirements section
LD FE Flag to be switched ON: Enable-Add-On-As-Cart-Item
Sanity needs to be configured properly and the right item (that is offering the free ones) needs to be in the cart
If some item used as a free/paid addon in the Add On Section options has an invalid configuration the entire section will be invalid (for example an invalid PLU, or invalid item config, which will be checked on POS)