[Skip to main content](#vessel-content)

#   change Price (price without tax) to ...

##

- **[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")**
- [![chocovo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4491-chocovo "View chocovo's Profile") Topic Author
- [ Offline](/forum/user/4491-chocovo)

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 4 months ago [\#110500](#110500) by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")  *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110500 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")* was created by *[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")*

Hello,

When somebody want to show twice prices, with and without tax Hikashop show... **50€ (40€ without tax)**.

How can I change it to **40€ (50€ with tax)** ?

Thanks and regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago -  13 years 4 months ago [\#110502](#110502) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110502 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")*

Hi there,

You have to edit the listing_price view in Display&gt;Views and play aroud these lines:
Code:

if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); }

Just move the prices the way you cant and switch the translations (made with JText)

Last edit: 13 years 4 months ago by [Eliot](/forum/user/1824-eliot "View Eliot's Profile").

The following user(s) said Thank You: [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")**
- [![chocovo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4491-chocovo "View chocovo's Profile") Topic Author
- [ Offline](/forum/user/4491-chocovo)

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 4 months ago [\#110505](#110505) by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")  Replied by *[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")* on topic *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110505 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")*

Just one question before try it?

Doing this edition, the price will change in all pages? listing, product, and checkout?

Thanks and regards.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#110506](#110506) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110506 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")*

If you edit the view for product it will change for product page and listing.
But you can also made the modification for the checkout with the other listing_price view and in the cart with showcart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")**
- [![chocovo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4491-chocovo "View chocovo's Profile") Topic Author
- [ Offline](/forum/user/4491-chocovo)

Less More

- Posts: 38
- Thank you received: 0
-
-

13 years 4 months ago -  13 years 4 months ago [\#110514](#110514) by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile")  Replied by *[chocovo](/forum/user/4491-chocovo "View chocovo's Profile")* on topic *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110514 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")*

Hello Eliot,

It is not so easy as it seems because I don't understand the code but I will try to obtain it...

I think I need to edit all the page because of discounts, and all other parameters in the page...

Thanks

Last edit: 13 years 4 months ago by [chocovo](/forum/user/4491-chocovo "View chocovo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#110519](#110519) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[change Price (price without tax) to ...](/forum/4-how-to/84063-change-price-price-without-tax-to#110519 "Hello,  When somebody want to show twice prices, with and without tax Hikashop show... 50€ (40€ without tax).  How can I change it to 40€ (50€ with tax) ?  Thanks and regards")*

No problem, here is what you have to do:

Spot this code first: Code:

if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value_with_tax,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); }

and change it to this:
Code:

if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value_with_tax,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); }

I basically just switched the two prices, you can refresh to see what it did ![;)](/media/kunena/emoticons/24.png ";)"). Then, you have to edit the translation. To do so, open your language file (in System&gt;Configuration&gt;languages) and spot this translation: PRICE_AFTER_TAX. You just have to change it to 'with tax)' and it should be ok.

Do not hesitate if you have any other question

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MDYzLWNoYW5nZS1wcmljZS1wcmljZS13aXRob3V0LXRheC10bz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
