Sold Individually flagged by default.

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 4 reply threads
  • Author
    Posts
    • #52988
      Alex
      Guest

      How can I set “sold individually” flagged on by default?
      There’s some code to add?
      Thanks

    • #53058
      WCFM Forum
      Keymaster

      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

    • #53076
      Fany VanDaal
      Participant

      he probably meant this

      Attachments:
      You must be logged in to view attached files.
    • #53090
      WCFM Forum
      Keymaster

      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

    • #53108
      ing.rapparini
      Participant

      YES!!!
      THANK YOU FANY VANDAAL AND WCFM FORUM!!!

Viewing 4 reply threads
  • The topic ‘Sold Individually flagged by default.’ is closed to new replies.