Try our conversational search powered by Generative AI!

Custom promotion - disount on cheapest

Vote:
 

Hi.

I'm using Episerver Commerce Version 13.6.0

So, I'm trying to create a promotion where you get a discount on the cheapest product.

That's working correctly when I have 2 products in the cart with quantity 1 on each of them. But if I have quantity 2 on each of them I get discount on one quantity on each product:

Example:

A: Price 50

B Price 100

If I have quantity 2 on A and quantity 2 on B I'm trying to get discount on A but not on B.

I have tried using sorting on Cheapest but then it uses A and quantity from this project first and then B so I get one discount on A and one on B but I want it to be 2 on A.

I have tried implementing a custom sort so I split it up like this:

  1. A, qty: 1
  2. B, qty: 1
  3. A, qty: 1
  4. B, qty: 1

But still when I run ExtractEntries it gives me the same situation I have explained over.

Does anybody know if this is possible to accomplish?

Kind regards Øystein

#253490
Apr 18, 2021 8:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.