Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 451 through 460 (of 1,497 total)
  • Author
    Search Results
  • #216108

    Anonymous
    Inactive

    Hi Trevor,

    I do not see any errors on my server logs.

    Hi Trevor, i’m not sure I’ll be able to send you a local copy of the site. Since it’s a WooCommerce site with sensible data.

    We do not have any variable products.

    #215861

    Anonymous
    Inactive

    I get the array on the result page using this code:
    <?php
    //Get the search term
    //replace 1526 with the ID of your search form
    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(154)->current_query();
    echo $sf_current_query->get_fields_html(
    array(“_sft_manufacturer”, “_sft_year”,”_sft_engine_type”,”_sft_engine_model”)
    );
    ?>
    it shows:
    manufacturers: crusader
    years: All years
    engine type: inboard
    Engine Model: All Engine Model

    So how to let it show on woocommerce new order email ?

    Thanks.

    #215838

    Anonymous
    Inactive

    .results is not a class in my (or the Woocommerce) template so now the category filter or the pagination isn’t working anymore.

    #215834

    Trevor
    Participant

    In the form, on the Display Results settings tab, make sure that the Ajax Container is set to .results and the Pagination set to .woocommerce-pagination a


    Anonymous
    Inactive

    Hi,

    I have setup a filter for product categories but when I use the pagination it looks like every link is redirecting me back to the shop page. I cannot go to page 2,3, etc.

    I see more topics about this in the forum but there are many ‘private’ replies. Hopefully there is a solution to fix this.

    The Ajax Container and the pagination selector is set correctly….. I think.

    Best regards.


    Trevor
    Participant

    Please note that in my reply below, what WordPress names as Category is actually a (Custom) Taxonomy of (a Custom Post Type called) Posts.

    WooCommerce does something similar, creating a Custom Taxonomy that it names Product Category (slug name is product_cat) of a Custom Post Type called Products.

    I think you need to create two new Custom Taxonomies; Publications and Themes and attach them to whatever Post Type that they relate to. Then you need only the child terms in those new taxonomies. A plugin called Custom post Type UI can be used to do this.

    If you have many posts with those terms already attached as Category terms, a plugin called Taxonomy Switcher will allow you to switch them.

    #215738

    Anonymous
    Inactive

    Ok, but I can sort attributes in a numerical way in WooCommerce, so I would guess that this would also work in a filter of S&F.

    Anyway, I fixed it now with the filter you suggested, so the problem is solved now. Thanks!

    #215599

    Trevor
    Participant

    It is because Product Attributes in WooCommerce are stored as Taxonomies in WordPress, and Taxonmies are textual data, and thus only sorted alphabetically, not numerically. If they were stored as Custom Fields (for example with the ACF plugin), they could be stored as numbers, and then sorted numercially.

    Given that your products are in place, the only way to resolve this is for you to custom code the form to sort them numerically, using this filter:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    #215559

    Trevor
    Participant

    It may be that the Ajax Container setting is still set to #main, like this:

    https://www.screencast.com/t/hSXhhOljPlUy

    If this is so, try changing that to .results as that is what most WooCommerce templates tend to use.

    If that does not work, are you able to send me a live link/URL to your search page so I can take a look?

    #215435

    Anonymous
    Inactive

    Hi,

    We have a WooCommerce site with a lot of products and custom taxonomies.

    Everytime we had new product to new custom taxonomies, we need to rebuild the cache.

    Can we make a cron job to rebuild the cache ? So the cache can be rebuild during night ?

    Another question, why when we rebuild the cache, it’s not possible to see product on th efront end of the site ? Could it be possible that when it rebuilts the cache, it builds another array and when finish just replace the old cache by the new array cache. Seems to me we wouldn’t get this effect of not seeing the products on the frontend. Specially when it takes 45 minutes to rebuild the cache.

    Thanks,

Viewing 10 results - 451 through 460 (of 1,497 total)