Force vendor to set shipping settings before selling.

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 2 reply threads
  • Author
    Posts
    • #37096
      d-n-13
      Participant

      Hello wcfm,

      Please add a condition to force vendors to set shipping before they can sell.

      Also make sure to add condition if they delete shipping later to give them alert all their products will go to Draft.

      physical products with no shipping shouldn’t be allowed to go public.

    • #37209
      WCFM Forum
      Member

      Hi,

      You may use this code snippet –

      add_filter( 'wcfmmp_is_store_offline', function( $is_store_offline, $user_id ) {
      	$wcfmmp_shipping = get_user_meta( $user_id, '_wcfmmp_shipping', true );
      	if( !$wcfmmp_shipping ) $is_store_offline = true;
      	return $is_store_offline;
      }, 250, 2 );

      Without shipping setting vendor’s store will be OFF Line.

      Thank You

    • #37253
      d-n-13
      Participant

      Hi,

      I’ve just register new Vendor3 and did no settings I just added product, and it was shown in shop page.

Viewing 2 reply threads
  • The topic ‘Force vendor to set shipping settings before selling.’ is closed to new replies.