Dokan add Out of Stock in a product of the gallery
-
I have the follow code linked to the action dokan_new_product_added
add_action( 'dokan_new_product_added','save_product_meta', 8, 2 ); function save_product_meta($product_id, $postdata) { /*$product = wc_get_product( $product_id ); $product->set_manage_stock(true);*/ update_post_meta( $product_id, '_manage_stock', "yes" ); update_post_meta( $product_id, '_stock', 1); }
When the user follow the JavaScript flow to add a Product (tmpl-add-product-popup.php), the bug does not occur. But when the user follow the PHP flow to create a Product (new-product.php) this error happens.
ERROR: It is showing a Out of Stock overlay over the image of the product, even the product having stock as shown in the image.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dokan add Out of Stock in a product of the gallery’ is closed to new replies.