Great plugin, I use it on my website wich is in progress.
I had custom code in function.php to update the ‘manage stock’ state in database.
I’m talking about this checkbox : https://prnt.sc/20vb243 .
I’m using this line to update state :
update_post_meta($productId, ‘_manage_stock’, ‘yes’);
My custom code is working, data change in database and checkbox is checked on product admin page but the form from shortcode is not displayed.
It displayed only if we uncheck -> save product, check again -> save product.
You can see the form here : https://prnt.sc/20vc97e
I deduce that the form is only displayed if we check manually.
Do you have an idea about how to display form in my case ?
Thank you in advance,
- The topic ‘Change ‘manage stock’ state’ is closed to new replies.