Search Results for 'archive-product'

Forums › Forums › Search › Search Results for 'archive-product'

Viewing 10 results – 31 through 40 (of 68 total)
  • Author
    Search Results
  • #44692

    Anonymous
    Inactive

    Hm no, that page is the search page only, with the shortcode.
    The result page is using archive-product.php with our modifications.

    Is that helpful? 🙂

    #41746

    In reply to: Compare page


    Ross
    Keymaster

    Hi Daniel

    I took a look and S&F seems to be working ok – I placed the form on another page:

    http://zdolnelapy.pl/projekty/katalog/shop-form-test/ – and as you can see, when you use it, it takes you to the shop with the correct search results.

    Now the question is, how can you add the search form to your shop page? I cannot see any sidebar / widget area to add this – so this really is a theme restriction – not allowing things to be added to the shop page.

    In this case, you must edit the template file for displaying the shop – and add the shortcode in there.

    The shop is usually displayed using the template file woocommerce/archive-product.php so you must edit this file (in your theme) and add the S&F form to that page – something like:

    <?php echo do_shortcode("[searchandfilter id='2800']"); ?>

    I hope that makes sense.

    Thanks

    #37905

    Ross
    Keymaster

    You results container is set to #main (in the display results tab)

    The results container shoudl only contain your results, but yours, also contains the search form itself.

    This means, when there is an ajax request, the search form is replaced, an no longer works correctly.

    What you probably need to set this to is .archive-products

    Check the docs on the correct way to setup ajax:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/#Setting_Up_Ajax

    Thanks

    #29580

    Ross
    Keymaster

    Hey Mark

    You can creat a completely seperate page for your search results – but it won’t pick up the woocommerce layouts automatically – you’ll likely have to do some tinkering with the templates – but they are completely customisable if you know what you’re doing.

    So instead, simply follow the steps here for displaying results with a shortcode:

    http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/

    Make sure to follow the part about customising the template, because this is where all your layout/loop code will go.

    There is another option yet, to use the archive method, and use the WooCommerce archive-product.php but then will likely still need some tweaking – http://www.designsandcode.com/documentation/search-filter-pro/search-results/as-an-archive/

    Thanks

    #21308

    Ross
    Keymaster

    Hi there

    To answer your questions:

    1) The count numbers are not dynamic and do not reflect the real live values based on the current search – they are based on WP internal count of these taxonomies – the next version of S&F will change this and they will be dynamic.

    2) S&F works with WooCommerce, in that you can search WooCommerce Products, and search attributes and custom fields – but it is not a filter to be used with the Shop page directly (I will add this at some stage).

    You need to think of this a little different, so on your shop page you can add the S&F form, but realise, once a user searches – they will be taken “away” to a search result page.

    Now what you must do is recreate the format of the shop page if that is what you wish.

    If you are using Display using shortcode, then you should just paste the shortcode in to an empty page – and have the Results URL point to this new page. You will then have to customise the html/css to emulate the look of your shop page.

    Alternatively, you could try using the As Archive method – the WooCommerce product archive is usually calls the WooCommerce template archive-product.php and you could try modifying using this with some modification for your S&F results.

    Some other users have across this see here – https://support.searchandfilter.com/forums/search/archive-product/

    Thanks

    #21260

    Anonymous
    Inactive

    Hello I’m running a woocommerce website, there is a number of problems atm:

    1.- Showing blog posts along with products. I need to only display products using that tags.

    Setting of Search Form:
    Search in the following post types: Only checked Products checkbox.

    When clicking a tag
    Im getting this url:http://arentalocal.mx:8080/result/?_sft_post_tag=dress
    I think this should be the url: http://arentalocal.mx:8080/product-tag/fashion/

    2.- Incorrecto result page

    Where should I add the results shortcode?
    In archive-product.php?

    #21027

    In reply to: Search results


    Ross
    Keymaster

    Hi Julian

    To get S&F results to look like woocommerce results we must use some of the templates from woocommerce – mainly the “archive-product.php” template, as well as manually adding the woocommerce classes to the body tag – check some similar topics with this info: https://support.searchandfilter.com/forums/search/archive-product/

    I am planning a release where S&F will work directly on the products page 😉

    Thanks

    #21023

    Ross
    Keymaster

    Hi Alberto

    To answer your questions:

    1) Modifying the look of S&F should be just the same as with anything using CSS – although, you must be aware the order the CSS is loaded in, if CSS from your theme is loaded after CSS from Search & Filter then its really easy, if it is the other way round then you might need to add !important to your CSS rules.

    Info on horizontal can be found here: https://support.searchandfilter.com/forums/topic/horizontal-layout/

    2) To get S&F results to look like woocommerce results we must use some of the templates from woocommerce – mainly the “archive-product.php” template, as well as manually adding the woocommerce classes to the body tag – check some similar topics with this info: https://support.searchandfilter.com/forums/search/archive-product/

    I am planning a release where S&F will work directly on the products page 😉

    Thanks


    Anonymous
    Inactive

    Thanks so much for your help. The new woocommerce functionality sounds great.

    I attempted to figure out the different page templates being called, but found all pages seem to use the same class post-type-archive-product.

    However I did find this solution and attempted to follow it (I’m using Avada):
    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-template

    I couldn’t find the code snippet mentioned in search.php, so I assume Avada has updated that code.

    Any chance you happen to know how to fix this issue in Avada? I seem to have 3 states for my shop page
    1) Landing page, without filters selected (small icons)
    2) select filters, results are formatted using archive.php, (medium sized icons)
    3) unchecking filters brings up a third display which is not good

    In the end, I just want all 3 states to display as LIST before and after filters are selected (once I figure out how to do that). Any help is greatly appreciated!
    Thanks!
    Michelle

    #18063

    Ross
    Keymaster

    Hey Stefania

    If you wish to use a regular page template for displaying results (like archive-product.php you mention above) then use must use the archive method.

    If you are using the shortcode method, and know some html/css, then you can copy the html structure and use it in results.php…

    For woocommerce styling, and the correct CSS to be applied, please view the source of the page when on product archives and you will notice woocommerce is adding some classes to the <body> tags for layout purposes – you need to copy the same classes over using the method described here:

    https://support.searchandfilter.com/forums/topic/wp-4-2-1-update-affecting-plugin/page/2/#post-17059

    Thanks

Viewing 10 results – 31 through 40 (of 68 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.