elenam Posted July 20, 2016 Share Posted July 20, 2016 (edited) I use Prestashop 1.6.1.6 and have activated the module Layered navigation block. In it I have created a new template for my notebooks category and have activated the Product price filter. The problem is that when I go on the frontend it filters the prices taking as initial range the price without tax, although I have made in all settings to show prices with tax. Es. Product price filter shows as initial range the sum 15. 245 den that is the price without tax for Acer Apire and the price with tax is 17 990 МКД. How I can set that the initial range in the filter is the price with tax (17 990 МКД)? Thank you Edited July 20, 2016 by elenam (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted July 21, 2016 Share Posted July 21, 2016 There is configuration option for this module - "Use tax to filter price". Have you tried that? Link to comment Share on other sites More sharing options...
SareaWS Posted September 29, 2016 Share Posted September 29, 2016 Hi Did you manage to fix this ? I'm having the same problem. Toggling tax option in bloclayered module admin doesn't change anything. Link to comment Share on other sites More sharing options...
xaxa Posted April 12, 2017 Share Posted April 12, 2017 Hello! I have the same problem! Help ? Thanks Link to comment Share on other sites More sharing options...
killday Posted May 24, 2017 Share Posted May 24, 2017 Same problem here, also the slider filter it based on the price without VAT, and shows wrong prices.http://www.e-dress.eu/en/88-dresses#/price-22-28 Link to comment Share on other sites More sharing options...
andrw Posted July 6, 2017 Share Posted July 6, 2017 Hi guys, I'm having the same issue. Anyone fixed this? Thanks Link to comment Share on other sites More sharing options...
xaxa Posted July 7, 2017 Share Posted July 7, 2017 Bonjour, ma solution provisoire en attendant de trouver mieux : Modification de ./modules/blocklayered/blocklayered.php Dans la fonction public static function indexProductPrices($id_product, $smart = true) J'ai modifié : foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)$min_price[$currency['id_currency']].', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; Par : $values = array(); foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; Ayant compris que les valeurs min correspondaient aux prix HT et les valeurs max aux prix TTC... Si ça peut vous aider Link to comment Share on other sites More sharing options...
doigro Posted July 14, 2017 Share Posted July 14, 2017 Bonjour, ma solution provisoire en attendant de trouver mieux : Modification de ./modules/blocklayered/blocklayered.php Dans la fonction public static function indexProductPrices($id_product, $smart = true) J'ai modifié : foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)$min_price[$currency['id_currency']].', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; Par : $values = array(); foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; Ayant compris que les valeurs min correspondaient aux prix HT et les valeurs max aux prix TTC... Si ça peut vous aider Tested. Did not worked for me Link to comment Share on other sites More sharing options...
Julen93 Posted September 5, 2017 Share Posted September 5, 2017 Tested. Did not worked for me Same here. Any solution? Link to comment Share on other sites More sharing options...
leoaga Posted April 17, 2018 Share Posted April 17, 2018 Here the solution : https://www.sunnytoo.com/product/faceted-search-with-price-range-slider-price-range-slider-for-faceted-search Link to comment Share on other sites More sharing options...
maxetere Posted July 27, 2018 Share Posted July 27, 2018 IMPORTANT: This is a BRUTAL, temporary e desperate fix on prestashop 1.6.1.20: Into file: /public_html/modules/blocklayered/blocklayered.php at row 1294 you can find: $values = array(); foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)$min_price[$currency['id_currency']].', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; replace with: $max_tax_rate = 22; //in ITALY VAT is 22%, change it according to your country VAT!!!! $values = array(); foreach ($currency_list as $currency) $values[] = '('.(int)$id_product.', '.(int)$currency['id_currency'].', '.$id_shop.', '.(int)Tools::ps_round($min_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).', '.(int)Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')'; Rebuild price index... hope this help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now