Discussions

Sales Tax on Role Based Prices

We have a site with a role for wholesale buyers and a price rule that is providing the correct price for the roles.

We also have a simple state sales tax configured for one state.

Our sales tax is being calculated on the larger retail price instead of the lower wholesale price.

I have read a lot and followed video-casts in setting up the price and the sales tax. I have tried changing weight specs on the rules and all the other possible fixes I can find. All to no avail.

Can someone help get the sales tax calculating correctly for both prices?

Posted: Aug 9, 2012

Comments

RonD on August 9, 2012

Here is the rule for wholesale price:
{ "rules_wholesale_price" : {
"LABEL" : "Wholesale Price",
"PLUGIN" : "reaction rule",
"WEIGHT" : "-1",
"REQUIRES" : [ "rules", "commerce_line_item", "commerce_product_reference" ],
"ON" : [ "commerce_product_calculate_sell_price" ],
"IF" : [
{ "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "commerce_product" } },
{ "entity_has_field" : {
"entity" : [ "commerce-line-item:commerce-product" ],
"field" : "field_wholesale_price"
}
},
{ "user_has_role" : {
"account" : [ "site:current-user" ],
"roles" : { "value" : { "5" : "5" } }
}
}
],
"DO" : [
{ "commerce_line_item_unit_price_amount" : {
"commerce_line_item" : [ "commerce-line-item" ],
"amount" : [ "commerce-line-item:commerce-product:field-wholesale-price:amount" ],
"component_name" : "base_price",
"round_mode" : "1"
}
}
]
}
}

The sales tax is .093 rate entered via the Store > Configuration > Taxes admin screens.