Developer forum

Forum » Feature requests » Order Discount provider to support "Exact Price"

Order Discount provider to support "Exact Price"

Scott Forsyth
Reply

I've noticed this before, and ran into it again today. Many of our B2B customers have different prices per customer. They would like to offer promotional pricing with fixed prices for certain products. For example, in today's situation they sent out a flier with a promo code (JULY-PROMO) that gives them a lower fixed rate per product.

The issue is that the order discount provider supports an "Amount off", but not a fixed amount. The Amount off doesn't work because each customer have a different base price. For example, $10 off $50 = $40, but for another customer it could be $10 off $45 = $35. What we want is to make it $30 for every customer who uses the promo code.

Would it be possible to add in an option on the Discount Type for "Exact Price"?

We'll put that to good use asap if possible. :)

Thanks,

Scott


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Scott

I think I understand the request. If you have, say 1000 products in your campaign, that would give you 1000 order discounts - one for each product?

I can see a lot of potential problems with this feature - because it adds price matrix features to discounts and it could give lots of issues - and potentially bad performance.

Discounts are handled like PRICE-DISCOUNT = NEW PRICE. How would expect this feature to behave? Like CUSTOMER SPECIFIC PRICE - (CUSTOMER SPECIFIC PRICE - NEW FIXEED PRICE) = NEW PRICE? So the discount amount shown in the cart would be $20 for one customer and $15 for the other customer (difference between the customer price and the new fixed price).

You could relatively easy make this as a discount provider. If promo code is applied, look up the promo price somewhere, calculate the difference to the product.price (which is customer specific) and let the discount return the difference as the discount amount.

BR Nicolai

 
Nicolai Høeg Pedersen
Reply

Or we could add voucher code to the price matrix. But that would not show the price as a discount, just another price when the voucher is applied to the order context.

 
Scott Forsyth
Reply

Hi Nicolai,

Yes, you understand it correctly. You're right that the calculation on the order discount would be CUSTOMER SPECIFIC PRICE - (CUSTOMER SPECIFIC PRICE - NEW FIXED PRICE) = NEW PRICE. That would be able to show the original and discounted rate.

For this particular situation there would be about 50 products, so I don't think that performance would be impacted much. It always requires a voucher code too.

The price matrix could also work if there was a voucher code in it. Like you say, it wouldn't flag it as a discount in the same way but I think that we could live with that.

I think I like the order discount more because everything looks like other promos, except that it gives an exact price rather than one that is relative to the customer's pricing. And it would be able to leverage all of the other functions of the order discount. But the price matrix has very close to the same choices, so either way would work.

Thanks,

Scott