Cart Transformation update price and DIscounts

Hi all,

I’ve created a cart transformation function to set a minimum advertised price on a product. The function works great when the product is not eligible to for an automatic discount. When it is eligible for an automatic discount, the function correctly sets the minimum advertised price but then the discount applies and is below the minimum advertised price.
Is there a way to set any product the function alters the price on to non-discountable for the transaction? Obviously excluding these products from the automatic discounts to start with would be “easiest” solution but we have so many products that maintaining that daily/weekly would not feasible.

Appreciate you’ve already mentioned something similar. I don’t think any of the work arounds would be less effort than doing your ‘easy suggestion’.

I would personally focus on making that business process as simple as possible. For example, using an automatic collection based on a product tag, or metafield value to exclude the ‘on sale’ products.