Hi Greenshift Support,
I’m trying to use WooCommerce sale date meta fields in Greenshift Dynamic Visibility, but the condition does not seem to work as expected.
What I tested
I created a visibility condition using:
_sale_price_dates_from_sale_price_dates_to
To test field detection, I set the rule to:
- If
_sale_price_dates_fromexists, show the heading
However, the heading is still hidden even on products where _sale_price_dates_from should be present.
Expected behavior
If _sale_price_dates_from exists, the element should be visible.
Actual behavior
The element remains hidden, which suggests Greenshift is not detecting the meta field correctly or the field type is not being handled properly.
Notes
- These are WooCommerce sale date meta fields.
- I understand these values are stored as Unix timestamps.
- I also tested
{TIMESTRING:now}, but comparisons with these fields did not work.
Could you please confirm:
- Whether
_sale_price_dates_fromand_sale_price_dates_toare supported in Dynamic Visibility / Custom Field Query? - Whether these fields need a specific format or path?
- Whether there is a recommended way to compare WooCommerce sale date meta values?
Thank you.
Post a Reply
You must be logged in to post a comment.