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

#   Wrong display of prices with VAT by zone

##

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

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 5 months ago [\#241528](#241528) by [bshomer](/forum/user/42675-bshomer "View bshomer's Profile")  *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241528 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")* was created by *[bshomer](/forum/user/42675-bshomer "View bshomer's Profile")*

-- HikaShop version -- : Business: 2.6.3

Hi,

Situation:

Israel customers need to pay VAT. Tax is set with zone "Israel".
Price is set up to be displayed both (i.e. before and after tax).

Non-registered or Israel based customers see real price before VAT and price with VAT included.

[ ![&#91;img](https://benefrat.org/images/tmp/vat1.png) ](https://benefrat.org/images/tmp/vat1.png "&#91;img")

Registered customers outside Israel see **the price without VAT twice**, with the pre and after text for VAT prices.

[ ![&#91;img](https://benefrat.org/images/tmp/vat2.png) ](https://benefrat.org/images/tmp/vat2.png "&#91;img")

That doesn't make sense! These customers should only see ONE price, without VAT.
Not only is this confusing, it is actually wrong!

Any way this can be controlled?

Thanks so much in advance.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

10 years 5 months ago [\#241564](#241564) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241564 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Hi,

Well, it doesn't make sense because you changed the text around the prices ![;)](/media/kunena/emoticons/24.png ";)")
By default it's like that:
$169.23 ($198.00 with VAT)
and:
$169.23 ($169.23 with VAT)
So the customers outside Isreal would understand that they don't pay VAT.

In your case, you'll have to modify the file "listing_price" of the view "product" via the menu Display&gt;Views and remove the display of the first price if the first price is the same as the second.
You would have to change that piece of code: 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'); }

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

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

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

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 5 months ago [\#241617](#241617) by [bshomer](/forum/user/42675-bshomer "View bshomer's Profile")  Replied by *[bshomer](/forum/user/42675-bshomer "View bshomer's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241617 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Thank you for the reply and help with the coding.

I'm aware of the effect of the change of text around the prices, but even without the change in text, it is confusing if the price appears twice with VAT (even if it is the same number). People become very sensitive when it comes to their money... ![;)](/media/kunena/emoticons/24.png ";)")

Thanks for the explanations regarding listing_price (I already modified it anyway as you could see in the images).

I sincerely believe that the "one price policy" when there is no tax should be the default for Hikashop.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

10 years 5 months ago [\#241637](#241637) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241637 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Hi,

I believe that it is the case by default. Prices are displayed only with tax and the price without taxes doesn't appear.
But in the USA, it's the opposite you want: prices without tax displayed only.
Anyway, we have options to cope the best with the different cases, and if you want something more adapted, you can always customize the view like you did.

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

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

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

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 5 months ago [\#241729](#241729) by [bshomer](/forum/user/42675-bshomer "View bshomer's Profile")  Replied by *[bshomer](/forum/user/42675-bshomer "View bshomer's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241729 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Hi Nicolas,

Can you be so kind and instruct me how can I obtain from within view_product_listing_price the registered user country (in either the billing or shipping address, whatever exists)?
I need to modify the product listing price display according to the country of the user (if there is a registered user).
Preferably the country name rather than numeric code, but either one is alright.

I already obtained the user information:
Code:

$user = hikashop_loadUser(true); // Hikashop user. if (!empty($user)){ $cms_id = $user -&gt; user_cms_id; $cms_user = JFactory::getUser($cms_id); etc.

However, the address is not in the user information.

Thanks very much in advance.
:flower:
![:-)](/media/kunena/emoticons/3.png ":-)")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

10 years 5 months ago [\#241755](#241755) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241755 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Hi,

You can do like that: Code:

$app = JFactory::getApplication(); $address_id = $app-&gt;getUserState('com_hikashop.shipping_address'); $addressClass = hikashop_get('class.address'); $address = $addressClass-&gt;get($address_id); echo $address-&gt;address_country;

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

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

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

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 5 months ago [\#241845](#241845) by [bshomer](/forum/user/42675-bshomer "View bshomer's Profile")  Replied by *[bshomer](/forum/user/42675-bshomer "View bshomer's Profile")* on topic *[Wrong display of prices with VAT by zone](/forum/40-taxes/884802-wrong-display-of-prices-with-vat-by-zone#241845 "-- HikaShop version -- : Business: 2.6.3  Hi,  Situation:  Israel customers need to pay VAT. Tax is set with zone &quot;Israel&quot;. Price is set up to be displayed both (i.e. before and after tax).  Non-registered or Israel based customers see real price before VAT and price with VAT included.  Registered customers outside Israel see the price without VAT twice, with the pre and after text for VAT prices.  That doesn't make sense! These customers should only see ONE price, without VAT. Not only is this confusing, it is actually wrong!  Any way this can be controlled?  Thanks so much in advance.")*

Thanks!

You guys are amazing!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg4NDgwMi13cm9uZy1kaXNwbGF5LW9mLXByaWNlcy13aXRoLXZhdC1ieS16b25lP3RtcGw9bWFya2Rvd24=) 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)
