show prices for different users without impuestoy

  • Posts: 39
  • Thank you received: 1
11 years 5 months ago #148395

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

  • Posts: 26270
  • Thank you received: 4044
  • MODERATOR
11 years 5 months ago #148404

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.

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: 39
  • Thank you received: 1
11 years 5 months ago #148470

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #148657

Hi,
The solution will probably be to use this kind of php 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.

  • Posts: 39
  • Thank you received: 1
11 years 5 months ago #149013

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #149123

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.

  • Posts: 39
  • Thank you received: 1
11 years 5 months ago #149142

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,

Attachments:

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

  • Posts: 39
  • Thank you received: 1
11 years 5 months ago #149143

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #149586

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.

  • Posts: 39
  • Thank you received: 1
11 years 5 months ago #149607

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #151283

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