Thank you for contacting us and I'd be happy to assist.
In the Blocks editor, you can compare the static value '1' with the "views_woo_in_stock" field, to check if the product is in stock or not.
( example screenshot attached )
I try you condition hidden link in debug field I see - that work right, but not hide my text hidden link
instock debug information
####################
wpv-conditional attributes
####################
Array
(
[if] => NOT ( ( '1, 1, 1, 1' = '0' ) )
[debug] => true
)
####################
Debug information
####################
--------------------
Original expression: NOT ( ( '1, 1, 1, 1' = '0' ) )
--------------------
After replacing 1 general variables and comparing strings: NOT ( ( '1, 1, 1, 1' = 0 ) )
Comparing 1, 1, 1, 1 to 0
out of stock debug information
####################
wpv-conditional attributes
####################
Array
(
[if] => NOT ( ( '0, 0, 0, 0' = '0' ) )
[debug] => true
)
####################
Debug information
####################
--------------------
Original expression: NOT ( ( '0, 0, 0, 0' = '0' ) )
--------------------
After replacing 1 general variables and comparing strings: NOT ( ( '0, 0, 0, 0' = 0 ) )
Comparing 0, 0, 0, 0 to 0
I'm seeing different results on my test website, so to troubleshoot this, I'll need to see exactly how this conditional block is set up on your website.
Can you please share temporary admin login details, along with the link to the page with this conditional block?
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
I apologize for the delay in reply. Your help helped me, it may not work, because the page remained in the cache, after a while everything worked as it should. Thanks for the help.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.