Forums Forums Search Search Results for 'woocommerce'

Viewing 10 results - 351 through 360 (of 1,497 total)
  • Author
    Search Results
  • #229881

    Anonymous
    Inactive

    Absolutely.

    – The default “Product Categories” WooCommerce field/taxonomy (with the terms “Website ready to work”, “Simple WP Theme”, etc.).
    = Single choice possible in the filter (radio button).

    – The “Site Type” custom field/taxonomy (with the terms “Online store”, “Blog”, “Real Estate”, etc.) created in the “Products > Attributes” tab of the WP admin panel.
    = Multiple choice possible in the filter (checkbox).

    – The “CMS Type” custom field/taxonomy (with the terms “WordPress”, “Drupal”, etc.)

    – …

    For example, I would like to display:
    – “CMS type” only when “Website ready to work” term is selected in “Product Categories”.
    – “Site type” only when “Simple WP Theme” term is selected in “Product Categories”.

    Each term of “Product Categories” would have related child taxonomies. I’m looking to create relationships.

    Thanks a lot & Happy Holidays!

    #229858

    Anonymous
    Inactive

    Hello,

    I’m looking to link custom attributes to a parent category.

    Concretely, my WooCommerce store has a product category “Website ready to work” and I would like to display taxonomies (such as “Site type”, “CMS type”, “Theme type” … which has a checkbox list) linked to this category only when selected (dropdown or radio button).

    How can we get this process?

    Thanks a lot for your help!

    #229705

    Trevor
    Participant

    If that is a random search that should have no results, but it doesn’t filter at all, and yet searches for text that do exist work, I would suspect that the WooCommerce template in use does not have code to handle a no results situation. You can test this by turning Ajax OFF in the form and doing the same thing. The page may well then be blank.


    Anonymous
    Inactive

    hi
    Search results only contain posts not products for woocommerce ?

    #229644

    Trevor
    Participant

    What Display Results Method are you using?

    The WooCommerce method should do as you ask, and the As an Archive you can specify the template. The custom method allows you to direct the results to a specific page, and as long as you have within WordPress or your theme specified that template, all will be good. The custom method also allows you to add to pre_get_posts. See here:

    https://searchandfilter.com/documentation/search-results/custom/#pre_get_posts

    #229642

    Anonymous
    Inactive

    Hi Trevor,

    I tried some things and fiugred out it seems to be easier to not make sure the products are not being displayed om the main shop page. Using the pre_get_posts hook works for me as I am displaying my search results by shortcode and in this case pre_get_posts does not seem to be fired…

    Here is the code I added to my child theme’s functions.php:

    function mk_custom_pre_get_posts_query( $q ) {
    $tax_query = (array) $q->get( ‘tax_query’ );
    $tax_query[] = array(
    ‘taxonomy’ => ‘product_tag’,
    ‘field’ => ‘slug’,
    ‘terms’ => array( ‘christmas-club’ ),
    ‘operator’ => ‘NOT IN’
    );
    $q->set( ‘tax_query’, $tax_query );
    }
    add_action( ‘woocommerce_product_query’, ‘mk_custom_pre_get_posts_query’ );

    ______________________

    I have one more thing you maybe could help me with: Is there an easy way to make sure that the results are displayed as woocoomerce products (same layout as on the main shop-page)?

    Best wishes
    Miriam


    Anonymous
    Inactive

    Hi there.

    I have a quite special use case for which I caould not find a solution even so I am quite sure there must be one. I a planning to have eclusive products which shall only be visible on a special page. So I hide them from my main shop page with visibility = hidden – and I figured out there is a meta value _visibility … but I can not get my search form to display these hidden products with my searchform on the custum site.

    One more info I already found and tested: Using a simple woocommerce shortcode to display the hidden product works: [products limit=”4″ columns=”4″ orderby=”popularity” class=”quick-sale” tag=”christmas-club ” visibility=”hidden” ] – but using the shortcode I have no filtering…

    I hope you can tell me what I need to do to include hidden products in my search and results 🙂

    #229409

    Anonymous
    Inactive

    Is it possible add results for individual vendor pages from Woocommerce Product Vendors?

    These are templates like an author page. For example a link to a vendor page would be http://www.example.com/vendor/vendor-name and this shows some info about the vendor. I can filter by vendors and I do see them listed in the Tags, Cats & Tax section but I cannot get the individual pages to show.

    #229295

    Trevor
    Participant

    That means that for certain products that they would have no values set for some of those range fields?

    If this is so, then there is a problem. It is not possible to have two forms based on WooCommerce Products, or any other single post type).

    The problem with range fields is that, even if you do not select a value, they are added to the search. Any post/product that does not have a value set then becomes excluded.

    The only way to avoid this is to use a different type of Display Results method.


    Trevor
    Participant

    I am not aware of a way to do this. as you have surmised, our plugin, when in WooCommerce mode will default to the Shop page.

    If you have a Reset link/button, rather than using the one build in to the form, you could place a ‘fake’ link/button below the form (to look as if it were in the form) that is a link to that page. That would clear the filters and go to that page.

Viewing 10 results - 351 through 360 (of 1,497 total)