0

I'm using WP User Frontend Pro and WooCommerce on my site. Created custom add product form to my site and it almost works perfectly. All my products should virtual and checked my DB, its meta key name "_virtual" and value should be "yes" enter image description here

So I added a hidden field in my form and its values:

meta key: _virtual

value: yes

enter image description here

When I submit the form, all other fields are updated while this one is not. (E.G. If I write virtual as a meta key, it works but of course Woocommerce does not detect it.) I can't find a clear source about it on the internet either. Does anyone have any ideas on this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.