PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Change display of Category Filter on shop page only

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there!

This is such a good plugin, I'm really pleased I upgraded as it does everything I hoped, so thank you for all your hard work.

Can you please help me work out how to change the filter just for the main shop category? I don't want to display 'Product Categories' in here at all, but still keep the other filters in place.

Or can you only get one type of filter combination and the only other option is to not have any filter at all on the shop? If so, how do you turn it off in that category as there is no page linked to it that I can find?

I hope what I am asking is making sense!

 

Hello

you can try to use  shortcode [woof] - https://products-filter.com/video#beGT6p_look

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/

Watch  this  video  - https://products-filter.com/video#kmrp4dAsrrw

Thank you very much. I hope a shortcode will still work and display properly in the sidebar as currently I use your widget?

But, using this solution just hides and shows some filters so my next question I am stuck now.

I have set up conditions so that Product Sub-Type only shows if you click something in Product Type, because otherwise my shop archives that are more varied would show over 200 lines of filter. In most of the categories there is only one"Filter by Type" (let's say, Confectionery is the Type).

Confectionery is not selected when you enter the page even though it's the only one available in the Filter. I can't find a way to make it selected automatically. So you have to click it which most people won't, to bring up Product SubType (Chocolate, Sweets, Hampers, etc). 80% of the pages are like this but the 200+ filter lines showing on the other 20% means I can't turn the conditions off.

I'd like to be able to have one where SubType shows only when you click Type, which is how it works now. And then I want another where Type is auto-selected if there's only 1 option, or, Type is hidden & SubType is displayed without the condition so you can go straight to Chocolates, Sweets, Hampers, etc.

This is not show/hide, this is like I need two filters right? So is this at all possible or can you have literally one filter only with this plugin?

Hello

Chocolate, Sweets, Hampers, etc - Are these categories? then use the standard archive pages, the plugin will automatically show the filters in the context of the current category

An  example a  category"Man" - https://demo.products-filter.com/product-category/clothing/man/

Hi Pablo!

They're not categories, they are attributes. I have two sets of product attributes:

  1. Filter by Type
  2. Filter by Sub-Type

Categories would not really work as some sub-types are harder to assign to any particular parent category.

However, if what I hope to do is 100% not possible I can reconsider and try to think of a way to make this work by combining categories / attributes and the show/hide possiblity.

Can I ask if you do custom paid work to assist in the setting up of a shortcode (if the above is not possible) as I'm struggling to follow the instructions?

Hi Pablo

I have been trying from 9AM to 1AM to make this work today and I am feeling exhausted and frustrated. As much as I love this plugin on first look, everything that suggests it is flexible for multiple categories has not happened for me so far.

  1. Tried making categories as you suggested, taking hours of time to add sub-categories to each category and put the products in then remove the attributes. Then I found out this suggestion does not actually work as you can't choose to display categories in one sidebar but not the other because taxonomies=product_cat doesn't work and your videos and tutorials do not provide any other solution to display category, so it has to stay default which makes a mess of the first set of categories.
  2. Then I tried things like 'taxonomies=product_cat' but it doesn't work, as I made a new sidebar and expected to be able to use one shortcode with normal selections and one shortcode that displayed category (taxonomies=product_cat) but not attributes. Even tried by selecting a specific category ID (taxonomies=product_cat:210) and still it didn't work, although a specific category overall won't work anyway as I can't make 200 new sidebars.
  3. Deleted all those categories and reverted back to attributes. Tried conditional shortcode on one widget and assigned the sidebar to half the categories where I want it to show with the conditions, then kept original widget on the other half to show everything like normal. The conditions in shortcode do not work and I literally copied it from your written tutorial so that makes no sense... [woof conditionals='pa_filter-product-type>pa_filter-by-subtype'] - it does nothing and both those attribute filters still display long lists. If I use the conditional area in the plugin settings instead, it affects the second sidebar where the condition should not happen.
  4. Used shortcode to add (by_only, tax_only) but then the product tags have disappeared and conditionals still don't work. Using taxonomies=product_tag doesn't do anything to bring it back.

I have lost a very long day of work and I just don't know what else I can try. Can you please correct the error in the shortcode below? I have checked and these are 100% the correct pa_ names. This shortcode is copied from your tutorial page so why would it not work in the second sidebar? https://products-filter.com/extencion/conditionals/

[woof conditionals='pa_filter-product-type>pa_filter-by-subtype']

Hello

What plugin version number are you using?

Can you please correct the error in the shortcode below? - Without additional data I can't see the error, syntactically this is the correct shortcode. Perhaps you expect other functionality from this shortcode.

I will briefly describe what this shortcode should do:  This shortcode will show all filters except - filter-by-subtype. And if you filter by filter-product-type  then, under this condition, filter-by-subtype will appear

describe to me what you want to get on a specific example. Drop me  exact  link to the  page  with  the filter. Take screenshots with the image as you want to see the filter.

 

 

Hi there again

Please see below as much detail as I can think of, but I hoped I had already explained a few times my issue. Please let me know if there are any problems with my explanation:

  1. What plugin version number are you using? Version 2.2.9.2
  2. This shortcode will show all filters except - filter-by-subtype. And if you filter by filter-product-type then, under this condition, filter-by-subtype will appear. Correct, that is what I want to achieve. It works if I use pa_filter-product-type>pa_filter-by-subtype in WOOF Settings > Advanced > Condition. But that makes it work site-wide. Instead I used your shortcode template and put it in the sidebar which has been assigned to certain categories. It does not work it shows ALL filters including sub-type.
  3. describe to me what you want to get on a specific example. Okay I will try again. Please see below exactly what I am attempting:

 

  • Type #1 - example
  • Filters available to choose from = Price, Product Tag, Attribute (Recipient), Attribute (Sub-Type).
  • Filters not available to choose from = Attribute (Type)

 

  • Type #2 - example
  • Filters available to choose from = Price, Product Tag, Attribute (Recipient), Attribute (Type) > Attribute (Sub-Type).
  • Sub-Type is only displayed when Type is selected

 

  • Type #3
  • Filters available to choose from = Price, Product Tag, Product Category, Attribute (Recipient),
  • Category = any child categories of the current category that is showing, NOT a specific numbered category
  • Filters not available to choose from = Attribute (Type) & Attribute (Sub-Type)

 

  • How I tried this
  • WOOF Settings > Select 'price', 'product tag' and the other filters - save settings
  • Wordpress > Appearance > Sidebars > Add New
  • Widgets Page > add details into text widgets using the new sidebars
  • In Products > Category page I select the sidebar I want to display for that product archive page, depending which filter I want it to show.

 

  • Type 1 - in text widget I added [woof taxonomies="product_tag" by_only='by_price' tax_only='pa_filter-recipient,pa_filter-by-subtype']
  • with this solution the product tags are missing from my filter. I see only price, recipient and sub-type filters. But I do require the product tags ("Filter by Features")
  • example: https://www.giftie.co.uk/shop/gifts/confectionery

 

 

  • Type 3 - this one got very confusing for me. I first created sub-categories for each product type (ie. confectionery > chocolate trees, etc)
  • Then I turned on 'product category' in WOOF settings
  • Then I made a shortcode with taxonomies='product_cat' but I don't want to define a specific category ID as this needs to just display the current category children.
  • This activates the categories across the entire website but it shows up also with type and sub-type. So on some pages it's just lists and lists and lists of filters.
  • I used a snippet to call only the child category of the current and the snippet returned the filters but the category issue did not work.
  • I have actually deleted the sidebar, categories and code I made for this now in frustration as I didn't want my website displaying like this for many days while I find an answer from you, but I was working from taxonomies='product_cat'. It doesn't matter if this doesn't work as long as Option 1 & 2 can work.

 

 

It won't let me edit the last post again, so instead here is another solution I just tried and it does not work for the options in Type 1

  • Type 1 - in text widget I added [woof taxonomies="product_tag" by_only='by_price' tax_only='pa_filter-recipient,pa_filter-by-subtype']
  • with this solution the product tags are missing from my filter. I see only price, recipient and sub-type filters. But I do require the product tags ("Filter by Features")
  • example: https://www.giftie.co.uk/shop/gifts/confectionery
  • Update: now I am trying [woof tax_exclude='pa_filter-product-type'] and this is still not working.

Hello

Please drop  me  wp-admin access - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png

Hi there Pablo

I have added the information for you, thank you very much for taking a look it is much appreciated.

To confirm I managed to get Type 1 working and this code did work [woof tax_exclude='pa_filter-product-type'] - this is now used in one sidebar to display for my direct categories.

For the general categories where lots of combined item types are, I still need help to make the conditionals work for Type 2

So, the widget for that one is Wordpress > Appearance > Widgets > 'Category Filter Sidebar'. This is where you will find the code I am trying to make work and I have all fingers crossed you will find where my error is.

Something I did notice as a side note to maybe see if you know why, when I used the exclusion in Type 1, once I select any filter it no longer excludes pa_filter-product-type and you will be able to see it in the list. That only happens whilst there is an active filter on the page. It's is not life or death, but if there's a way to stop that, then it would be great!

Thanks again for your attention.

Hello

I created  a test  page  - https://www.giftie.co.uk/test-woof - everything works perfectly

Unfortunately I can't find the page where you use this widget -  'Category Filter Sidebar'.  I have added this title - https://share.pluginus.net/image/i20220826084526.png - and there is no page with this widget(I didn't find)

https://www.giftie.co.uk/shop/occasions/anniversary-gifts/ has this widget and is working fine :-)

Now I can use your other plugin to bulk edit all the attributes, thanks a lot for this!

Hello

Great!  Welcome;)