prestatent Posted August 28, 2013 Share Posted August 28, 2013 Prestashop 1.5.4.1 I'm building a site and I want my categories filters to work like this example on the Prestashop showcase. http://www.belancy.c...lets-or#filter=[page:1] Do you think the filtering has been modified in some way or is this working without modification. This is what I would like to achieve. I've setup categories and sub-categories and selecting my category filters increases the number of products rather than reduce. Thanks for reading and all help appreciated. Link to comment Share on other sites More sharing options...
prestatent Posted August 28, 2013 Author Share Posted August 28, 2013 Anyone? Link to comment Share on other sites More sharing options...
stottycabanas Posted August 28, 2013 Share Posted August 28, 2013 The link you've provided doesn't work. Link to comment Share on other sites More sharing options...
prestatent Posted August 28, 2013 Author Share Posted August 28, 2013 Sorry. Try now: "]http://www.belancy.com/28-alliances-mariage#filter=[page:1] Link to comment Share on other sites More sharing options...
prestatent Posted August 28, 2013 Author Share Posted August 28, 2013 Anyone have any ideas at all, or alternatively are there any paidfor modules that would work like this one. Essentially a product can be in more than one category, so how can I represent this in blocklayered categories using product catgegories not features or attributes. For example, I want to filter using only product categories so that I end up with only one or two products from a starting point of 10. So for each category or sub-category I select the list of products gets smaller and smaller. Surely someone must have created a module for this. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 28, 2013 Share Posted August 28, 2013 I've setup categories and sub-categories and selecting my category filters increases the number of products rather than reduce. Hi! Thanks for the message. Could you link us to your store? I would like to see how selecting category filters actually increases the number of products. Link to comment Share on other sites More sharing options...
prestatent Posted August 29, 2013 Author Share Posted August 29, 2013 Thanks for replying. The store isn't online as I'm developing this on my local machine at the moment. However, I'll give you an example with screenshots: Image 1 We have a category of "2 Person Tent". If we click on the checkbox in the category filters for "2 Person Tent" it will show image 1 with one product shown. This is correct. I would also have expected any other categories to be disabled or redisplayed with adjusted number of products (as it would if I was selecting a colour filter). However no categories are disabled or adjusted, and I can select for instance "Family Tents" as shown in image 2. Therefore it now shows products from "2 Person Tent" and "Family Tent". What I would expect is that if I chose "Family Tent" sub-category with "2 Person Tent" already selected, I should get no records, as the product is not a member of the "Family Tents" sub-category. Maybe I'm structuring my categories incorrectly but they look to be correct. I would think that category filters should work in the same way as features and attributes filters but it does not. Your help on this would be greatly appreciated or if a module is available that would do this, I would be happy to pay for. Thanks Link to comment Share on other sites More sharing options...
RCP90 Posted August 29, 2013 Share Posted August 29, 2013 I will try to reply later, am finishing up at work right now. I found it hard to get used to how the layered nav functions, and one thing I may suggest is to try this: Go to the layered nav module>configure and build attribute index & build URL index See if that helps Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 I will try to reply later, am finishing up at work right now. I found it hard to get used to how the layered nav functions, and one thing I may suggest is to try this: Go to the layered nav module>configure and build attribute index & build URL index See if that helps Thanks RCP90. that is a great suggestion. However, I must ask you to BackUp your website first, just in case. I don't think you have your features set up for each of your products. What would be the "Parent" product that these features attach to? I assume Tents? would be the parent? 1 Link to comment Share on other sites More sharing options...
RCP90 Posted August 29, 2013 Share Posted August 29, 2013 (edited) Thanks RCP90. that is a great suggestion. However, I must ask you to BackUp your website first, just in case. I don't think you have your features set up for each of your products. What would be the "Parent" product that these features attach to? I assume Tents? would be the parent? Yes, assuming the features are correctly associated with the products, and the filters created in the layered nav config are associated with each of the sub categories the attribute and url index should be updated after any change> I have setup a cron job, which rebuilds the layered navigation attribute and URL index everyday as recommended. At first the layered navigation was a bit funky for me, for example, when i selected filters and went back it would not update or would display incorrect products. I learnt that when changes are made to any aspect of the layered nav the only way to garantee correct functionality of the layered nav was to rebuild. I believe that whenever new products are added, and/or the structure/filters of the layered nav are changed the URL and attribute index should be updated. Once I did this all of my problems were fixed, but yes if products are not assigned correct features it will also not work correctly. Edited August 29, 2013 by RCP90 (see edit history) Link to comment Share on other sites More sharing options...
prestatent Posted August 29, 2013 Author Share Posted August 29, 2013 Hi Thanks to both of you for your answers. I have rebuilt my attributes and url indexes and created a index with all the categories in it. I'm not using features or attributes to filter. I believed that you could cut down the list of products by selecting a category filter which would reduce the available category selections, etc.. However that does not seem to be the case. My top-level parent category is Tents, followed by Tent Range sub-category and within this, more sub-categories. Cheers. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 prestatent, hello! You are not using any features? Take a look at this video from Nemo1 one of our Forum Moderators. http://www.prestashop.com/forums/topic/253628-free-video-tutorial-prestashop-modules-overview-layered-navigation-block/ Link to comment Share on other sites More sharing options...
RCP90 Posted August 29, 2013 Share Posted August 29, 2013 (edited) Hi Thanks to both of you for your answers. I have rebuilt my attributes and url indexes and created a index with all the categories in it. I'm not using features or attributes to filter. I believed that you could cut down the list of products by selecting a category filter which would reduce the available category selections, etc.. However that does not seem to be the case. My top-level parent category is Tents, followed by Tent Range sub-category and within this, more sub-categories. Cheers. The layered navigation filtering system is based on features. You need to define the features on each product in order for the filtering to work correctly. you need to create the features in the back office, and add their values, and then the easiest way to associate them to your products is when you create the product import CSV define the required features for each product. The layered navigation will not work the way you want it to unless these features are correctly assigned to the product, either at the point of import, or on an individual basis on the product details. Once you have decided on the features and values of features and assigned them to the products you need to create filters within the layered navigation configuration and apply them to the different categories/sun categories so that they work correctly. Edited August 29, 2013 by RCP90 (see edit history) 2 Link to comment Share on other sites More sharing options...
prestatent Posted August 29, 2013 Author Share Posted August 29, 2013 Thanks Benjamin and RCP90. Appreciate your help on this and giving me a better understanding on this subject. I now know where I was going wrong. I thought that the filtering of categories was the same as the filtering of features and attributes, which I now understand is not the case. I will have to rethink how to filter these categories using features instead. One more question: Can features have multiple values? For instance, usually there is a 1 to 1 relationship being feature:value. So in my example images above, a tent could have a feature of "Activity" but have values of "Wild Camping", "Festival" and "Mountain". How could I filter based on multiple values for one feature, or load this information in an import file? Lat point: maybe an addition to Prestashop Layered Navigation would be to allow filtering in the same way as features, although I don't know how that could be done. I off to watch Nemo's video now. Thank you again for helping me understand this subject. Cheers. 1 Link to comment Share on other sites More sharing options...
RCP90 Posted August 29, 2013 Share Posted August 29, 2013 (edited) Hello, The standard category navigation and the layered navigation are 2 different things. You put your products within a category, and use the layered navigation to filter those products further, based on thier individual features. I am basing my website on 5 or 6 main categories, with all of my products within these categroies ( over 10k products ) and then filter the products within them using the layered navigation filtering ( very similar to http://www.watchshop...sorting=newness) You need to take time in designing and planning exactly how the layered navigation will filter your products. I have opted to use the layered navigation as my primary navigation system, because i like using the filtering options, rather than having lots of sub categories. Each filter can have multiple values, example Feature "Tent size" values "1 man", "2 man" ,"3 man" etc, but each product can only use one of a specific value for each filter. If you browse through the watch shops filtering system, PrestaShops layered navigation can achieve that. If you need any help with this I can give you a hand via Skype over the weekend. Edited August 29, 2013 by RCP90 (see edit history) 2 Link to comment Share on other sites More sharing options...
prestatent Posted August 29, 2013 Author Share Posted August 29, 2013 Thanks RCP90. The filtering definitely needs some thought, but you have put me on the right track. I'll have to think about the multiple values for one feature issue, although I may be able to code round this to make it appear that they are all part of the one feature. Thanks for the Skype offer. Unfortunately I'm working on something else this weekend, but appreciate the offer all the same. If I can help you with anything in the future (with my limited knowledge of Prestashop), please give me a shout. Thanks again for your time. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 Thanks RCP90. The filtering definitely needs some thought, but you have put me on the right track. I'll have to think about the multiple values for one feature issue, although I may be able to code round this to make it appear that they are all part of the one feature. Thanks for the Skype offer. Unfortunately I'm working on something else this weekend, but appreciate the offer all the same. If I can help you with anything in the future (with my limited knowledge of Prestashop), please give me a shout. Thanks again for your time. Hiya! Did the video help you as well? The layered navigation works quite well if you utilize the features, remember Features are one at a time, but Attributes can be multiple. The Features show on the Layered Navigation, attributes can be selected at the product page. Link to comment Share on other sites More sharing options...
prestatent Posted August 29, 2013 Author Share Posted August 29, 2013 Yes, the help here and the video certain gave me a better understanding. Thanks again Benjamin. I'll also look at some other tuts from Nemo. Cheers Link to comment Share on other sites More sharing options...
beos77 Posted December 9, 2013 Share Posted December 9, 2013 Currently I'm working on a tire webshop, the products (including the features) are imported with the CSV import tool. The import is successful but the result doesn't work properly. (please visit goo.gl/VlFiPP for an example) The features should be combined, but now it doesn't work as it should (see the example). Could someone please help me with this problem? 1 Link to comment Share on other sites More sharing options...
RCP90 Posted December 10, 2013 Share Posted December 10, 2013 (edited) Currently I'm working on a tire webshop, the products (including the features) are imported with the CSV import tool. The import is successful but the result doesn't work properly. (please visit goo.gl/VlFiPP for an example) The features should be combined, but now it doesn't work as it should (see the example). Could someone please help me with this problem? Hello, Could you explain what the issue is please, because by looking at the site I could not see the issue? Which version on PS are you using? EDIT OK I see your features are repeating rather than being assigned to the predefined features resultign in duplication of the same features . This was an issue with 1.5.6.0, and has been fixed in 1.5.6.1. There is a fix for 1.5.6.0 which I will find for you, just need to change some code, but I would recommend updating to 1.5.6.1 because this issue is fixed. Edited December 10, 2013 by RCP90 (see edit history) 1 Link to comment Share on other sites More sharing options...
RCP90 Posted December 10, 2013 Share Posted December 10, 2013 (edited) So this is the fix https://github.com/PrestaShop/PrestaShop/blob/d20aea056331fb484072ad94e2c4f061881aaa88/classes/FeatureValue.php Which I tested at the time, and it worked perfectly. If you decide to use this fix, first back up the original file. I would highly recommend you upgrade to 1,5,6,1 because another issue with 1,5,6,0 is that CSV imports can also clear/delete menus and sub-menus. So the easy solution is to just upgrade to 1.5.6.1 because these bugs are fixed Edited December 10, 2013 by RCP90 (see edit history) 1 Link to comment Share on other sites More sharing options...
beos77 Posted December 10, 2013 Share Posted December 10, 2013 So this is the fix https://github.com/PrestaShop/PrestaShop/blob/d20aea056331fb484072ad94e2c4f061881aaa88/classes/FeatureValue.php Which I tested at the time, and it worked perfectly. If you decide to use this fix, first back up the original file. I would highly recommend you upgrade to 1,5,6,1 because another issue with 1,5,6,0 is that CSV imports can also clear/delete menus and sub-menus. So the easy solution is to just upgrade to 1.5.6.1 Thanks a lot for your help, I just updated to 1.5.6.1 and did a new import. Now the problem is solved.Thanks for the support!! Link to comment Share on other sites More sharing options...
RCP90 Posted December 10, 2013 Share Posted December 10, 2013 Thanks a lot for your help, I just updated to 1.5.6.1 and did a new import. Now the problem is solved.Thanks for the support!! Ah that's great, I had the exact same issues as you, glad its working now, and glad I could help! Link to comment Share on other sites More sharing options...
Alexgaw Posted January 12, 2014 Share Posted January 12, 2014 Hi, how did you solve this? PLease share solution! THanks Link to comment Share on other sites More sharing options...
RCP90 Posted January 14, 2014 Share Posted January 14, 2014 (edited) Hi, how did you solve this? PLease share solution! THanks Upgrade to PS 1.5.6.1., and then update blocklayered to 1.10 Edited January 16, 2014 by RCP90 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts