Home › Forums › WoodMart support forum › Filters Form – Stock Status
Filters Form – Stock Status
- This topic has 13 replies, 2 voices, and was last updated 1 year, 11 months ago by Elise Noromit.
-
AuthorPosts
-
April 27, 2020 at 3:08 pm #190328
Jelly ITParticipantI want the user to be able to filter products according to “Stock Status”. Your documentation says I can achieve this by creating a filter which uses attributes: https://xtemos.com/docs/woodmart/faq-guides/create-filters-form/
Since I cannot use the _stock_status Meta Key in my filter. This means that I would need to create a “Stock Status” attribute and set its value on my products.
I created the “Stock Status” attribute and set those attributes on some products. After creating the html block and setting it to my site. It does not show? I can get price filter and all the others to show but not my “Stock Status” attribute filter.
Why is this? Please see screenshots attached which will prove what I have done.
Attachments:
You must be logged in to view attached files.April 27, 2020 at 8:13 pm #190366
Elise NoromitMemberHello,
Please provide the site admin access to the private area I will check the settings of the filter and attribute.
Best Regards
April 28, 2020 at 6:47 am #190450
Jelly ITParticipantNot to worry. I came right. I had set the values before I had created the attributes. One more thing,
How can I set what the default value of a filter should be?
For example: My Stock Status filter should have only “In Stock” value selected as default every time.
April 28, 2020 at 10:04 am #190518
Elise NoromitMemberHello,
There is no option to set the default value of the attribute, unfortunately.
Best Regards
April 28, 2020 at 11:07 am #190537
Jelly ITParticipantThat is a pity. I enabled my filter to use swatch but its still not showing as swatch? Is that because my products are simple products and not variable produts?
I have ticked the option “Enable swatch” on both of the sub terms “In Stock” and “Out of stock”.
I have also gone to theme settings – shop – attribute swatches and I have enabled “Use images from product variations” as well as selected my “stock status” attribute from the drop down entitled “Grid swatch attribute to display”.
Are there any other settings I needed to enable to see swatches instead of drop down?
April 28, 2020 at 2:50 pm #190634
Elise NoromitMemberHello,
Yes, swatches are available for variable products, the attributes should be global. More instructions: https://xtemos.com/docs/woodmart/variable-products-swatches/
Best Regards
May 24, 2022 at 12:09 pm #378346
AlaxoParticipantHello, I also creadet a filter form. We sell shoes and want to give the customer the option to filter by size. When you filter for “43” and “in stock” for example, the result is also shoes that are not availble in 43 or where 43 is not in stock.
https://meandmyclogs.com/shop
What have we set wrong?Thank you!
Regards AlexMay 25, 2022 at 2:15 am #378541
Elise NoromitMemberHello,
Please provide a couple of product URLs to test and see the problem. Please insert the site admin access into the Private content below the message area and confirm the permission for plugin deactivation, switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
May 25, 2022 at 1:24 pm #378694
AlaxoParticipantThank you!
For example
https://meandmyclogs.com/produkt/memyclogs-annika-low-heel-pink-metallic
is only in stock size 35https://meandmyclogs.com/produkt/memyclogs-fint-low-heel-bordo
only in size 38 in stockor see the screenshot all of them are not in stock in size 45 but aa of them are shown when the filter is active:
https://meandmyclogs.com/produkt/ide-holzclogs-sandale-mit-absatz-onyx-schwarz
https://meandmyclogs.com/produkt/liv-holzclogs-mit-absatz-champagner
https://meandmyclogs.com/produkt/liv-holzclogs-mit-absatz-weiss-mit-lochmuster
https://meandmyclogs.com/produkt/memyclogs-snoe-low-heel-cognacAttachments:
You must be logged in to view attached files.May 26, 2022 at 3:04 am #378880
Elise NoromitMemberHello,
When you filter size only, the result would show all the product that has this size. When you filter by “in stock” and “size 43”, the results would show both: all in stock and with size 43.
This is the way how it works.
Best Regards
May 26, 2022 at 9:14 am #378912
AlaxoParticipantBut it doesn’t. That why I’m writing you for help.
when I for example filter for „in stock“ and „43“ the first shoe has the size 43 not in stock but why is it in the list then? That is the problem the filter just showed all shoes not just the ones where the size and stock status is as filtered… can you help? Thank you!May 27, 2022 at 12:10 pm #379308
Elise NoromitMemberHello,
Unfortunately, the stock widget cannot sort out the variations.
In order to hide our stock products, you can enable the option in the Woocommerce settings: https://prnt.sc/zJ1x8g8GRhm6
If you have any questions please feel free to contact us.
Best Regards
May 30, 2022 at 11:25 am #379838
AlaxoParticipantThank you ! That worked!
May 31, 2022 at 2:31 am #380051
Elise NoromitMemberYou are welcome! We are here to help.
Wish you a wonderful day!
-
AuthorPosts
The topic ‘Filters Form – Stock Status’ is closed to new replies.
- You must be logged in to create new topics. Login / Register