Skip to main content

show prices for different users without impuestoy

More
12 years 6 months ago #148395 by alison
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.7
-- PHP version -- : 5.4.25

Hello,
We are configuring the web for two types of customers (public and professional) with different prices.
We want professional users prices are shown without tax on the product, but visible at checkout
For public display users with tax included.

- How can we do to show prices in this way?
- How to set individual prices on product features for professional public?

Thank you,

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

More
12 years 6 months ago #148404 by Jerome
Hi,

How can we do to show prices in this way?
You can configure how taxes are displayed in the HikaShop configuration and in the menu/module configuration (Show taxed prices).
demo.hikashop.com/administrator/index.ph...=menus&task=edit&cid []=576

How to set individual prices on product features for professional public?
ACL on prices using the Joomla user group.
It is a feature of HikaShop bussiness.

Regards,

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

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

More
12 years 6 months ago #148470 by alison
Hello,
Yes, we have the HikaShop business and we have no problem to assign different prices for each customer.

The question is that we want when one of the group of professional users accessing the site can display the products without taxes and these appear only at checkout.

For all other users, to access the site, visualize the products with tax included.

- If the product des module is configured to encompass two audiences at the time to show prices and not separately.

- The same problem we have when it comes to a product feature:

We have product features that customer for a type of mo should be displayed or to be displayed without tax money.

As we proceed to configure?

thanks

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

More
12 years 6 months ago #148657 by Mohamed Thelji
Hi,
The solution will probably be to use this kind of php code :
Code:
$my = JFactory::getUser(); jimport('joomla.access.access'); $config =& hikashop_config(); $userGroups = JAccess::getGroupsByUser($my->id, (bool)$config->get('inherit_parent_group_access'));//$my->authorisedLevels(); if(!empty($userGroups)){ foreach($userGroups as $userGroup){ if($userGroup == YourGroupID){ $this->params->set('price_with_tax',0); } } }
Note that you'll have to replace the YourGroupID by your Joomla user group ID that you'll be able to find through your Joomla User manager page, and that you'll have to add this code at the beginning of the "listing_div" file of the "product" view of your front-end template through "Hikashop->Display->Views"

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

More
12 years 6 months ago #149013 by alison
Hello,
Thanks for your reply, we have managed to show the torque taxes gruppo desired user but the idea was to proceed to checkout, taxes join the end of the order.
because now there are added at the end of purchase.

As we do this?

Thank you,

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

More
12 years 6 months ago #149123 by Mohamed Thelji
Hello,
I didn't understood what you exactly wanted to do so can you show me some screenshots of how and where do you want your price to be displayed ?
Thank you.

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

More
12 years 6 months ago #149142 by alison
Hello,
Attached picture shows how prices are displayed using commercial code provided to us.

What we want is that at the end of purchase Shipping taxes and general taxes are added.

In the sample of the images should show the shipping taxes and the price per unit should be: 6.05 €.

We await your response.

Thank you,

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

More
12 years 6 months ago #149143 by alison
Forgiveness, in this case the method of payment did not have an assigned price, now if shown but not general taxes.

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

More
12 years 6 months ago #149586 by Mohamed Thelji
Hello,
Did you do some modifications through the "cart" file of the "checkout" view of your front-end template through "Hikashop->Display->Views" ?
if that's the case, can you revert these modifications and try it again ?

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

More
12 years 6 months ago #149607 by alison
Hello,
We have not made any changes to any other place than what we previously indicated in the beginning of "listing_div" file of the "product":

$ my = JFactory :: getUser ();

jimport ('joomla.access.access');
$ config = & hikashop_config ();
$ usergroups = JAccess :: getGroupsByUser ($ my-> id, (bool) $ config-> get ('inherit_parent_group_access')) ;/ / $ my-> authorisedLevels ();

if (empty ($ usergroups)) {
   foreach ($ usergroups as $ userGroup) {
     if ($ userGroup YourGroupID ==) {
       $ this-> params-> set ('price_with_tax', 0);
     }
   }
}

but the result is that disappears into the chekout resume.

How can we make it show in only at checkout.

The first solution you gave us was correct medium due to the display of product was correct because it does not show the taxes.

We await your response.

thanks

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

More
12 years 5 months ago #151283 by Xavier
Hi,

thanks to try to use the code given by Mohamed (which is different than the one you paste in your post) in the view "product / cart", change the option "$ this-> params-> set ('price_with_tax', 0);" to another value depending on what you really need.

You can do this changes in the view "checkout / cart" too.

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

Time to create page: 0.245 seconds
Powered by Kunena Forum