Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Sold Individually flagged by default.
- This topic has 4 replies, 4 voices, and was last updated 5 years, 1 month ago by ing.rapparini.
Viewing 4 reply threads
- AuthorPosts
- March 16, 2019 at 12:23 pm #52988AlexGuest
How can I set “sold individually” flagged on by default?
There’s some code to add?
Thanks - March 17, 2019 at 6:20 am #53058WCFM ForumKeymaster
HI,
How can I set “sold individually” flagged on by default?
Well, it’s visible by default. You can not see this at product archives and single product page?
Then please go to WCFM Admin Setting -> Marketplace Setting -> Be sure “Sold By” is ON.
Thank You
- March 17, 2019 at 7:46 am #53076Fany VanDaalParticipant
he probably meant this
Attachments:
You must be logged in to view attached files. - March 17, 2019 at 8:54 am #53090WCFM ForumKeymaster
Hi @Fanny,
You are right, thanks 🙂
For the purpose this code will require –
add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) { if( isset( $stock_fields['sold_individually'] ) ) { $stock_fields['sold_individually']['dfvalue'] = 'enable'; } return $stock_fields; }, 50, 3 );
Thank You
- March 17, 2019 at 12:36 pm #53108ing.rappariniParticipant
YES!!!
THANK YOU FANY VANDAAL AND WCFM FORUM!!!
- AuthorPosts
Viewing 4 reply threads
- The topic ‘Sold Individually flagged by default.’ is closed to new replies.