# Odd behaviour when using default order tags

**URL:** <https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722>\
**Category:** V5 Question\
**Created:** [December 27, 2015, 4:30am UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722 "2015-12-27T04:30:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [December 27, 2015, 4:30am UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722/1 "2015-12-27T04:30:00Z")

</div>

I’m getting odd behaviour when trying to set default order tags on a menu item in 5.1.56 (I tested in 5.1.57 beta and also is the same issue).

**Background for example:** Tandoori Mixed Grill comes with 6 items (should be added automatically), but customer can change their choice, so it has min / max order tags as 6, so they can be changed if needed.

**Menu Item Product Properties:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/d/e/ded3ae85b85c56c5c9501b669fc7baf91258bdd7.png)

(note there are 6 order tags and no spaces between them, only comma separated)

**Order Tag Group:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/5/b5fcb3efb9ad3b730dc8dd750315d1354f513535.png)

**Order Tag Group List:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/2/8/282f27b8e7f29a2ed95a93716e3d9f7d971a5dc2.png)

(Mapping is only to the individual product (Tandoori Mixed Grill))

**Now, adding order in POS, I get this:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/1/0/10365f4390250d1ffa94e61aa7c9a576f3936e00.png)

**Selecting order, I get this for order tags:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/7/07de5ff3db499612fa18a0080e07ce202916e1fe.png)

Then, strange behaviour when I try to add all items from order tags screen:

 ![](https://forum.sambapos.com/uploads/default/original/3X/8/3/83c15821e58e8efa5b6d7608cbd0f95237987b71.png)

**Issues:**

1. Only **5 items** get added automatically. I checked all spellings are correct (all copy & paste anyway). Also, **first item is the one always ignored** (if I reorder and put Tandoori Chicken first, then it gets left out and Chicken Tikka would appear in its place).
2. Only **4 of 6 order tags** are selected when the order is selected. It would appear to be the first item again, plus another. It would appear it might have something to do with the order tag not being exact match for a query (e.g. there is more than 1 item that **contains** “Tandoori Chicken” and “Chicken Tikka”, other items I think would only return 1 item if a query was done. But again, the names match correctly.
3. Trying to select all order tags from order tag screen creates duplicate order tags on the order, and the strange behaviour essentially allows rules to be ignored (like max 6 items…).

**NOW IN COMPARISON:**

This similar setup with different products works fine…

![](https://forum.sambapos.com/uploads/default/original/3X/0/8/08d6116a93b53c63ec21767017a828046a67ad67.png)

![](https://forum.sambapos.com/uploads/default/original/3X/2/c/2c36318fd73f93f21e78566f60c1b6b79a18bf14.png)

![](https://forum.sambapos.com/uploads/default/original/3X/0/f/0fa3a77c71b93da0a4841f689b8a58f86f4475ca.png)

 ![](https://forum.sambapos.com/uploads/default/original/3X/8/8/880e4a80a13a9292fe61c49c29474720d6e85a77.png)

The only conclusion I cam come to appears to be the working one (Vegetable Mixed Grill) doesn’t have any order tags where if a **contains** query was run would return more than 1 result (all products are exact match).

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [December 27, 2015, 7:22am UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722/2 "2015-12-27T07:22:39Z")

</div>

I dont remember if this was the exact same issue it was a while ago but i think someone had a problem with something similar with duplicate names, try adding a space before or after the tag name and try it again. The space acts as another character so the word is technically then spelt differently

Lile i say i cant remeber if this was this same issue you had, i read something a while back but may be woth giving it a try 🙂

---

<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:** [December 27, 2015, 1:39pm UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722/3 "2015-12-27T13:39:48Z")

</div>

Almost certain the issue is with having Order Tags with the same name in more than one group.

So to specify the “auto-tag” properly in the Menu, you must prefix the tag with the Group Name.

For example, if I have “Ketchup” in Tag Group “Condiments”, _and_ in Tag Group “Sauces”, then choose Ketchup as an “auto-tag”, it will choose Ketchup from the first-listed Tag Group. To overcome this, you need to be more specific in your Menu, like this:

`Sauces=Ketchup`

Another way around it is to name things uniquely. This can be as small as putting a space at the end of a Tag Name. For example, “`Ketchup`” in Condiments Group, and "Ketchup " in Sauces Group. Then in Menu, use:

```auto
Ketchup ,Mustard,Relish
^^^^^^^^ from the Sauces Group, having a space at the end

```

This is the way I used to do it, but it is hard to keep track of which have spaces and which do not. So I preferred to change my Menu Tags to:

```auto
Sauces=Ketchup,Mustard,Relish

```

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [December 27, 2015, 10:31pm UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722/4 "2015-12-27T22:31:39Z")

</div>

> [@QMcKay](#):
>
> Sauces=Ketchup

Ok I’ll give this a try. I don’t like the spaces idea, it is messy and also would mess up alignment in printer templates. Thanks 😄

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [December 28, 2015, 1:52am UTC](https://forum.sambapos.com/t/odd-behaviour-when-using-default-order-tags/8722/5 "2015-12-28T01:52:30Z")

</div>

> [@QMcKay](#):
>
> Sauces=Ketchup

Yeah, I confirm this works. So I had to explicitly add the order tag group name for each order tag on the menu item, so for my example:

```auto
Tandoori Mixed Grill Items=Tandoori Chicken,Tandoori Mixed Grill Items=Chicken Tikka,Tandoori Mixed Grill Items=Reshmi Kabab,Tandoori Mixed Grill Items=Sheek Kabab,Tandoori Mixed Grill Items=Boti Kabab,Tandoori Mixed Grill Items=Fish Tikka

```

Quite long but it works! 😄
