Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › Product Vendors › Email is not send to vendors if one has a product not is stock with orders ON
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by hugo.lopes.
- AuthorPosts
- April 4, 2020 at 3:26 pm #115315hugo.lopesParticipant
Dear team,
I have a problem with the stocks and mails:
if a vendor has a allow the back orders without stock (notification on for the buyer) then no one receives the confirmation email and the systems looks blocked.
I can’t resend the order email to all the vendors. One order a multiple vendors.I see one solution : block “allow backorders?” to “no not allow” and disable the field in the vendors page, is that possible?
Thanks a lot,
hugo - April 5, 2020 at 10:59 am #115553WCFM ForumMember
Hi,
Sure, please add this code snippet to your site –
add_filter( 'wcfm_product_manage_fields_variations', function( $variation_fileds, $variations, $variation_shipping_option_array, $variation_tax_classes_options ) { $variation_fileds = wcfm_hide_field( 'backorders', $variation_fileds ); return $variation_fileds; }, 50, 4 ); add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) { $stock_fields = wcfm_hide_field( 'backorders', $stock_fields ); return $stock_fields; }, 50, 3 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- April 6, 2020 at 10:52 pm #116029hugo.lopesParticipant
You are amazing!
Thank YOU!
- AuthorPosts
- You must be logged in to reply to this topic.