Skip Navigation

[Resolved] WooCommerce Views filter fields are empty

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1163891

I am trying to sort products by price, display products that are on sale, and hide out of stock products.

I am using a plugin to bulk import products ( BrandSync), and I have a cronjob set up that updates only the stock quantity after a period of time.

However, I cannot do any of those because WooCommerce Views filter fields
WooCommerce Product Price
Product On Sale Status
Product In Stock Status
are empty.

If i go to edit a singular product and just update it, without making any changes, to some products it does fill these fields, but on some it doesn't.

I want to let the user sort products by price(ascending/descending), to hide the out of stock products, and in a separate view to display only the products that are on sale.

What could be done in order to make any of these work?

#1164114

Hi, if you go to Toolset > WooCommerce Views you will find some settings that control how these fields are updated. We have some documentation about the different options here: https://toolset.com/documentation/user-guides/woocommerce-views-calculated-fields-and-batch-update/

Let me know if you have additional concerns about that.

#1168621

I've used both the Manually, and WordPress cron options. There are products which have 0 stock in all variations, but still show appear in stock. e.g. : hidden link
I've left a debugging note after the product's description which shows if a product is in stock or not, and it shows that the product is in stock, even if the product has 0 stock.

#1168964

Let me get the most accurate information about this. Our documentation doesn't describe in detail how variable products in-stock status is calculated, if at all. I'll let you know what I find out.
https://toolset.com/documentation/user-guides/woocommerce-views-calculated-fields-and-batch-update/#wcv-use-calculated-filters

#1170609

Based on the information I have received, the calculated Product In Stock status should be 0 if none of the variations are in stock. I can see it's not behaving this way on your site. If you approve, I can make a clone of the site using the Duplicator plugin and run some additional tests on my local environment. We can try to determine if there is a bug or a conflict with another system.