Vote up!
Vote down!

pricing rule adjustment - how to add x amount of $ to the order total

I set up this pricing rule in my Drupal 7 Commerce Kickstarter (7.x-2.4) site and I know how to do what I want but the site is now letting me do it.

What I want to happen is on orders with quantities of 50-250 I'd like an additional $8 added to the full order amount.

There are other rules that I will be adding to add more and more charges as the orders get bigger but the damn "action" in this rule is not letting me edit the Data selector to the one I want/need. The one that I have in place add's .08 to the products unit price and I'm guessing that's happening because I'm using "commerce_line_item" as the Data selector???

I would think I would have to use this "commerce-line-item:order:commerce-order-total:" to add $8.00 to the total. Check out these screen grabs so you can follow what I did (at the bottom of this post).

On another note, I will be adding more rules to coincide with these additional charges so that the price of each product drops as orders get bigger. For example if you order 1-4 they're $4.95/each, if you order 5-9 they're $3.95/each and so on and so on. I would think to take care of this 2nd part I'd just add rules that give a discount if the amount of an order is < or > correct?

Here are the links regarding my original problem, thanks in advance if you can help and any help would be greatly appreciated.




And here is the error that I'm getting when I try to set the action's Data selector to the one I think I should be using


And here is the checkout page when I place 50 in the cart - .08 is added to the unit price for some reason even though my rule states to add 8.00 NOT .08


Asked by: owl
on March 14, 2013

2 Answers

Vote up!
Vote down!

The problem was I needed to specify a rule for orders 49 and under. Thanks for the heads up on the commerce fee module. Take care.

Answer by: owl
Posted: Apr 16, 2013
Vote up!
Vote down!

I would treat the "add something to the Order amount" as "adding a fee charge line item" and to do that, I would create a new product type (without a display unless that's your thing) called "Order fees" or some such and create a new "fee" for $8. Your rule then would add that product for order totals over a certain amount and remove that product when the order has been removed.


Josh Miller
Answer by: Josh Miller
Posted: Mar 14, 2013


you lost me there - do you mean add a new product variation type or create a new content type? There is not option to add a new product type. Please walk me through the steps please, I'm a newbee with Drupal Commerce. I'm surprised you cannot set this up with a pricing rule.

- owl on March 20, 2013

I set up a Pricing rule to add a fee to the order and it's not working right. I set up a Pricing rule and it's supposed to add a fee to an order with product quantities of 50-250 of $8. The problem is that when I make the cart only have like 4 products the fee is still present. And I've cleared caches and checked again and the fee is still present. What's up here? Why is the fee not going away? Any help would be very appreciated and thank you in advance.

- owl on April 16, 2013

Probably something wrong with conditions in your rule.

- Josh Miller on April 16, 2013