- Posts: 4
- Thank you received: 0
Incl. tax in one category and excl. in another?
11 years 8 months ago - 11 years 8 months ago #195892
by leonardy
Incl. tax in one category and excl. in another? was created by leonardy
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Chrome 41.0.2272.89 m
Hi,
We have one main category for the resellers and they want to see the prices without (excl) tax. And we have another main category for the regular customers and they want to see the prices with (incl) tax. How do I accomplish this in HikaShop? It could also work if you could set a tax setting for customers groups.. The only setting I can find for this is to see prices incl tax, excl tax or both. Nothing about setting different tax settings for different customer groups or categories.
Any advice?
Thanks!
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Chrome 41.0.2272.89 m
Hi,
We have one main category for the resellers and they want to see the prices without (excl) tax. And we have another main category for the regular customers and they want to see the prices with (incl) tax. How do I accomplish this in HikaShop? It could also work if you could set a tax setting for customers groups.. The only setting I can find for this is to see prices incl tax, excl tax or both. Nothing about setting different tax settings for different customer groups or categories.
Any advice?
Thanks!
Last edit: 11 years 8 months ago by leonardy.
Please Log in or Create an account to join the conversation.
11 years 8 months ago #195903
by nicolas
Replied by nicolas on topic Incl. tax in one category and excl. in another?
Hi,
The simplest is indeed to configure the tax settings for customer groups.
If you go in the menu System>Taxes, you can see a list of your tax rules.
Select one and edit it.
There, on the tax rule form, you can see an "access level" area where you can restrict the tax rule based on user groups.
That way, the tax rule will only apply for users from the user groups selected in the tax rule.
take.ms/hMjnI
The simplest is indeed to configure the tax settings for customer groups.
If you go in the menu System>Taxes, you can see a list of your tax rules.
Select one and edit it.
There, on the tax rule form, you can see an "access level" area where you can restrict the tax rule based on user groups.
That way, the tax rule will only apply for users from the user groups selected in the tax rule.
take.ms/hMjnI
Please Log in or Create an account to join the conversation.
11 years 8 months ago #195967
by leonardy
Replied by leonardy on topic Incl. tax in one category and excl. in another?
Thank you for the answer.
If I choose to use that way there is just one problem though and that is to show the text "incl. tax" at products for regular customers and the text "excl. tax" on products for resellers. And also I need to show both incl. tax and excl. tax in the checkout page for both customers and resellers. Is this possible?
If I choose to use that way there is just one problem though and that is to show the text "incl. tax" at products for regular customers and the text "excl. tax" on products for resellers. And also I need to show both incl. tax and excl. tax in the checkout page for both customers and resellers. Is this possible?
Please Log in or Create an account to join the conversation.
11 years 8 months ago #195978
by Xavier
Replied by Xavier on topic Incl. tax in one category and excl. in another?
Hi,
To show the text "incl. tax" or "excl. tax" on products you could potentially edit the view "product / listing_price" do a check on the user group and based on that display the correct text.
Regarding the checkout page where you need both prices displayed, the indicated method will not be optimal because for the resellers, no taxes are applied at all.
So in your case, you will have to handle that by code edition. Apply taxes for everybody and in the view "product / listing_price" change dynamically the value for the option "price_with_tax" based on the user group.
To know the user group, it can be found in the object "$user" thanks to that code:
And to change the option value:
To show the text "incl. tax" or "excl. tax" on products you could potentially edit the view "product / listing_price" do a check on the user group and based on that display the correct text.
Regarding the checkout page where you need both prices displayed, the indicated method will not be optimal because for the resellers, no taxes are applied at all.
So in your case, you will have to handle that by code edition. Apply taxes for everybody and in the view "product / listing_price" change dynamically the value for the option "price_with_tax" based on the user group.
To know the user group, it can be found in the object "$user" thanks to that code:
Code:
$user = hikashop_loadUser(true);
And to change the option value:
Code:
$config = hikashop_config();
if($reseller){
$config->set('price_with_tax','0');
}else{
$config->set('price_with_tax','1');
}
Please Log in or Create an account to join the conversation.
11 years 2 months ago - 11 years 2 months ago #213404
by hactic
Replied by hactic on topic Incl. tax in one category and excl. in another?
Thanks - I would like to show prices for each user including their local tax rate, or at least so for the most important (say, 10) countries.
So a German B2C user should see a price with a 19 % VAT, an Austrian B2C user a price with a 20 % VAT, a Danish B2C user a price with a 25 % VAT.
Does anyone have a more complete example of the product / listing_price to do such a dispatching along the user's country and the stored tax rates?
Ideally, such a mechanism should trigger as early as possible (by way of an intermediate page when an anonymous session is created upon first visit, asking for the user's country).
best regards
Klaus
post scriptum:
Where can I see the customer type (individual vs. business with VAT ID)?
I see no such field in user admin.
So a German B2C user should see a price with a 19 % VAT, an Austrian B2C user a price with a 20 % VAT, a Danish B2C user a price with a 25 % VAT.
Does anyone have a more complete example of the product / listing_price to do such a dispatching along the user's country and the stored tax rates?
Ideally, such a mechanism should trigger as early as possible (by way of an intermediate page when an anonymous session is created upon first visit, asking for the user's country).
best regards
Klaus
post scriptum:
Where can I see the customer type (individual vs. business with VAT ID)?
I see no such field in user admin.
Last edit: 11 years 2 months ago by hactic.
Please Log in or Create an account to join the conversation.
11 years 2 months ago #213424
by nicolas
Replied by nicolas on topic Incl. tax in one category and excl. in another?
Hi,
There is already such mechanism in HikaShop.
You don't have to change any code.
Here is some documentation on that:
www.hikashop.com/support/2-uncategorised...urope-vat-rules.html
Also, please try not to post for the same questions in different places:
www.hikashop.com/forum/4-how-to/8897-vat...n-method.html#213420
There is already such mechanism in HikaShop.
You don't have to change any code.
Here is some documentation on that:
www.hikashop.com/support/2-uncategorised...urope-vat-rules.html
Also, please try not to post for the same questions in different places:
www.hikashop.com/forum/4-how-to/8897-vat...n-method.html#213420
The following user(s) said Thank You: hactic
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds