Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Super search oddities
New Landing › How can we help? › Themeforest Theme Support › Dante › Super search oddities
- This topic has 21 replies, 3 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Dante
-
March 23, 2014 at 2:14 pm #59970
Hey there,
There’s a couple of odd things I’m facing when setting up my Super Search. Perhaps you know why this is? Currently building on this site.
hen clicking on the Super Search on the top right corner with the magnifying glass from my home page, Safari (although in Chrome it didn’t work either) is showing as below. Also, I’m not getting any results, it just takes me back to my home page.
Though, when I’m on my main shop page and hit the button, it’s shown fine. Results are fine as well.
I have the Super Search enabled in the top right corner, as well as an element further down on my home page. From my home page, Super Search results appear to be not working, on other pages they do. Thought this would be something with my permalinks, but I couldn’t find anything out of the ordinary about those.
March 23, 2014 at 10:00 pm #60074I’m guessing whatever the Super Search will query for as an output, for instance…
/?filter_merk=165&filter_draagwijze=166&filter_kleur=179&min_price=0&max_price=1400&min_price=0&max_price=136
…is put after the current page’s URL.
If there’s a way to have
/winkel/
included in the query, it will never go wrong for me (tried this). Though this means it will have to query for mydomain.com/winkel/?queryETCETCThat would mean something like this (winkel = my shop page)
/winkel/?filter_merk=165&filter_draagwijze=166&filter_kleur=179&min_price=0&max_price=1400&min_price=0&max_price=136
Not sure how it’s done though 🙂
Thanks in advance!March 24, 2014 at 4:22 pm #60385Hi,
Please open to edit sf-supersearch.php at /dante/swift-framework/
Find this code at line 85
$super_search .= ‘<span class=”text”>’.$search_btn_text.'</span>‘;Replace with
$super_search .= ‘<span class=”text”>’.$search_btn_text.'</span>‘;Hope it should work and let me know your feedback .
Thanks 🙂
With Best Regards
Swift IdeasMarch 24, 2014 at 8:48 pm #60474Hey Mohammed, thanks for your reply. I think you mentioned two of the same lines there (find the code + replace with code = the same).
I couldn’t find this exactly at line 85. I’ve pasted my entire sf-supersearch.php code below in a private reply (don’t want to stack up the whole forum :P), hope that’s alright.
Cheers,
SimonMarch 24, 2014 at 8:49 pm #60476This reply has been marked as private.March 25, 2014 at 2:45 am #60503Hi,
Please find this code$super_search .= '<a href="#" class="super-search-go sf-button accent" data-home_url="'.get_home_url().'" data-shop_url="'.$shop_url.'"><span class="text">'.$search_btn_text.'</span></a>'; Replace with $super_search .= '<a href="#" class="super-search-go sf-button accent" data-home_url="'.get_home_url().'/winkel/" data-shop_url="'.$shop_url.'"><span class="text">'.$search_btn_text.'</span></a>';
I have put /winkel/ after get_home_url() .
Thanks
March 25, 2014 at 3:02 pm #60833This reply has been marked as private.March 25, 2014 at 3:29 pm #60848Hi,
I have updated code at this reply http://support.swiftideas.net/forums/topic/super-search-oddities/#post-60476 so you can take from there .Thanks
March 25, 2014 at 10:31 pm #60969Heya, copied the exact code as edited by you onto the php file. Adding the /winkel/ in there showed no improvements. When on a product page, using the super search leads me back to the exact same page. The get results button from the super search function plants its
?filter_merk=165&filter_draagwijze=166&filter_kleur=164&min_price=0&max_price=1400
still behind the current url.
Is there a way to always put its output behind: http://nieuwekoptelefoons.nl/winkel/
Tried the full url in the php code but that didn’t work out either 🙁March 26, 2014 at 6:07 am #61037Hi,
Please try to change code likedata-shop_url=”‘.$shop_url.'” to data-shop_url=”‘.$shop_page_url.'” and roll back all previous changes .
Hope it should work .
Thanks
March 26, 2014 at 6:57 am #61043Hi Mohammed, thanks for your patience 🙂
We’re one step closer, as the results page now always goes correctly to the shop page, however the functionality of super search doesn’t seem to work 100% if I play with the filters.You can try and test the filter (@ http://www.nieuwekoptelefoons.nl, the super search is located in the right corner at ‘Hulp nodig?’) and you can see that if you filter for beats by dr dre (where it says philips now by default) and leave the other filters on (like on-ear), it still shows philips brand products. It should return a ‘no results’ page as there’s not a product yet that is brand=beats by dr dre and draagwijze=on-ear.
And if you choose ‘elke’ at all the fields (means: any), the results are fine but the results page doesn’t show the left sidebar anymore.
Lastly, when you’re on a search results page (e.g.: http://nieuwekoptelefoons.nl/?page_id=7?filter_merk=165&filter_draagwijze=166&filter_kleur=164&min_price=0&max_price=1400&min_price=0&max_price=1400) and you want to re-use the super search by clicking on the magnifying glass, and make a filtered choice, results are not working either (but I suppose that’s due to the above reasons).
March 26, 2014 at 7:43 am #61060Hi,
Please make test with our demo site http://dante.swiftideas.net/ and let me know your feedback .Thanks
March 26, 2014 at 8:54 am #61106Hey Mohammed,
I’ve looked at the Dante demo again and it seems that the super search there works slightly different in giving its output/query.
When filtering for something on the demo page (the shop version: http://dante.swiftideas.net/home/home-seven-shop/), e.g.:
Filter used: Help me Dante! I’m looking for new ANY in a size ANY that costs between 0 AND 1400 POUNDS. Show me all the BLACK items, from the brand OUR LEGACY.
It takes me to: http://dante.swiftideas.net/home/home-seven-shop/?filter_colour=68&filter_brand=163&min_price=0&max_price=1400&min_price=0&max_price=1400 which is as you can see back to the home-seven-shop homepage instead of a search results page.
However, when I run the default filter settings that are on that page:
Help me Dante! I’m looking for new SHIRTS in a size MEDIUM that costs between 0 AND 1400 POUNDS. Show me all the BLACK items, from the brand OUR LEGACY.
It directs me correctly to a results page: http://dante.swiftideas.net/product-category/shirts/?filter_size=85&filter_colour=68&filter_brand=163&min_price=0&max_price=1400
I think that my 1st entry had no products in the filters and therefore somehow roots me to the same page again, whereas the 2nd results show good results possibly due to products that where found in the applied filter. In the 2nd URL you can see that the URL changes to: /product-category/shirts/?filter_size=85&filter_colour=68&filter_brand=163&min_price=0&max_price=1400
Is this a bug maybe?
March 26, 2014 at 2:48 pm #61260Hi,
Developer of theme will assist you very soon .
Thanks 🙂
With Best Regards
Swift IdeasMarch 26, 2014 at 8:15 pm #61392@simonvk – can you please ensure that you have the Layered Nav Filters and Price Filter widget added to that sidebar? That should sort it.
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.