
Mistercasas(@mistercasas)
46 Posts
Customers
Quote from Mistercasas on April 17, 2020, 12:54
How can I make it so that in this url: http://vendedorweb.com/test-woof, only certain product categories or certain attributes or labels appear.
Is there a short code?
How can I make it so that in this url: http://vendedorweb.com/test-woof, only certain product categories or certain attributes or labels appear.
Is there a short code?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 17, 2020, 14:04
Hello
1) In category pages use shortcode - [woof_products] with attribute : taxonomies=product_cat:X Where X id your product category. ( if you use custom page )
2) In widgets use shortcode [woof] with attribute : * taxonomies=product_cat:X
+
tax_only - write taxonomies or products slug using comma
+
by_only - write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements
*- Do not forget set the same condition in [woof_products]
3) For show or hide widgets on different pages - http://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/
You can read more about shortcodes - http://www.woocommerce-filter.com/documentation/#!/section_3_1
Hello
1) In category pages use shortcode - [woof_products] with attribute : taxonomies=product_cat:X Where X id your product category. ( if you use custom page )
2) In widgets use shortcode [woof] with attribute : * taxonomies=product_cat:X
+
tax_only - write taxonomies or products slug using comma
+
by_only - write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements
*- Do not forget set the same condition in [woof_products]
3) For show or hide widgets on different pages - http://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/
You can read more about shortcodes - http://www.woocommerce-filter.com/documentation/#!/section_3_1

Mistercasas(@mistercasas)
46 PostsTopic Author
Customers
Quote from Mistercasas on April 20, 2020, 10:51
I can't get it to work. Can you give me an example or make me an example on a page on my site?
I do not understand what I have to add in the short code.
I don't know how to build it well
I can't get it to work. Can you give me an example or make me an example on a page on my site?
I do not understand what I have to add in the short code.
I don't know how to build it well

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 20, 2020, 11:19
Hello
Examples here - http://www.woocommerce-filter.com/documentation/#!/section_3_1
so that the filter shows only the attribute size and color : [woof tax_only="pa_size,pa_color" by_only="none"]
so that the filter and products display a specific category:
[woof tax_only="pa_size,pa_color" by_only="none" taxonomies=product_cat:X ]
[woof_products taxonomies=product_cat:X ]
Hello
Examples here - http://www.woocommerce-filter.com/documentation/#!/section_3_1
so that the filter shows only the attribute size and color : [woof tax_only="pa_size,pa_color" by_only="none"]
so that the filter and products display a specific category:
[woof tax_only="pa_size,pa_color" by_only="none" taxonomies=product_cat:X ]
[woof_products taxonomies=product_cat:X ]