Dynamic Pricing + User Role + Tax Exemption
With the dynamic pricing extension it would be great to be able to define User Groups that are Tax Exempt (i.e. Resellers, Wholesalers, and Distributors).
Thanks for the idea, but due to the lack of votes we don’t have the resources to pursue this idea further.
5 comments
-
Anonymous
commented
My website could benefit from this. My products are sold to end users, distributors, and non profits. If I'm getting a $5k order from a tax exempt organization, I don't want them to go elsewhere because they have to pay tax on my website. I only want the people paying tax that are supposed to pay tax. Of course, they will have to provide documentation before I actually process the order, but they need the option of "tax exempt".... It's a must. This is 1 more vote in the pot, and I've found many more votes on the web.
-
M
commented
Seems like there is a pretty high demand to offer separate pricing per customer, either individually or by class/role, for wholesale and retail sales. I think all of these suggestions are basically asking for the same thing:
http://ideas.woothemes.com/forums/133476-woocommerce/suggestions/3033469-wholesale
-
Daniel Nice commented
Oppes also note I added the "get_user_role() function to my functions.php that code is below.
function get_user_role() {
global $current_user;$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);return $user_role;
} -
Daniel Nice commented
An update on this one, you can hack the core code to get this to work but note that a WooCommerce update will likely break or overwrite these changes. You have been warned :-)
In the class-wc-tax.php edit line 522 by default it shoudl look something like this:
function get_tax_total( $taxes ) {
return array_sum(array_map(array(&$this, 'round'), $taxes));
}It should look something like this
function get_tax_total( $taxes ) {
if (get_user_role()=='wholesaler') {
return 0;
} else {
return array_sum(array_map(array(&$this, 'round'), $taxes));
}
}I hope this helps someone, this solved my issue, at least for the time being. This code removes the tax from the logged in user role of "wholesaler"
-
Daniel Nice commented
This is very much needed, I would love to be able to create a wholesale login, many of my clients require this.