{"id":40368,"date":"2025-12-22T14:04:19","date_gmt":"2025-12-22T14:04:19","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=40368"},"modified":"2025-12-22T14:04:19","modified_gmt":"2025-12-22T14:04:19","slug":"4-102-how-to-give-1-free-coffee-for-5-coffees","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/4-102-how-to-give-1-free-coffee-for-5-coffees\/","title":{"rendered":"4.102. How to Give 1 Free Coffee For 5 Coffees?"},"content":{"rendered":"<p>In this document it will be explained how to give 1 Free Coffee for 5 Coffees.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>How It Works;<\/strong><\/h3>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-40368-1\" width=\"640\" height=\"344\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-2.mp4?_=1\" \/><a href=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-2.mp4\">https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-2.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>1. Adding Custom Field For Customers Entity Type<\/strong><\/h3>\n<p><strong>Main Menu &gt; Manage &gt; Entities &gt; Entity Types &gt; Customers &gt; Custom Fields &gt;<\/strong> Here, click on <strong>Add Custom Field.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40387 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-00.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Custom Field Name: <\/strong>Promotion Coffee Quantity<\/p>\n<p><strong>Field Type:<\/strong> String<\/p>\n<p><strong>Mask Type:<\/strong> Simple<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>2. Adding Automation Commands<\/strong><\/h3>\n<h4><strong>2.1. Adding PRC-Give Promotion Coffee Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;\u00a0<\/strong>Here, click on\u00a0<strong>Add Automation Command.<\/strong><\/p>\n<p><strong>General Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40371 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-01.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Name: <\/strong>PRC-Give Promotion Coffee<\/p>\n<p><strong>Category:\u00a0<\/strong>Promotion<\/p>\n<p><strong>Button Header:\u00a0<\/strong>Give Promotion Coffee<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mappings Section;<\/strong><\/p>\n<p>Here, add a line by clicking on <strong>Add<\/strong> button and set it as below image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40375 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-02-1.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Visible States:<\/strong> Coffee Promotion<\/p>\n<p><strong>Visibility<\/strong>: Display on Command Selector<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>2.2. Adding PRC-Give Coffee Later Automation Command<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Automation Commands &gt;\u00a0<\/strong>Here, click on\u00a0<strong>Add Automation Command.<\/strong><\/p>\n<p><strong>General Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40377 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-03.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Name:<\/strong>PRC-Give Coffee Later<\/p>\n<p><strong>Category:\u00a0<\/strong>Promotion<\/p>\n<p><strong>Button Header:\u00a0<\/strong>Don&#8217;t Give Promotion Coffee<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mappings Section;<\/strong><\/p>\n<p>Here, add a line by clicking on <strong>Add<\/strong> button and set it as below image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40379 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-04.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Visible States:<\/strong> Coffee Promotion<\/p>\n<p><strong>Visibility<\/strong>: Display on Command Selector<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>3. Adding Actions<\/strong><\/h3>\n<h4><strong>3.1. Adding PRC- Give Free Coffee for 5th Coffee Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40381 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-05.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC- Give Free Coffee for 5th Coffee<\/p>\n<p><strong>Action Type:<\/strong> Add Order<\/p>\n<p><strong>Menu Item Name:<\/strong> Coffee<\/p>\n<p><strong>Quantity:<\/strong> 1<\/p>\n<p><strong>Order State Name:<\/strong> GStatus<\/p>\n<p><strong>Order State:<\/strong> 1 Free for 5 Coffees Promotion<\/p>\n<p><strong>Increase Inventory:<\/strong> False<\/p>\n<p><strong>Decrease Inventory:<\/strong> True<\/p>\n<p><strong>Locked:<\/strong> True<\/p>\n<p><strong>Calculate Price:<\/strong> False<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.2. Adding PRC-Resfresh Ticket Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40383 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-06.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Resfresh Ticket<\/p>\n<p><strong>Action Type:<\/strong> Display Ticket<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Ticket Id:<\/strong> 0<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.3. Adding PRC-Display Promotion Commands Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40385 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-07.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Display Promotion Commands<\/p>\n<p><strong>Action Type:<\/strong> Select Automation Command<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.4. Adding PRC-Update Customer Coffee Promotion Quantity Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40389 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-08.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Update Customer Coffee Promotion Quantity<\/p>\n<p><strong>Action Type:<\/strong> Update Entity Data<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Entity Type Name:<\/strong> Customers<\/p>\n<p><strong>Entity Name:<\/strong> [:Name]<\/p>\n<p><strong>Field Name:<\/strong> Promotion Coffee Quantity<\/p>\n<p><strong>Field Value:<\/strong> [:Quantity]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.5. Adding PRC-Update Order Promotion Status Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40393 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-09.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Update Order Promotion Status<\/p>\n<p><strong>Action Type:<\/strong> Update Order State<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>State Name:<\/strong> Promotion<\/p>\n<p><strong>Group Order:<\/strong> 5<\/p>\n<p><strong>Current State:<\/strong> [:Current State]<\/p>\n<p><strong>State:<\/strong> [:Promotion State]<\/p>\n<p><strong>State Order:<\/strong> 5<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.6. PRC-Start Coffee Promotion Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40443 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-10.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Start Coffee Promotion<\/p>\n<p><strong>Action Type:<\/strong> Update Ticket State<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>State Name:<\/strong> P.State<\/p>\n<p><strong>State:<\/strong> Coffee Promotion<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>3.7. PRC-Stop Coffee Promotion Action<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt; <\/strong>Here, click on\u00a0<strong>Add Action.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40463 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-11.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> PRC-Stop Coffee Promotion<\/p>\n<p><strong>Action Type:<\/strong> Update Ticket State<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>State Name:<\/strong> P.State<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>4. Adding Rules<\/strong><\/h3>\n<h4><strong>4.1. Adding PRC-When Clicked on Give Promotion Coffee Button Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40478 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-12.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-When Clicked on Give Promotion Coffee Button<\/p>\n<p><strong>Even 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|PRC-Give Promotion Coffee<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1: <\/strong>PRC- Give Free Coffee for 5th Coffee<\/p>\n<p><strong>Action-2:<\/strong> PRC-Update Customer Coffee Promotion Quantity<\/p>\n<p><strong>Quantity:<\/strong> -5<\/p>\n<p><strong>Action-3: <\/strong>PRC-Stop Coffee Promotion<\/p>\n<p><strong>Action-4:\u00a0<\/strong>PRC-Resfresh Ticket<\/p>\n<p><strong>Action-5:\u00a0<\/strong>PRC-Update Order Promotion Status<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.2. Adding PRC-Give Coffee Later Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40484 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-13.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-Give Coffee Later<\/p>\n<p><strong>Even 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|PRC-Give Coffee Later<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1: <\/strong>PRC-Stop Coffee Promotion<\/p>\n<p><strong>Action-2:<\/strong> PRC-Resfresh Ticket<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.3. Adding PRC-Before Promotioned Ticket Paid Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40486 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-14.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-Before Promotioned Ticket Paid<\/p>\n<p><strong>Even Name:<\/strong> Before Ticket Closing<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Remaining Amount|Equals|0<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action:<\/strong>PRC-Update Order Promotion Status<\/p>\n<p><strong>Current State:<\/strong> Promotion Started<\/p>\n<p><strong>Promotion State:<\/strong> Promotion Paid<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.4. Adding PRC-Update Status When Promotioned Item Added to Ticket Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40488 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-15.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-Update Status When Promotioned Item Added to Ticket<\/p>\n<p><strong>Even Name:<\/strong> Order Added to Ticket<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Menu Item Name|Equals|Coffee<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action: <\/strong>PRC-Update Order Promotion Status<\/p>\n<p><strong>Promotion State:<\/strong> Promotion Started<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.5. Adding PRC-When Promotion Item Paid Update Promotion Quantity Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40490 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-16.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-When Promotion Item Paid Update Promotion Quantity<\/p>\n<p><strong>Even Name:<\/strong> Order State Updated<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>State Name|Equals|Promotion<\/p>\n<p>State|Equals|Promotion Paid<\/p>\n<p>{ENTITY NAME:Customer}|Is Not Null|<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action: <\/strong>PRC-Update Customer Coffee Promotion Quantity<\/p>\n<p><strong>Quantity:<\/strong> +{QUANTITY}<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>4.6. Adding PRC-Display Promotion Commands When Coffee Quantity Reaches 5 Rule<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt; <\/strong>Here, click on\u00a0<strong>Add Rule.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-40492 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17-1024x550.jpg\" alt=\"\" width=\"640\" height=\"344\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17-1024x550.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17-768x413.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17-1536x826.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2025\/12\/Give-1-Free-Coffee-for-5-Coffees-17.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> PRC-Display Promotion Commands When Coffee Quantity Reaches 5<\/p>\n<p><strong>Even Name:<\/strong> Ticket Entity Changed<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Entity Type Name|Equals|Customers<\/p>\n<p>{ENTITY DATA:Customer:Promotion Coffee Quantity}|Equals|5<\/p>\n<p>{ENTITY DATA:Customer:Promotion Coffee Quantity}|Greater|5<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1: <\/strong>PRC-Start Coffee Promotion<\/p>\n<p><b>Action-2: <\/b>PRC-Display Promotion Commands<\/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 1 Free Coffee for 5 Coffees. &nbsp; &nbsp; How It Works; &nbsp; &nbsp; 1. Adding Custom Field For Customers Entity Type Main Menu &gt; Manage &gt; Entities &gt; Entity Types &gt; Customers &gt; Custom Fields &gt; Here, click on Add Custom Field. Custom Field Name: [&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-40368","post","type-post","status-publish","format-standard","hentry","category-customization"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/40368","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=40368"}],"version-history":[{"count":3,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/40368\/revisions"}],"predecessor-version":[{"id":40497,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/40368\/revisions\/40497"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=40368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=40368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=40368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}