2 user groups - 2 prices - with/without tax

  • Posts: 79
  • Thank you received: 0
9 years 3 months ago #211609

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.23

Hi,
I'm trying to do the following

I have 2 usergroups:

  • GroupA
  • GroupB
Each product has 2 prices:
  • PriceA
  • PriceB

What I want to achieve:
  1. customer in GroupA sees PriceA - But... Price without Tax
  2. customer in GroupB sees PriceB - But... Price with Tax

Now, the most difficult thing is the with-tax and without-tax part.

Can you help me with this?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 months ago #211632

Hi,

First, you want to configure the two prices on your product and use the "ACL" icon to set the group for each price so that each group will see their own price.
Then, with you configure your taxes via the menu System>Taxes, you'll have an "access level" section for each tax rule and there you can restrict the tax rules to the corresponding user groups you want.
That way, if the user is in a user group which doesn't have any tax rules, the prices will be displayed without taxes.

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

  • Posts: 79
  • Thank you received: 0
9 years 3 months ago #211644

Hello,
I'm glad it is possible and I added the ACL groups to the taxgroup, but now, the taxes aren't calculated anymore on the product page.

see attachment png

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211648

Hi,

Like Nicolas wrote ; you can set an ACL on the tax itself.
But when you are in the backend, you just have one single user, so one single tax.
You can't see the two prices for two different ACL ; if you want to be sure that the ACL are right configured, you have to test it in the front-end with two users.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 79
  • Thank you received: 0
9 years 3 months ago #211725

Hi Jerome,

but it is not working as it should.

In the backend, I should always see the ex-vat and inc-vat price but that stopped working.
Now, inc-vat and ex-vat are always the same.

When I test with an inc-vat user in the frontend, i can see that hikashop has added the vat twice now. So, it has taken the inc-vat price and added the vat again.

See both attachments. frontend and backed.

The inc-vat user should see the "22" in the frontend, this is a 21% vat product, so the price should be 18,18 ex-vat.
But, in the backend the price isn't calculated anymore: you can see that the price for inc-vat and ex-vat is the same. So, ex-vat is 22 and inc-vat is 22. This is not right: it should be 18,18 ex-vat and 22 inc-vat.

But then, in the frontend this user doesn't see the 22 price but a 27 price. So, there it is calculating the vat.

So, it seems that the vat in the backend isn't working anymore.

In this example i've tested with an inc-vat user.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 months ago #211730

Hi,

It's not that the VAT is not working anymore in the backend. It's just that the user you're using on your backend is not in the group of users of the tax rule(s) you configured.
So no tax apply to the prices in the backend.
Add the user group to your super admin user and you'll see the taxes back in the backend edition interface.

Regarding the tax calculations on the frontend, HikaShop always use the value in the price without taxes field of your product in order to calculate the taxes on the frontend. If you enter 22 in the price without tax field of your product in the backend, that 22 value will be used as the price without tax to calculate the taxes on your frontend.
So if you don't have any taxes for your backend user and that you enter 22 in the price with tax field of the product, the system will calculate the price without tax as 22 on the backend. Then, when you'll display that product's price on the frontend with a user which should see the price taxed, he will get 27 as the price with taxes. You think that the taxes are being calculated twice and that the price without tax is not correct in the backend, but in fact, in that case, you should enter 18 in the backend in order to get the correct price without tax used to calculate the price with taxes.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum