{"id":25635,"date":"2021-04-07T12:56:34","date_gmt":"2021-04-07T12:56:34","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=25635"},"modified":"2021-04-08T11:22:01","modified_gmt":"2021-04-08T11:22:01","slug":"4-65-giving-free-item-if-ticket-total-reaches-certain-amount","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/4-65-giving-free-item-if-ticket-total-reaches-certain-amount\/","title":{"rendered":"4.65. Giving Free Item If Ticket Total Reaches Certain Amount"},"content":{"rendered":"\n<p>In this document, it will be explained how to give a free item when ticket total reaches certain amount.<\/p>\n<p>15 is determined as certain amount, Milk and Juice are selected as free items.\u00a0<\/p>\n<p>\u00a0<\/p>\n<h3><strong>How It Works;<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25681\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Free-Item.gif\" alt=\"\" width=\"640\" height=\"332\" \/><\/p>\n<p>\u00a0<\/p>\n<h3><strong>1. Adding Automation Commands<\/strong><\/h3>\n<h4><strong>1.1. Adding AFI-Add Milk or Juice Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;<\/strong> Here, click on <strong>Add Automation Command.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25636 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-01-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-01-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-01-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-01-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-01.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>General Settings Section:<\/strong><\/p>\n<p><strong>Name:<\/strong> AFI-Add Milk or Juice<\/p>\n<p><strong>Button Header:<\/strong> Add Milk\\r or Juice<\/p>\n<p><strong>Clear Selection:\u00a0<\/strong>Must be selected<\/p>\n<p>\u00a0<\/p>\n<p><strong>Mappings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25638 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-02-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-02-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-02-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-02-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-02.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Here, add a line by clicking on <strong>Add<\/strong> button and configure it as shown in the above image.<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>1.2. Adding AFI-Add Free Milk Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;<\/strong> Here, click on <strong>Add Automation Command.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25640 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-03-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-03-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-03-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-03-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-03.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>General Settings Section:<\/strong><\/p>\n<p><strong>Name:<\/strong> AFI-Add Free Milk<\/p>\n<p><strong>Button Header:<\/strong> Add Milk<\/p>\n<p><strong>Clear Selection:\u00a0<\/strong>Must be selected<\/p>\n<p>\u00a0<\/p>\n<p><strong>Mappings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25642 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-04-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-04-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-04-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-04-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-04.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Leave the Mappings Section blank.<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>1.3. Adding AFI-Add Free Juice Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;<\/strong> Here, click on <strong>Add Automation Command.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25644 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-05-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-05-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-05-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-05-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-05.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>General Settings Section:<\/strong><\/p>\n<p><strong>Name:<\/strong> AFI-Add Free Juice<\/p>\n<p><strong>Button Header:<\/strong> Add Juice<\/p>\n<p><strong>Clear Selection:\u00a0<\/strong>Must be selected<\/p>\n<p>\u00a0<\/p>\n<p><strong>Mappings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25646 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-06-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-06-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-06-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-06-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-06.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Leave the Mappings Section blank.<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>1.4. Adding AFI-Cancel Free Item Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;<\/strong> Here, click on <strong>Add Automation Command.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25648 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-07-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-07-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-07-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-07-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-07.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>General Settings Section:<\/strong><\/p>\n<p><strong>Name:<\/strong> AFI-Cancel Free Item<\/p>\n<p><strong>Button Header:<\/strong> Cancel<\/p>\n<p><strong>Clear Selection:\u00a0<\/strong>Must be selected<\/p>\n<p>\u00a0<\/p>\n<p><strong>Mappings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25650 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-08-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-08-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-08-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-08-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-08.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Leave the Mappings Section blank.<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h3><strong>2. Adding Actions<\/strong><\/h3>\n<h4><strong>2.1. Adding AFI-Add Milk Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25652 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-09-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-09-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-09-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-09-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-09.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> AFI-Add Milk<\/p>\n<p><strong>Action Type:<\/strong> Add Order<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Menu Item Name:<\/strong> Milk<\/p>\n<p><strong>Portion Name:<\/strong> Normal<\/p>\n<p><strong>Quantity:<\/strong> 1<\/p>\n<p><strong>Order State Name:<\/strong> GStatus<\/p>\n<p><strong>Order State:<\/strong> Gift<\/p>\n<p><strong>Calculate Price:<\/strong> False<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>2.2. Adding AFI-Add Juice Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25654 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-10-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-10-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-10-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-10-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-10.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> AFI-Add Juice<\/p>\n<p><strong>Action Type:<\/strong> Add Order<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Menu Item Name:<\/strong> Juice<\/p>\n<p><strong>Portion Name:<\/strong> Normal<\/p>\n<p><strong>Quantity:<\/strong> 1<\/p>\n<p><strong>Order State Name:<\/strong> GStatus<\/p>\n<p><strong>Order State:<\/strong> Gift<\/p>\n<p><strong>Calculate Price:<\/strong> False<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>2.3. Adding AFI-Add Milk or Juice Ask Question Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25676 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-11-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-11-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-11-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-11-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-11-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> AFI-Add Milk or Juice Ask Question<\/p>\n<p><strong>Action Type:<\/strong> Ask Question<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Question:<\/strong> [:Question]<\/p>\n<p><strong>Buttons:<\/strong> [:Buttons]<\/p>\n<p><strong>Description:<\/strong> [:Description]<\/p>\n<p><strong>Automation Command Name:<\/strong> [:Command Name]<\/p>\n<p><strong>Execute Command In Bacground:<\/strong> [:Exec in Background]<\/p>\n<p><strong>Background Color:<\/strong> [:Color]<\/p>\n<p><strong>Transparent Color:<\/strong> [:Transparent Color]<\/p>\n<p><strong>Multi Select:<\/strong> False<\/p>\n<p><strong>Execute Inactivity Command In Background:<\/strong> False<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>2.4. Adding AFI-Cancel Free Item Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25658 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-12-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-12-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-12-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-12-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-12.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> AFI-Cancel Free Item<\/p>\n<p><strong>Action Type:<\/strong> Cancel Orders<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>2.5. Adding AFI-Update Ticket State Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25660 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-13-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-13-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-13-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-13-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-13.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> AFI-Update Ticket State<\/p>\n<p><strong>Action Type:<\/strong> Update Ticket State<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>State Name:<\/strong> Promotion<\/p>\n<p><strong>State:<\/strong> [:Promotion State]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h3><strong>3. Adding Rules<\/strong><\/h3>\n<h4><strong>3.1. Adding AFI-Add Milk Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25662 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-14-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-14-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-14-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-14-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-14.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> AFI-Add Milk<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name|Equals|AFI-Add Free Milk<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action:<\/strong> AFI-Add Milk<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>3.2. Adding AFI-Add Juice Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25664 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-15-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-15-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-15-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-15-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-15.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> AFI-Add Juice<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name|Equals|AFI-Add Free Juice<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action:<\/strong> AFI-Add Juice<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>3.3. Adding AFI-Cancel Free Item Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule.<\/strong><\/p>\n<p><strong>General Settings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25666 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-16-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-16-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-16-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-16-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-16.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> AFI-Cancel Free Item<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name|Equals|AFI-Cancel Free Item<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action:<\/strong> AFI-Cancel Free Item<\/p>\n<p><strong>Mappings Section:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25668 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-17-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-17-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-17-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-17-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-17.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Leave the Mappings Section blank.<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>3.4. Adding AFI-Ticket State Add Milk or Juice Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25670 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-18-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-18-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-18-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-18-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-18.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> AFI-Ticket State Add Milk or Juice<\/p>\n<p><strong>Event Name:<\/strong> Ticket State Updated<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>State|Equals|Yes<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1:<\/strong> <strong>AFI-Add Milk or Juice Ask Question<\/strong><\/p>\n<p><strong>Question:<\/strong> Select Milk or Juice<\/p>\n<p><strong>Buttons:<\/strong> Milk=AFI-Add Free Milk, Juice=AFI-Add Free Juice, Cancel=AFI-Cancel<\/p>\n<p>Color: Firebrick<\/p>\n<p><strong>Action-2: AFI-Update Ticket State<\/strong><\/p>\n<p><strong>Promotion State:<\/strong> Used<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>3.5. Adding AFI-Add Milk or Juice Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-25672 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-19-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-19-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-19-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-19-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2021\/04\/Add-Free-Item-19.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> AFI-Add Milk or Juice<\/p>\n<p><strong>Event Name:<\/strong> Ticket Total Changed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Ticket Total|Greater|15<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1:<\/strong> <strong>AFI-Update Ticket State<\/strong><\/p>\n<p><strong>Promotion State:<\/strong> Yes<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this document, it will be explained how to give a free item when ticket total reaches certain amount. 15 is determined as certain amount, Milk and Juice are selected as free items.\u00a0 \u00a0 How It Works; \u00a0 1. Adding Automation Commands 1.1. Adding AFI-Add Milk or Juice Automation Command Main Menu &gt; Manage &gt; [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-25635","post","type-post","status-publish","format-standard","hentry","category-customization"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/25635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/comments?post=25635"}],"version-history":[{"count":6,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/25635\/revisions"}],"predecessor-version":[{"id":25758,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/25635\/revisions\/25758"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=25635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=25635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=25635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}