Product details also show with NO tax

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
4 years 6 months ago #319009

-- HikaShop version -- : 4.3.0

Hi, when we set a table with the Hikashop options to show NO tax we see al the products without tax in de table.
That's perfect, but if we click on a product to choose characteristics or see the details then all the prices are show WITH Tax.

We have the whole site WITH Tax but on one page (menu-item) we want to show a table and product with NO tax because this is the only table for business clients.

Is it normal that when you see products in the table WITHOUT tax and on a product page WITH tax?
This product is also only for business clients.

Hope you can help me.


Kind regards,
Lumiga
Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 6 months ago #319030

Hi,

Yes. That setting is for the products listing pages of your menu item.
For the product detail page, it bases itself on the main setting in the HikaShop configuration.
There is no mechanism to display the price with or without taxes base on the user group.
So you would have to edit the file product / listing_price.php via the menu Display>Views and add such code at the beginning:

<?php
$my = JFactory::getUser();
jimport('joomla.access.access');
$userGroups = JAccess::getGroupsByUser($my->id);
if(in_array(XXX, $userGroups))
 $this->params->set('price_with_tax', 0);
?>
where XXX is the id of the user group for your business clients and that will force the display of the prices without taxes for them, on both the listings and the product details pages.

The following user(s) said Thank You: Lumiga

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

Time to create page: 0.067 seconds
Powered by Kunena Forum