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

#   Price with and without VAT, displayed on two lines

##

- **[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")**
- [![vpospisil's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2012-12-17.jpg)](/forum/user/9894-vpospisil "View vpospisil's Profile") Topic Author
- [ Offline](/forum/user/9894-vpospisil)

Less More

- Posts: 8
- Thank you received: 0
-
-
-
- [](http://www.speedx.cz)
-

14 years 2 weeks ago [\#70225](#70225) by [vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")  *[Price with and without VAT, displayed on two lines](/forum/4-how-to/70225-price-with-and-without-vat-displayed-on-two-lines#70225 "Hello  I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.  If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax. It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.  Thank you for your interest.  Regards, Václav pospíšil")* was created by *[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")*

Hello

I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.

If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax.
It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.

Thank you for your interest.

Regards, Václav pospíšil

- [ ![01.jpg](/forum/attachment/6300) ](/forum/attachment/6300 "01.jpg") [ ](/forum/attachment/6300?download=1 "01.jpg")
- [ ![02.jpg](/forum/attachment/6301) ](/forum/attachment/6301 "02.jpg") [ ](/forum/attachment/6301?download=1 "02.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 weeks ago [\#70306](#70306) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Price with and without VAT, displayed on two lines](/forum/4-how-to/70225-price-with-and-without-vat-displayed-on-two-lines#70306 "Hello  I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.  If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax. It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.  Thank you for your interest.  Regards, Václav pospíšil")*

Hi,

It's possible to customize the price display. You have to edit the view "product / listing_price" in HikaShop &gt; Display &gt; Views.

Here you can add &lt;span&gt; or &lt;div&gt; ... and classes to customize the price display.
In this view, it will affect the product list, product detail and the basket.

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

- **[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")**
- [![vpospisil's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2012-12-17.jpg)](/forum/user/9894-vpospisil "View vpospisil's Profile") Topic Author
- [ Offline](/forum/user/9894-vpospisil)

Less More

- Posts: 8
- Thank you received: 0
-
-
-
- [](http://www.speedx.cz)
-

14 years 1 week ago [\#70814](#70814) by [vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")  Replied by *[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")* on topic *[Re: Price with and without VAT, displayed on two lines](/forum/4-how-to/70225-price-with-and-without-vat-displayed-on-two-lines#70814 "Hello  I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.  If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax. It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.  Thank you for your interest.  Regards, Václav pospíšil")*

Thank you for your help, but I need to know where do I change the file - "checkout/listing_price.php". I would not do it wrong

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago [\#70838](#70838) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Price with and without VAT, displayed on two lines](/forum/4-how-to/70225-price-with-and-without-vat-displayed-on-two-lines#70838 "Hello  I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.  If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax. It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.  Thank you for your interest.  Regards, Václav pospíšil")*

Hi,

You have to edit these lines, to change the display in the product page, and product listing: 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'); }

Just add somethings like "echo '&lt;br/&gt;'; after "echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);" to put the price without tax under the price with tax

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

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

- **[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")**
- [![vpospisil's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2012-12-17.jpg)](/forum/user/9894-vpospisil "View vpospisil's Profile") Topic Author
- [ Offline](/forum/user/9894-vpospisil)

Less More

- Posts: 8
- Thank you received: 0
-
-
-
- [](http://www.speedx.cz)
-

14 years 1 week ago -  14 years 1 week ago [\#70863](#70863) by [vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")  Replied by *[vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile")* on topic *[Re: Price with and without VAT, displayed on two lines](/forum/4-how-to/70225-price-with-and-without-vat-displayed-on-two-lines#70863 "Hello  I have several questions about customization of your component. If I choose (Configuration -&gt; Display - Show taxed price = with and without tax) then prices should be displayed on two rows, ideally each with its own span tag and own class in order to set up its appearance using css.  If the price is with tax and without tax on one row then the content will overflow to another container and it doesn’t look good. Even more, customers prefer to see a price without VAT highlighted unlike to the price with tax. It would be perfect if the customization would been through the entire shop. Prices should be displayed in this way in product list, in product detail or in basket as well.  Thank you for your interest.  Regards, Václav pospíšil")*

Hi. Super thank for you support

Last edit: 14 years 1 week ago by [vpospisil](/forum/user/9894-vpospisil "View vpospisil's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcwMjI1LXByaWNlLXdpdGgtYW5kLXdpdGhvdXQtdmF0LWRpc3BsYXllZC1vbi10d28tbGluZXM/dG1wbD1tYXJrZG93bg==) 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.167 seconds

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

[](#top)
