mackna Posted February 22, 2013 Share Posted February 22, 2013 Hello. I have a problem with layered navigation i think, if i choice some features i regenerates a url link. But when i copy/past the same link i disappears. Example. http://www.skinlife.se/3-ansiktsvard#/kon-man/produkt-ansiktsvatten redirects to ---> http://www.skinlife.se/3-ansiktsvard#/ Is this a common problem our do i have bad settings? -- Marcus Horne www.skinlife.se Link to comment Share on other sites More sharing options...
doubleD Posted February 22, 2013 Share Posted February 22, 2013 Hello. I have a problem with layered navigation i think, if i choice some features i regenerates a url link. But when i copy/past the same link i disappears. Example. http://www.skinlife....t-ansiktsvatten redirects to ---> http://www.skinlife.se/3-ansiktsvard#/ Is this a common problem our do i have bad settings? -- Marcus Horne www.skinlife.se I think it's a common problem... At least, for me too... 1 Link to comment Share on other sites More sharing options...
mackna Posted February 22, 2013 Author Share Posted February 22, 2013 Its really annoying... There must be a fix for this issue, it would be a really good feature to embed for prestashop otherwise. 2 Link to comment Share on other sites More sharing options...
doubleD Posted February 22, 2013 Share Posted February 22, 2013 Its really annoying... There must be a fix for this issue, it would be a really good feature to embed for prestashop otherwise. I agree. Actually it works sometimes on some links... but i can't figure out a pattern ) 2 Link to comment Share on other sites More sharing options...
mackna Posted February 22, 2013 Author Share Posted February 22, 2013 Really, can u give me an example? Maybe we can figure this out together Link to comment Share on other sites More sharing options...
doubleD Posted February 22, 2013 Share Posted February 22, 2013 Really, can u give me an example? Maybe we can figure this out together I can't find any now ... At least the page links work ) #/page-3 Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted March 16, 2013 Share Posted March 16, 2013 Same problem. Is there any solution? Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted March 16, 2013 Share Posted March 16, 2013 (edited) Solution here: https://github.com/p...6a0d70ae0231ef1 But I couldn't understand when param_product_url is get a value different from hash? Can someone show me that? Edited March 16, 2013 by tebdilikiyafet (see edit history) Link to comment Share on other sites More sharing options...
threeopus3 Posted May 18, 2013 Share Posted May 18, 2013 Solution here: https://github.com/p...6a0d70ae0231ef1 But I couldn't understand when param_product_url is get a value different from hash? Can someone show me that? This github code didn't seem to solve anything. mackna or doubleD, did either of you have any luck squashing this bug? Link to comment Share on other sites More sharing options...
threeopus3 Posted May 18, 2013 Share Posted May 18, 2013 (edited) Hi Everyone, Thanks for any insight into this problem, as I'm just trying to scope it out in order to understand if it is even something that can be fixed. When I am in my shop, I can filter by categories and features. It works like a beauty. If I filter by a category, the URL that is produced looks like this: localhost:8888/50-shop#/categories-category_name I can copy this link, paste it into a new browser window, and the page loads with the selected filters enabled and products filtered appropriately. The issue I have is when I filter by features. If I filter by a feature, the URL that is produced looks like this: localhost:8888/50-shop#/feature_name-feature_value If I copy and paste this link into a new browser window, the url redirects to: localhost:8888/50-shop#/ The selected filters are removed, or rather, never appear. I have been searching high and low for a solution to this. I think that a lot of people are having the same issue, but I'm not sure, because I don't always understand the problem that people are describing. In any case, does anyone know if there is a solution to this? Is this a bug, or is the functionality that I'm expecting just not something that is built into Prestashop? Does anyone have any leads on how this problem can be solved? Thanks for any thoughts. I will try to pay them forward. Kent Edited May 18, 2013 by threeopus3 (see edit history) 1 Link to comment Share on other sites More sharing options...
threeopus3 Posted May 20, 2013 Share Posted May 20, 2013 Just wanted to give some feedback on this in case anyone else has the same problems that I was having. See the problem, as described above - when I had features in my layered nav links/urls, they would disappear if I copy and pasted the links. I searched everywhere for a solution to this, finally hired someone to customize the layered nav module for me, only to find out that the default 1.5.4 module works fine as it is. You just need to make sure that in your module settings, you reindex all products after adding new features. If you do that, everything works like a charm. 1 1 Link to comment Share on other sites More sharing options...
adamuss Posted July 22, 2013 Share Posted July 22, 2013 (edited) Same problem but I think I have more details, maybe it will help to find solution. It's important that my shop is non-english (polish): sklepdlaciebie.pl, layered navigation works but links are not working and, in my opinion, problem is with "translations". Few examples filter: price (http://sklepdlaciebie.pl/104-noze-kuchenne.html#/price-65-157) - filter name in url (price) is not translated and link to page with results works filter: categories (http://sklepdlaciebie.pl/93-porcelana.html#/kategorie-serwisy_obiadowe) - filter name is translated (kategorie = categories) but link to page with result is not working - redirects to category page http://sklepdlaciebi...orcelana.html#/ if I manually change filter name to non-translated: http://sklepdlaciebie.pl/93-porcelana.html#/categories-serwisy_obiadowe it almost works! filtered category is applied and selected but after page loads url is changed to translated version filter: manufacturer (http://sklepdlaciebie.pl/92-sztucce.html#/producent-gerlach) - translated not working, if I change producent to manufacturer http://sklepdlaciebie.pl/92-sztucce.html#/manufacturer-gerlach it works but after page loads it's translated again So, where translation is applied to filters? I'd like to disable it and check, but can't find. Edited July 22, 2013 by adamuss (see edit history) 2 Link to comment Share on other sites More sharing options...
FredCD Posted July 29, 2013 Share Posted July 29, 2013 adamuss > i didn't know there were super-hero in Poland so far... and then i read your post and it made my day I 've been searching for a solution to "keep" manufacturer filter in url for hours. Thanks to you i now know that you need to keep "manufacturer" instead of "fabricant" (french word for "manufacturer") thanks a million man Link to comment Share on other sites More sharing options...
Firestarter Posted September 21, 2013 Share Posted September 21, 2013 I've solved the problem thanks to threeopus3. The configuration of the module Layered Navigation allows to reindex the urls. And it worked for me. Maybe, we could put the topic as resolved, no ? 2 Link to comment Share on other sites More sharing options...
FredCD Posted September 23, 2013 Share Posted September 23, 2013 Before we close this topic, let's be sure reindixing is the key solution. Does it work with very kind of attributes and values (colors, custom attributes...) ? Does it work on a "non-english" shop ? 2 Link to comment Share on other sites More sharing options...
Firestarter Posted September 24, 2013 Share Posted September 24, 2013 It worked for me for Characteristics, on a french shop. Link to comment Share on other sites More sharing options...
infinityl Posted October 10, 2013 Share Posted October 10, 2013 Dont work for me. Spanish Shop. 1.5.4.1 Filters put # in url and dont work If I manually remove the # from url it works and send me to another url (for example: http://www.myshop.com/8-camisetas/talla-2xl (talla-2xl filter) send me to: http://www.myshop.com/8-camisetas?selected_filters=talla-2xl And sometimes i clic the filters but it dont update url or anything... Link to comment Share on other sites More sharing options...
Radi Posted January 10, 2014 Share Posted January 10, 2014 Same hash (#) problems in category name with polish language. Rebuilding attribute and URL in blockalyerd module not help Link to comment Share on other sites More sharing options...
samuelprabhu Posted June 13, 2014 Share Posted June 13, 2014 Just wanted to give some feedback on this in case anyone else has the same problems that I was having. See the problem, as described above - when I had features in my layered nav links/urls, they would disappear if I copy and pasted the links. I searched everywhere for a solution to this, finally hired someone to customize the layered nav module for me, only to find out that the default 1.5.4 module works fine as it is. You just need to make sure that in your module settings, you reindex all products after adding new features. If you do that, everything works like a charm. Thanks Threeopus3, Re-indexing done the trick.... Link to comment Share on other sites More sharing options...
HaCos Posted August 29, 2014 Share Posted August 29, 2014 Same hash (#) problems in category name with polish language. Rebuilding attribute and URL in blockalyerd module not help Same here... Thanks Threeopus3, Re-indexing done the trick.... How does it work ? Even on the demo PS site: http://fo.demo.prestashop.com/en/3-women , when you select any option from the layered nav on the left, you get a url with a # 1 Link to comment Share on other sites More sharing options...
fransjaeger Posted October 18, 2014 Share Posted October 18, 2014 Hi, Im looking for this too. Been trying everything, but nothing have worked so far Link to comment Share on other sites More sharing options...
Kaffeemogul Posted January 2, 2015 Share Posted January 2, 2015 Worked in a german shop with reindicating the URL-Index!!! www.kaffeemogul.de Link to comment Share on other sites More sharing options...
markof Posted October 20, 2015 Share Posted October 20, 2015 Go to config module Layered navigation block reindex URL Indexes. Link to comment Share on other sites More sharing options...
aleksey_bober Posted August 1, 2016 Share Posted August 1, 2016 The same issue I had with russian localization. There I had parameters kategorii and brend instead of categories and manufacturer in the URL. So preseletion also didn't work for me. That's because blocklayered-ajax.php expect categories and manufacturer parameters. I didn't find where it could be changed. If anybody knows, please tell. I created a little hack. I replace parameters in javascript code each time before module performs request to the server. In /your-theme/js/modules/blocklayered/blocklayered.js find following code: var params = window.location.href.split('#')[1]; reloadContent('&selected_filters='+params); and update to: var params = window.location.href.split('#')[1]; if (params) { params = params .replace(/kategorii/i, 'categories') .replace(/brend/i, 'manufacturer'); } reloadContent('&selected_filters='+params); IMPORTANT: instead of kategorii and brend you need to put parameters used in your locale. 1 Link to comment Share on other sites More sharing options...
zenerry Posted August 12, 2016 Share Posted August 12, 2016 Reindexing by the layered navigation module worked pretty fine for me. Thanks a lot. It's been thouhg untill I've decided to search in this forum. Link to comment Share on other sites More sharing options...
oliiix Posted August 29, 2016 Share Posted August 29, 2016 The hash (#) thing is normal and shouldn't be the problem. It was working for me (english) but the hash-sign was still in the url, so that shouldn't be the problem Link to comment Share on other sites More sharing options...
Tomasci Posted October 16, 2016 Share Posted October 16, 2016 This problem is still there in PrestaShop 1.6.7. Re-indexing URL's does not help. The shop is in Dutch language, and will also be in French language soon. How to get this to work with translated strings? Anyone got this to work in PrestaShop without having English or French language installed? Link to comment Share on other sites More sharing options...
sottolinea Posted January 11, 2017 Share Posted January 11, 2017 Same problem here with an italian shop with 1.6.9 Solved with aleksey_bober solution. Had to put the code in two different place in the same js, in functions getUrlParams and initLayered but now it works. Not a good thing, hope in ps1.7 it will work! Link to comment Share on other sites More sharing options...
rfourt Posted February 10, 2017 Share Posted February 10, 2017 (edited) Ok.I have some tips for some people not getting this to work.Step 1.Go into your attributes and see that the attribute value have the same URL in each language you are using. Pref. English.IMPORTANT PS: Make sure none of the URLs have spaces or dashes in them. For example dont make the url look like this:URL ex: "large XL"Instead make them look like this:largexlThis is only needed if you want to filter the values and perhaps make a own link to the values. for example: http://yourdomain//t-shirt#/size-smalm-largel-largexl If you add a space or a dash it will look like this "/size-smal-l-large-l-large-xl" and, well you can see the problem. I have tested this out and sometimes presta will add a underscore instead but it dosnt work with more than one language in your shop.Step 2.Go into Blocklayered Navigation (filter) module and Press the "indexing" buttons at the top. Step3.Ad the CRON JOBs in your cpanel/hosting. Edited February 10, 2017 by rfourt (see edit history) 2 Link to comment Share on other sites More sharing options...
JustineS Posted February 21, 2017 Share Posted February 21, 2017 Tout simplement ! Merci rfourt Link to comment Share on other sites More sharing options...
Saraaa Posted January 3, 2019 Share Posted January 3, 2019 Hello, I have the same problème my shop was in frensh and block layered is working but when i do use the filters and change the language, the language is changed but it goes back to the caategory page without any filters in the URLs please help! Link to comment Share on other sites More sharing options...
inkout Posted March 15, 2021 Share Posted March 15, 2021 Good morning, i have the same problem: With filter with chars " / or - " i lost the filter when i copied in new tab. Version 1.6.1.4 Can you help me? Thx Link to comment Share on other sites More sharing options...
HiCharly Posted July 9 Share Posted July 9 Hello I had the same problem with the manufacturer filter and a French shop. It was a translation issue. The indexer use $this->translateWord('Manufacturer') to build the ps_layered_friendly_url cache , while the renderer use $this->l('Manufacturer'). Both results are not the same : Fabricant / Marque To solve : find the blocklayered.php getFilterBlock function and replace $this->l('Manufacturer') by $this->translateWord('Manufacturer', $id_lang) I hope this helps someone who is still using this old version of the module. 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