Tags/topics: 
3
Answers
Vote up!
0
Vote down!

Discount when Order Total is more than X... How?

<newbie_warning>

I know this have to be a very, very simple task, but as a newbie, I'm really suffering to get the rule work. Done everything, from reading to videos and trying and trying... Some help really appreciated.

I can get the action(s) working without any problem, but when trying to add Conditions I'll end up to "Red Error Messages" like:

"...Data selector commerce-line-item:commerce-total: for parameter commerce_order is invalid..."
( What ever condition I'm trying, I'm ending up to error like this)

What I'm missing?

</newbie_warning>

Asked by: Abilnet
on June 28, 2012

3 Answers

Vote up!
1
Vote down!

I was using the "VAT -Hack" method presented in the nice tutorial & video by Randy Fay:
http://www.drupalcommerce.org/user-guide/product-pricing-rules-screencasts

    Create a Tax Type "Discount" in /admin/commerce/config/taxes/types
  • Add Tax Rates and set components as you prefer (something like -10% discount when cart total equals or is more than 150 but less than 300... -20% discount when cart total equals or is more than 300 but less than 500 etc...) (Data Selector: "site:current-cart-order")
  • In Product Pricing Rules add the tax calculating rule to add tax type "Discount" (Data selector: "commerce-line-item") to line items ("Calculate taxes for a line item")
Answer by: Abilnet
Posted: Jun 30, 2012
Vote up!
1
Vote down!

Found it!

Need to run: Order balance comparison

And Parameter: Order: [commerce-line-item:order]

Answer by: Abilnet
Posted: Jun 28, 2012
Vote up!
0
Vote down!

Could you show us your rule? and we explained what you seek to do with this rule. In fact the he will probably lack a prerequisite "entity has field", a view according to what you want.

Answer by: woprrr
Posted: Jun 29, 2012