net and gross prices change

  • Posts: 6
  • Thank you received: 1
7 years 8 months ago #263923

Hello,

I use HikaShop Business version and my question is can I change the net and gross prices display on my webshop? Because our customers are companies not persons and the most important for them are the net prices, but I have to show gross prices also. So, it would be great if I could display the net prices at first, instead the gross prices and the gross prices in a parenthesis after net prices (instead the current net prices). And in the cart also would be important to show net prices. Can I do this changes anyway?

Thank you for your help in advance,

Beatrix

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #263927

Hello,

You have settings in HikaShop configuration in order to determine how you want to display your prices.
Specially the setting "Show taxed price" to indicate if you want to display the price with or (and) without taxes :
www.hikashop.com/support/documentation/5...nfig.html#main_taxes

You can use language system to change the content used when displaying the price.
These translations are the first available translations in the HikaShop language file.
www.hikashop.com/download/languages.html#modify

Afterwards, if you want to change how the price is display for specific views, you would require to perform a view override to change the setting before the price is display ; or you can use directly the values store in the object.
HikaShop will store the different "states" of the prices, so you will find variables like "price_value_with_tax" and "price_value" depending if you want the price with or without the taxes.

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.
The following user(s) said Thank You: JB-OptoPort

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

  • Posts: 6
  • Thank you received: 1
7 years 8 months ago #264129

Hello,

Thank you for your answer.
I think I have to overwrite view to change the order of appearance of the prices. Could you help me please in which files can I do it? And to tell the truth my php knowledge is not too deep so I would be grateful if you could give me some advice what I should overwrite.

Regards,
Beatrix

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 8 months ago #264141

Hi,

The main one you'll want to change is the file "listing_price" via the menu Display>Views.
You can intervert there the texts price_value and price_value_with_tax in order to reverse their display.
You'll only find really basic PHP in that file so it should be easy to understand.

The following user(s) said Thank You: JB-OptoPort

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

  • Posts: 6
  • Thank you received: 1
7 years 8 months ago #264685

Hi,

Thank you for your help!
Finally succeeded to do it more or less, but left some place where I couldn't do the changes.
Could you help me in them?

1. In the order process the "subtotal price" - I would like to change it to "Total price without tax" (Total net price) (order.jpg)
2. In the order confimation email - the product price is still the gross price, but in the cart at the checkout process there is net price at now (notification mail.jpg)
3. Are there any option to display net and gross price both on the product listing page? (product listing.jpg)

Thank you

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 8 months ago #264750

Hi,

As Jerome explained previously, you can find settings to change the price display to be with or without taxes or both.
For example, on the listings, each menu item and modules has such taxed price display setting, so no code is necessary.
In the emails and checkout, the main "show taxed prices" setting of the HikaShop configuration controls the display so that you can choose if you want to display taxed or untaxed prices all with that one option. So you should check it out. It will be easier than changing the code in each view or email.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum