Hi, I need help with the condition logic of a custom field. I created a checkbox field to check if the product has a discount. I used [wpv-conditional if="( NOT(empty($(wpcf-checar-si-el-producto-esta-en-promocion))) )"] [/wpv-conditional] to cover the div and not to display the products with the checkbox field unchecked and it was working. And now, it does not seem to work, and I did not find more information about it.
Hello. Thank you for contacting the Toolset support.
Let me review the current settings and check whats going wrong with your setup.
Can you please share admin access details and tell me where exactly you added the conditional statement. Maybe few screenshots will be helpful.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The issue was you were checking for not empty value but when there is no promotion set for the product the value saved was 0 with the field "checar-si-el-producto-esta-en-promocion". As there is 0 available the not empty condition becomes true and that is why it was not working.