SambaPOS 5.2.13 Beta Release

The new features will probably help you do yours more efficiently. I would have to study it a little to understand how to build it.

@JTRTech What you need is the X for Y Items. You can define buy so many items get 1 for free. You can then use expressions to tell it what items qualify by using product tags.

It would use select orders new functions.

image

You would put that on Order Added event.

But buy 2 get one free wouldn’t work as two roasts wouldn’t be 1 roast free, which is partly why the combo discussion made me think of the question so thinking about it maybe it was more of a combo question LOL.
It would need to buy buy one of x get one of y free.

Look what I just posted.

I am fairly sure you use Order Selector in the Adjust Order Prices action for the free item. Thats how you control what it gives.

So to sum it up… you use Select Orders action on Order Added event to define which orders qualify. Then you use Order Selector in the Adjust Order Prices action to tell it what item you get free.

And yes this does involve a new feature that was made for the combos.

1 Like

Im sure you figured it out but MT.Combo=Main is referring to a Product Tag that I defined as Combo and Main is the value.

Adjust Order Prices works on Selected Orders by default.

If we select 3 random orders manually by hand and execute 1 free for 3 function…

  1. It will check if 3 orders are selected (by quantity)
  2. If so it will select one of them by applying sort function and zero it’s price by applying discount.
  3. If distribute discount is enabled it will distribute discounts to all selected orders.

So before executing Adjust Order Prices we need to select orders. To do that we can…

  1. Execute Select Orders action.
  2. Use Adjust Order Price actions internal order selector.

Adjust Order Prices action accepts single expression so we can select one kind of orders. Like … “orders with X Menu Tag”.

Select Orders Action accepts multiple comma separated expressions. It executes all expressions one by one until one expression does not select an order. So if we set an expression like (MT.Type=Meal) and (MT.Type=Drink) it selects 1 meal and 1 drink.

So if we execute 1 free for 2 items function in descending order it applies discount to cheapest one.

Sorry for my poor explanation, from how I explained it, it my sound like too complex but it is not too hard to implement.

2 Likes

I uploaded a fresh build of SambaPOS 5.2.13 Beta version.

1 Like

Oh no… I was working on some issue. @VehbiEmiroglu today we’ll need to update once more to fix that. I’ll let you know.

2 Likes

Ok no problem , i will do it.

1 Like

Really? Where was this documented before? I could have so much used that so many times :cry: :cry:

1 Like

Hah it’s not. I just knew it from my time working with configuration tasks. Configuration tasks will export yaml of any feature almost. Which means you can import it as well.

And just import via batch create products, right?

I uploaded a fresh build now.

1 Like

@emre is this part of our plan to implement canceling of a Combo?

No this is for allowing different Y calculation methods.

Canceling combo is already possible. I’m working on fine tuning rules…

1 Like

14 posts were merged into an existing topic: Combos brainstorming

@emre I moved our discussion back to Combo thread to not clog up this release thread.

1 Like

We’re planning to release tomorrow. Just wanted to let you know.

3 Likes
2 Likes