# Automatic discount based on customer discount-level with set amounts per product

**URL:** <https://forum.sambapos.com/t/automatic-discount-based-on-customer-discount-level-with-set-amounts-per-product/3221>\
**Category:** V4 Question\
**Created:** [November 1, 2014, 6:45pm UTC](https://forum.sambapos.com/t/automatic-discount-based-on-customer-discount-level-with-set-amounts-per-product/3221 "2014-11-01T18:45:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [November 1, 2014, 8:39pm UTC](https://forum.sambapos.com/t/automatic-discount-based-on-customer-discount-level-with-set-amounts-per-product/3221/7 "2014-11-01T20:39:01Z")

</div>

I’m trying to find something, but I’m not very optimistic.  
The closest I could find until now is this:

> [@Loop through all orders of a ticket](https://forum.sambapos.com/t/loop-through-all-orders-of-a-ticket/502/3):
>
> You don’t need to loop to update order tags. Update Order Tag action automatically loops all orders. If you can give more details about your case I can give better advice.

I imagine this also won’t help much, because than we would need different order tags for each specific amount of discount and also a way to loop through these tags. Plus we wouldn’t be able to get the values from the product tags either…

Right now all I can think off is some new functionality, which already a few times I’ve considered to be something that would be very useful:

- a `Loop through ticket orders` action
- a `Order reached in loop` event, where we can update (or delete) the order based on order, ticket and entity values

I know @emre has considered something like this, I’m interested to know what happened with that…

> [@Tags in constraints](https://forum.sambapos.com/t/tags-in-constraints/500/14):
>
> Now I understand why you were looking for order looper. You need to loop through all orders and execute related actions by order type. Umm… yes that might be an interesting feature but first I have to check if such feature will be possible.

---

_[View the full topic](https://forum.sambapos.com/t/automatic-discount-based-on-customer-discount-level-with-set-amounts-per-product/3221)._
