Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Sold Individually flagged by default.
- This topic has 4 replies, 4 voices, and was last updated 6 years, 3 months ago by
ing.rapparini.
Viewing 4 reply threads
- AuthorPosts
- March 16, 2019 at 12:23 pm #52988
Alex
GuestHow can I set “sold individually” flagged on by default?
There’s some code to add?
Thanks - March 17, 2019 at 6:20 am #53058
WCFM Forum
MemberHI,
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 #53076
Fany VanDaal
Participanthe probably meant this
Attachments:
You must be logged in to view attached files. - March 17, 2019 at 8:54 am #53090
WCFM Forum
MemberHi @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 #53108
ing.rapparini
ParticipantYES!!!
THANK YOU FANY VANDAAL AND WCFM FORUM!!!
- AuthorPosts
Viewing 4 reply threads
- The topic ‘Sold Individually flagged by default.’ is closed to new replies.