Tom_Rufener Posted October 19, 2011 Share Posted October 19, 2011 Hello everyone, I use PS 1.4.5.1 and have an issue with the blocklayered module: When I filter product attributes (e. g. t-shirt sizes like S, M, L, XL etc.), the layered navigation shows products with attributes that aren't available (attribute stock quantity = 0). I guess a workaround would be to delete all product attributes with stock quantity = 0 manually, but that could be a painstaking task in some cases. Two further bugs also concern the blocklayered module: The price range slider doesn't appear in Internet Explorer 9 (but does in all other browsers) The title of the "price range" segment isn't really translatable. Sure, there's a label for it in the backend, but when I enter a translation (range = "Preisspanne" in German), the translation doesn't appear on the frontend. I guess this could be caused by a missing mod='blocklayered' in blocklayered.tpl on line 98? Is anyone else experiencing these problems? Or does somebody know a fix, especially for the attributes problem? Thanks for your help! Tom Link to comment Share on other sites More sharing options...
tommaso tamtam Posted September 6, 2012 Share Posted September 6, 2012 Hi, i solved your problem with quantity adding " pa.quantity>0 and " string in blocklayered.php at above 2254 line exactly into this case: case 'id_attribute_group': $sub_queries = array(); foreach ($filter_values as $filter_value) { $filter_value_array = explode('_', $filter_value); if (!isset($sub_queries[$filter_value_array[0]])) $sub_queries[$filter_value_array[0]] = array(); $sub_queries[$filter_value_array[0]][] = 'pac.`id_attribute` = '.(int)$filter_value_array[1]; } foreach ($sub_queries as $sub_query) { $query_filters_where .= ' AND p.id_product IN (SELECT pa.`id_product` FROM `'._DB_PREFIX_.'product_attribute_combination` pac LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON (pa.`id_product_attribute` = pac.`id_product_attribute`) WHERE pa.quantity>0 and '; $query_filters_where .= implode(' OR ', $sub_query).') '; } break; Link to comment Share on other sites More sharing options...
indus Posted September 6, 2012 Share Posted September 6, 2012 This is 1 year old thread. His problem may be solved with newer versions already. Link to comment Share on other sites More sharing options...
tommaso tamtam Posted September 6, 2012 Share Posted September 6, 2012 i have installed the 1.4.7.2, and the problem persist Link to comment Share on other sites More sharing options...
indus Posted September 6, 2012 Share Posted September 6, 2012 (edited) Please try the latest version here http://www.prestasho...updated-250612/ or upgrade to prestashop 1.4.9. I hope you have all the backups. Good luck Edited September 6, 2012 by indus (see edit history) Link to comment Share on other sites More sharing options...
Daaaaad Posted September 11, 2012 Share Posted September 11, 2012 Hello indus, The last version of the "blocklayered" module doesn't seems to fix the quantity problem... David. Link to comment Share on other sites More sharing options...
indus Posted September 11, 2012 Share Posted September 11, 2012 Maybe its a feature that isnt available yet. Link to comment Share on other sites More sharing options...
louissss Posted April 3, 2013 Share Posted April 3, 2013 any news on that problem? any news on that issue? thanks Link to comment Share on other sites More sharing options...
YiannisK Posted October 17, 2013 Share Posted October 17, 2013 check this topic, i think it solves the issue 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