I need a much simpler way to discount individual products based on order total.

For example, my client has 150+ products with pricing like the following example, with a $125 order minimum:
- If order total is $125-574, SKU 10000 is $1.56 each.
- If order total is $575+, SKU 10000 is $1.43 each.
- If customer role is "master," SKU 10000 is $1.34 each.

I am basically now looking at uc_discount's order discounts to do this manually, if that's even possible, so you can imagine how difficult it's gonna be.

I also posted here but no help yet: http://www.ubercart.org/forum/support/11491/distributor_pricing

CommentFileSizeAuthor
#1 uc_discounts_order_products.patch3.13 KBmikejoconnor
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikejoconnor’s picture

Status: Active » Fixed
FileSize
3.13 KB

here's a patch to add product discounts to the order, with the ability to specify conditions based on the individual product, or the entire order.

Scott M. Sanders’s picture

Awesome, I think this may actually work. Honestly though, as much work as you seem to have put into it, I seem to have to put in as much brainpower just to figure out how to make it work for my client's needs, though most of that is probably due to the limited UI of either uc_discount or conditional_actions.

The new trigger and action titles lack specificity and seem to reword the others instead. The first action for uc_discount should be reworded as an order discount perhaps.

On the action page, I see "Discount Settings," then "Discount Type," then a radio group but just one selection, "Products." So this will apply the discount to the product(s) selected in the predicate's condition(s)?

If a customer orders a qty of 500 of SKU 10000, instead of each being $1.56, they will each be $1.43. It looks if I use this patch, I will have to use the operator "multiply" with the amount "-0.91667" (-1.43/1.56)? A bit confusing, but whatever gets it done.

Since my request, I had done up a sample JS form that would calculate the cart beforehand, then pass it to Ubercart using external cart links and attribute pricing instead: http://www.tryissi.com/ucEyFra1.html

Anyway just some constructive feedback, and I hope this patch gets rolled into the module itself. Thanks much. :)

jantoine’s picture

Status: Fixed » Needs review

Let's keep this active until the community has a chance to review it and the module maintainer either commits or dismisses it. Setting status to needs review.

Cheers,

Antoine

mikejoconnor’s picture

Status: Needs review » Fixed

Please see commit http://drupal.org/cvs?commit=231274 from June 29th

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.