Skip Navigation

[Closed] WooCommerce postmeta _height in a filter can't display value 0 (zero)

This support ticket is created 3 years, 9 months 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)

Author
Posts
#1996405
Bildschirmfoto 2021-03-22 um 17.15.38.png

Tell us what you are trying to do?
Have a filter for _height.

I have a parametric search with some dropdowns: length, width, height.
For products with _height = 0 (zero) another (random) value is displayed in the select (46).
It's displayed correctly when I set the value to 0.00.

Why is that and how can value 0 be displayed in the filter?
Thank you!

Thomas

#1996805

Hi, that is unusual. I just ran a quick test and did not have the same problem, so I suspect something else is going on. Can we try some basic troubleshooting steps?
- Activate a Maintenance Mode plugin if you'd like to temporarily block access to the site during testing
- Temporarily activate a default theme like Twenty Twenty One
- Temporarily deactivate all plugins except WooCommerce, Types, Blocks (or Views), and Toolset WooCommerce Blocks
- Temporarily deactivate all custom code snippets in Toolset > Settings > Custom Code tab
- If this View or any Content Template involved has custom JavaScript, temporarily comment out that code during testing
- Test again
- If the problem is resolved, reactivate your theme, other plugins, and custom code, one by one, testing each time until the problem returns. See if you can isolate one component responsible for the conflict.
- If the problem is not resolved, I'll need to take a closer look

Please let me know what you find out during this test and we can go from there.

The topic ‘[Closed] WooCommerce postmeta _height in a filter can't display value 0 (zero)’ is closed to new replies.