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

#   Floating tax error with price ranges

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#190843](#190843) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[Floating tax error with price ranges](/forum/3-bug-report/875006-floating-tax-error-with-price-ranges#190843 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  It seems that if you have activated the new floating tax feature, and have &quot;Price Range&quot; as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.  For rexample: 1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location 2. If option &quot;Price range&quot; is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example). 3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

It seems that if you have activated the new floating tax feature, and have "Price Range" as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.

For rexample:
1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location
2. If option "Price range" is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example).
3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)

Last edit: 11 years 9 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzUwMDYtZmxvYXRpbmctdGF4LWVycm9yLXdpdGgtcHJpY2UtcmFuZ2VzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

11 years 8 months ago [\#191193](#191193) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Floating tax error with price ranges](/forum/3-bug-report/875006-floating-tax-error-with-price-ranges#191193 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  It seems that if you have activated the new floating tax feature, and have &quot;Price Range&quot; as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.  For rexample: 1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location 2. If option &quot;Price range&quot; is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example). 3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)")*

HI,

Thank you for your feedback.
We were able to reproduce the issue and fix it.

Change the code: Code:

$min-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($min-&gt;price_value,$zone_id,$element-&gt;product_tax_id); $min-&gt;taxes = $this-&gt;taxRates; $max-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($max-&gt;price_value,$zone_id,$element-&gt;product_tax_id); $max-&gt;taxes = $this-&gt;taxRates;

to: Code:

if(empty($min-&gt;taxes_added)){ $min-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($min-&gt;price_value,$zone_id,$element-&gt;product_tax_id); $min-&gt;taxes = $this-&gt;taxRates; $min-&gt;taxes_added = true; } if(empty($max-&gt;taxes_added)){ $max-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($max-&gt;price_value,$zone_id,$element-&gt;product_tax_id); $max-&gt;taxes = $this-&gt;taxRates; $max-&gt;taxes_added = true; }

in the file administrator/components/com_hikashop/classes/currency.php and that should fix the problem.

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

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 8 months ago -  11 years 8 months ago [\#191293](#191293) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Floating tax error with price ranges](/forum/3-bug-report/875006-floating-tax-error-with-price-ranges#191293 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  It seems that if you have activated the new floating tax feature, and have &quot;Price Range&quot; as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.  For rexample: 1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location 2. If option &quot;Price range&quot; is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example). 3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)")*

Thanks a lot Nicolas, that fixed the problem on the products list page indeed!
It seems though that products with price ranges (one price per variant) still show the wrong price once put into the cart.

Last edit: 11 years 8 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile"). Reason: typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NzUwMDYtZmxvYXRpbmctdGF4LWVycm9yLXdpdGgtcHJpY2UtcmFuZ2VzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

11 years 8 months ago [\#191342](#191342) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Floating tax error with price ranges](/forum/3-bug-report/875006-floating-tax-error-with-price-ranges#191342 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  It seems that if you have activated the new floating tax feature, and have &quot;Price Range&quot; as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.  For rexample: 1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location 2. If option &quot;Price range&quot; is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example). 3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)")*

Hi,

Change the code: Code:

$price-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($price-&gt;price_value,$zone_id,$product_tax_id,$round); $price-&gt;taxes = $this-&gt;taxRates;

to: Code:

if(empty($price-&gt;taxes_added)){ $price-&gt;price_value_with_tax = $this-&gt;getTaxedPrice($price-&gt;price_value,$zone_id,$product_tax_id,$round); $price-&gt;taxes_added = true; $price-&gt;taxes = $this-&gt;taxRates; }

in the same file and that should fix the problem.

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

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 8 months ago [\#191448](#191448) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Floating tax error with price ranges](/forum/3-bug-report/875006-floating-tax-error-with-price-ranges#191448 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  It seems that if you have activated the new floating tax feature, and have &quot;Price Range&quot; as price display option for product listing page, then HikaShop takes out a tax percentage on the product listing page. As soon as you click on one specific product, then the price is correct.  For rexample: 1. Product costs 100€ (final price incl taxes) and tax is calculated during checkout depending on user location 2. If option &quot;Price range&quot; is selected for display of product listing, then the price shown in the list of products becomes 100€ minus tax (80€ for example). 3. Click on product in question, and the price on the product details page is as expected (i.e. including tax)")*

That was fast. It's perfect, thank you! That fixed it.

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

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