New Landing How can we help? Themeforest Theme Support Dante Super search oddities

Viewing 15 posts - 1 through 15 (of 22 total)
  • Posted in: Dante
  • #59970
    simonvk
    Member
    Post count: 45

    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.

    pic

    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.

    #60074
    simonvk
    Member
    Post count: 45

    I’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/?queryETCETC

    That 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!

    #60385
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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 Ideas

    #60474
    simonvk
    Member
    Post count: 45

    Hey 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,
    Simon

    #60476
    simonvk
    Member
    Post count: 45
    This reply has been marked as private.
    #60503
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code

    $super_search .= '<a href=&quot;#&quot; class=&quot;super-search-go sf-button accent&quot; data-home_url=&quot;'.get_home_url().'&quot; data-shop_url=&quot;'.$shop_url.'&quot;><span class=&quot;text&quot;>'.$search_btn_text.'</span></a>';
    
    Replace with 
    $super_search .= '<a href=&quot;#&quot; class=&quot;super-search-go sf-button accent&quot; data-home_url=&quot;'.get_home_url().'/winkel/&quot; data-shop_url=&quot;'.$shop_url.'&quot;><span class=&quot;text&quot;>'.$search_btn_text.'</span></a>';

    I have put /winkel/ after get_home_url() .

    Thanks

    #60833
    simonvk
    Member
    Post count: 45
    This reply has been marked as private.
    #60848
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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

    #60969
    simonvk
    Member
    Post count: 45

    Heya, 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 ๐Ÿ™

    #61037
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to change code like

    data-shop_url=”‘.$shop_url.'” to data-shop_url=”‘.$shop_page_url.'” and roll back all previous changes .

    Hope it should work .

    Thanks

    #61043
    simonvk
    Member
    Post count: 45

    Hi 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).

    #61060
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please make test with our demo site http://dante.swiftideas.net/ and let me know your feedback .

    Thanks

    #61106
    simonvk
    Member
    Post count: 45

    Hey 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?

    #61260
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Developer of theme will assist you very soon .
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #61392
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    @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

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register