Is it possible to apply a discount on a per item basis instead of to the total?

If all items had the same price then it could be achieved by using a percentage but since they don't, this is no good.

I'm pretty sure I could extend the current code to include that, but before getting to it, I thought I'd ask if it's already

out there.

Lets expand this with an example:

- I add Item #1 with a price of 140usd to my cart twice

- I add Item #2 with a price of 180usd to my cart once

My cart now has a total of 460usd.

I have added a coupon that can be applied to BOTH items called couponCode40 which is meant to discount 40usd from each of the items eligeable to that coupon.

-If the coupon is of type "

*fixed amount*" I get a discount of 40usd and a total of 440usd for my cart.

-If the coupon is of type "

*percentage*" I would get a 40% discount and a total of ~264usd for my cart.

I could've miss something on the coupon edit page, but as far as I see it, it's just doing the fixed amount discount on a total basis instead of a per item as I required.

Anyway, I've already coded a "Discount per item" option and added it to the coupon type drop-down. If anyone is interested let me know. If the option is already coded and I missed it.

Apologies.

Interesting math (140 + 180 = 320)johnnyart wrote: Lets expand this with an example:

- I add Item #1 with a price of 140usd to my cart twice

- I add Item #2 with a price of 180usd to my cart once

My cart now has a total of 460usd.

Even by your math that should be 420 if it just applies to one of the 2 products.I have added a coupon that can be applied to BOTH items called couponCode40 which is meant to discount 40usd from each of the items eligeable to that coupon.

-If the coupon is of type "fixed amount" I get a discount of 40usd and a total of 440usd for my cart.

So to summarize, if you have

2 products

And a coupon that applies to only one product.

If you use percent. It takes off the correct amount from that single product

If you use static amount, it takes off the total instead of just the product?

That is technically by design. Though you might want it to take $10 off each product just like it takes 10% off each product. I can look into that

140+140+180 = 460Qphoria wrote:Interesting math (140 + 180 = 320)johnnyart wrote: - I add Item #1 with a price of 140usd to my carttwice

- I add Item #2 with a price of 180usd to my cart once

My cart now has a total of 460usd.

Request Reviews v1.0 released.

If anyone wants the

*per article*addition let me know.

About my maths, they are correct, you misread my text. Let me highlight it for you.

That's a total of 3 items (2+1) and a price of 460usd. Correct?JohnnyArt wrote:Lets expand this with an example:

- I add Item #1 with a price of 140usd to my carttwice

- I add Item #2 with a price of 180usd to my cart once

My cart now has a total of 460usd.

Looking to add a discount per product... so for example $2.00 off every product you purchase.

So if a customer orders 1 item... then get $2.00 off.

If they order 4 items they get $8.00 off

Would like for it to be with discount code and to have the option to make it automatic discount any order.

Also need it to work for multi stores so while one store may require a coupon code... another may just have auto discounts.

Thank you

Who is online

Users browsing this forum: No registered users and 7 guests