Overview
The free refill QR Code uses Sanity configuration, to do so, we need to access the following:
Marketing content > Features > Feature QrCode Refill Drinks
In this address, there are some controls to configure the when the QR code will be shown:
Sanity Configuration
1 - Service mode:
Those controls will determine which service mode the user should choose for the order
2 - QR Code Availability Duration
It’s how long the QR code will be visible on each screen. You can configure different times for each one:
Homepage
Recent orders and Order confirmation (they use the same counter)
3 - Restaurants with QR Code Refill Drink:
It’s a list of restaurants eligible to provide free refill using QR Code, for example:
1111 - 'ES Lab Restaurant Partner API' - cbf4d9b3-35cf-402e-9a7b-6ffdbeff1c3c, is equivalent to Via de la Hispanidad, 15 - Zaragoza
4 - Menu items for QR code Refill Drink
Those are the items that allow a free refill using a QR code, then the user should have ordered, at least one of them. It doesn’t matter if it was ordered the item separately or inside a combo.
Conclusion
In short, the user should agree with all of those requirements,
order in a restaurant from the list
choose one of the toggled service modes
and one of the items on the list in his/her order
Then the QR code will be visible to the user until the time configured ends or the user signs out.