Incl. tax in one category and excl. in another?

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #195892

-- 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!

Last edit: 9 years 8 months ago by leonardy.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #195903

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

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
9 years 7 months ago #195967

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?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #195978

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:

$user = hikashop_loadUser(true);

And to change the option value:
$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.

  • Posts: 35
  • Thank you received: 3
9 years 2 months ago #213404

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.

Last edit: 9 years 2 months ago by hactic.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 2 months ago #213424

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

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
Powered by Kunena Forum