# \[Solved\] Request for product options

**URL:** <https://forum.sambapos.com/t/solved-request-for-product-options/3033>\
**Category:** V4 Request\
**Created:** [October 16, 2014, 9:15pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033 "2014-10-16T21:15:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzaeilat4](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pizzaeilat4/32/461_2.png) [@pizzaeilat4](https://forum.sambapos.com/u/pizzaeilat4)\
**Post date:** [October 16, 2014, 9:15pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/1 "2014-10-16T21:15:08Z")

</div>

dear @emre,  
Is it possible to add the option to lock an item for sale?  
Situation when the chef announces that the item sold out  
I want to stop the waiter from order it.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 16, 2014, 9:23pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/2 "2014-10-16T21:23:53Z")

</div>

The quickest solution will be.

1. Create a custom product tag called `Available`.
2. Create a `Cancel Orders` action and enable `Only Last Order` setting.
3. Create a `Order Added` rule and if `{ITEM TAG:Available}` `Equals` `No`, execute `Cancel Last Order` action.
4. Go to related product page and update `Available` setting as `No`.

You can improve it by asking a question to cancel order or add anyways.

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [October 16, 2014, 9:31pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/3 "2014-10-16T21:31:14Z")

</div>

> [@emre](#):
>
> {ITEM TAG:Available}

@emre, is there a way to update this Product Tag using Actions/Rules so you wouldn’t need to go into `Manage > Products > Product List > Product` and modify the value manually? I don’t see an Action for `Update Product Tag`…

If it _were_ possible, you could use numeric values instead, and each time the item is ordered, the value decreases, then your rule check becomes: if `{ITEM TAG:Available} Equals 0` then `Cancel Order`.

You could even set the Product Tag to 10 on `Work Period Started` Event!

---

<div class="post-metadata">

**Author:** ![pizzaeilat4](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pizzaeilat4/32/461_2.png) [@pizzaeilat4](https://forum.sambapos.com/u/pizzaeilat4)\
**Post date:** [October 16, 2014, 9:33pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/4 "2014-10-16T21:33:25Z")

</div>

Thank you so much emre  
I’ll do it  
I still believe this is an option that needs to be added  
Please consider this 😉

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 16, 2014, 9:34pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/5 "2014-10-16T21:34:44Z")

</div>

@QMcKay I was thinking the same thing. How we can operate this? I mean how we can define work period start values?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [October 16, 2014, 9:43pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/6 "2014-10-16T21:43:49Z")

</div>

We need some sort of beginning inventory and ending inventory|WPStart WPClose maybe?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [October 16, 2014, 9:48pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/7 "2014-10-16T21:48:50Z")

</div>

With disregard for _actual_ Physical Inventory in a Warehouse, the following would work for simple control of Product Sales…

_ **`Work Period Started` Event** _ containing **Action with `[?Prompt]` …**

- (optional) Action `Update Program Setting` with: `[?How Many Soup are Available Today]` to put value in `{SETTING:Soups Available}`
- Action `Update Product Tag` with: `[?How Many Soup are Available Today]` to put value in `{ITEM TAG:Available}`
- Rule for `Order Added` Event with Action `Update Product Tag` with: `[=TN('{ITEM TAG:Available}')-1]` to decrease count and with Constrained Action to `Cancel Order` when `[=TN('{ITEM TAG:Available}')-1] == 0`.

That would suffice for those types of products, where the number of bowls of onion soup is changed daily, and _you’re not necessarily concerned with tracking Physical Inventory of onions_.

In fact, now that I look at it, you wouldn’t even need a `Product Tag` at all, just a `Program Setting` alone would work. Although having the ability to update the `Product Tag` could still be useful… once `{SETTING:Soups Available}` becomes `0`, update the Product Tag `{ITEM TAG:Available}` to `No`.

> [@Limiting number of Items Sold](http://forum.sambapos.com/t/limiting-number-of-items-sold/3036):
>
> A simple method to limit a Menu Item being sold beyond availability. This does not track actual Physical Inventory, but can be used for many cases such as a daily special for something like Soup. FLOW: In this example, we have defined 2 different soups, each with their own limited Quantity. At start of Work Period we are prompted for Item Count: (we enter 10 and 15) [image] When 10 Onion soup have been ordered, we are prevented from ordering any more: [image] When 15 Tomato soup have …

* * *

For actual _ **Physical Inventory** _ in a `Warehouse` (like Soda, Beer, Buns, etc), that is a different matter. There are no provisions currently built in to read `Inventory` counts for use in Rules, are there @emre?

We would need an Action to read the count of Inventory Items, something like `Read Inventory Values` with a parameter for `Inventory Item Name`, and have it return the `Physical Quantity` at the very least, or determine the `Consumption` on-the fly, which might be expensive.

---

<div class="post-metadata">

**Author:** ![pipo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pipo/32/4085_2.png) [@pipo](https://forum.sambapos.com/u/pipo)\
**Post date:** [October 16, 2014, 11:08pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/8 "2014-10-16T23:08:22Z")

</div>

@qmckay, how will you know what inventory items to count when you’re looking at an order?

I’m thinking this would really be great if it could be linked to predicted inventory and recipes.  
Like if we could have an action `read product availability` which reads the recipe, calculates predicted inventory for the items in the recipe and calculates how many can be made of this recipe (or are available), and sets a program setting (like `{:LastProductAvailability}` or something).

The only thing is that the recipes will never be 100 percent accurate (and there’s wastage as well), so just having the system suggest to check the inventory (and then manually setting the product availability to no) when the Inventory prediction is approaching zero might be better than just automatically disabling the product. We could do this by putting margins in a product tag.

---

<div class="post-metadata">

**Author:** ![gerlandog](https://forum.sambapos.com/user_avatar/forum.sambapos.com/gerlandog/32/39076_2.png) [@gerlandog](https://forum.sambapos.com/u/gerlandog)\
**Post date:** [October 16, 2014, 11:12pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/9 "2014-10-16T23:12:44Z")

</div>

so… the next request is going to know the actual stock… on the fly… on line… at any moment… LOL!!!

I knew this moment would come!!! I was just waiting, sitting in my chair, relaxed… just waiting… LOL!!!

Thanks!!!

G.

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [October 17, 2014, 12:10am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/10 "2014-10-17T00:10:30Z")

</div>

> [@pipo](#):
>
> @qmckay, how will you know what inventory items to count when you’re looking at an order?

You won’t, but I addressed that later in the post (after an edit)…

> [@QMcKay](#):
>
> For actual Physical Inventory in a Warehouse (like Soda, Beer, Buns, etc), that is a different matter. There are no provisions currently built in to read Inventory counts for use in Rules, are there @emre?
> 
> We would need an Action to read the count of Inventory Items, something like `Read Inventory Values` with a parameter for `Inventory Item Name`, and have it return the `Physical Quantity` at the very least, or determine the `Consumption` on-the fly, which might be expensive.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 17, 2014, 12:13am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/11 "2014-10-17T00:13:46Z")

</div>

Noo wait a minute…

What we are talking about here has no relationship with inventory. Adding constraints production by using actual inventory numbers is not practical. You need to record all purchases immediately and also track all possible wastes and record them immediately too. It does not work such way in real life.

What requested here is we can sell 100 portions of onion soup in a day and when we sell 100 portions we won’t be able to sell more. It does not relates with if we have enough onion to produce more soup…

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [October 17, 2014, 12:17am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/12 "2014-10-17T00:17:04Z")

</div>

> [@emre](#):
>
> It does not relates with if we have enough onion to produce more soup…

lol @QMcKay said exactly same thing…

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [October 17, 2014, 12:18am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/13 "2014-10-17T00:18:59Z")

</div>

Onion soup is nasty btw.

---

<div class="post-metadata">

**Author:** ![pizzaeilat4](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pizzaeilat4/32/461_2.png) [@pizzaeilat4](https://forum.sambapos.com/u/pizzaeilat4)\
**Post date:** [October 17, 2014, 12:25am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/14 "2014-10-17T00:25:34Z")

</div>

So Is there an action To Update Product Tag?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [October 17, 2014, 12:26am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/15 "2014-10-17T00:26:24Z")

</div>

Yes. Update order. Look at that action.

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [October 17, 2014, 12:32am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/16 "2014-10-17T00:32:43Z")

</div>

> [@pizzaeilat4](#):
>
> So Is there an action To Update Product Tag?

> [@Jesse](#):
>
> Yes. Update order.

I don’t see anything pertaining to `Product Tag Captions / Custom Tags`…

To be clear, we’re talking about Reading and Updating these values…

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/8/68449eca74245941e7d114bea9c470b3d70e55ef.png) 

Though, if you read my post again, we don’t really need it - we can use a `Program Setting` instead, but it would still be nice to have the ability to use `Product Tag` directly.

---

<div class="post-metadata">

**Author:** ![pipo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pipo/32/4085_2.png) [@pipo](https://forum.sambapos.com/u/pipo)\
**Post date:** [October 17, 2014, 12:33am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/17 "2014-10-17T00:33:25Z")

</div>

> [@QMcKay](#):
>
> We would need an Action to read the count of Inventory Items, something like Read Inventory Values with a parameter for Inventory Item Name, and have it return the Physical Quantity at the very least, or determine the Consumption on-the fly, which might be expensive.

`Read Inventory Values` doesn’t just read the physical or predicted inventory count for a specific inventory item?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [October 17, 2014, 12:38am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/18 "2014-10-17T00:38:18Z")

</div>

Your right I was thinking of something else.

---

<div class="post-metadata">

**Author:** ![pipo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pipo/32/4085_2.png) [@pipo](https://forum.sambapos.com/u/pipo)\
**Post date:** [October 17, 2014, 12:45am UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/19 "2014-10-17T00:45:01Z")

</div>

> [@emre](#):
>
> Adding constraints production by using actual inventory numbers is not practical. You need to record all purchases immediately and also track all possible wastes and record them immediately too. It does not work such way in real life.

But you could have an idea of how much you’re supposed to have left and check manually when you’re getting close, no?  
In my business for example, there’s little waste and all purchases and waste have to be registered immediately, so most inventory numbers should never be off by more than a certain margin.

---

<div class="post-metadata">

**Author:** ![pizzaeilat4](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pizzaeilat4/32/461_2.png) [@pizzaeilat4](https://forum.sambapos.com/u/pizzaeilat4)\
**Post date:** [October 17, 2014, 5:06pm UTC](https://forum.sambapos.com/t/solved-request-for-product-options/3033/20 "2014-10-17T17:06:48Z")

</div>

Thenks @QMcKay  
[Limiting number of Items Sold](http://forum.sambapos.com/t/limiting-number-of-items-sold/3036)

[Next page](https://forum.sambapos.com/t/solved-request-for-product-options/3033.md?page=2)
