Tell us what you are trying to do?
I have created some custom fields for my woocommerce products. I want to display one of them on my single product template only when it contains certain values. The screenshot show the field options. I want to display the field only it it is not equal to "sold" or "available."
Is there any documentation that you are following?
tried the support forum but couldn't find this particular scenario
Is there a similar example that we can see?
What is the link to your site?
hidden link
this is the code I'm using (that isn't working):
[wpv-conditional if="( $(wpcf-work-status) ne 'sold' ) AND ( $(wpcf-work-status) ne 'available' )"][types field='work-status'][/types][/wpv-conditional]
The conditional seems to work...the field appears on the correct products. But it displays
[types field='work-status'][/types]
rather than the contents of the field.
Hello,
The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again
3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URLs, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
I was building my template with the Divi theme builder. I switched to a Toolset template and was able to implement the conditionals.