A Few Configuration Questions on WCFM

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 1 reply thread
  • Author
    Posts
    • #87734
      sales.gearya
      Participant

      Hello,

      I am setting up our WCFM multi vendor marketplace. I have gone through each of the areas of admin and have somewhat of an understanding. I am trying to achieve a few things I can’t seem to resolve. Hoping someone can help me…

      1. I have created a custom field. When a vendor is creating a product this custom field is displayed behind a tab on the left hand side of the page.
      I want this tab to be the first listed tab because its most important and required. When creating the custom field there is a dropdown for visibility but it only has one option which is “not visible”. How do I configure this custom field to be listed on top?

      2. How do i remove Virtual and Downloadable product types when a vendor is creating a product. We will not have those. I would like for “catalog” to be the only option and check marked by default. How would I achieve that?

      3. How do I make the Manage Stock to be required. In other words when a vendor is creating a product the only option is to manage stock so it is ready for them to insert their quantities and are required to do so?

      Thanks so much for any help!
      James

    • #88361
      WCFM Forum
      Member

      HI,

      1. I have created a custom field. When a vendor is creating a product this custom field is displayed behind a tab on the left hand side of the page.
      I want this tab to be the first listed tab because its most important and required. When creating the custom field there is a dropdown for visibility but it only has one option which is “not visible”. How do I configure this custom field to be listed on top?

      – Well, there is no option to move this tab on top. Custom fields tab comes after product’s general tabs.
      This will be only possibly by overriding template.

      2. How do i remove Virtual and Downloadable product types when a vendor is creating a product. We will not have those. I would like for “catalog” to be the only option and check marked by default. How would I achieve that?

      – Please disable those from Capability setting.

      3. How do I make the Manage Stock to be required. In other words when a vendor is creating a product the only option is to manage stock so it is ready for them to insert their quantities and are required to do so?

      – Please add this code to your site –

      add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) {
      	if( !$product_id ) {
      		if( isset( $stock_fields['manage_stock'] ) ) {
      			$stock_fields['manage_stock']['dfvalue'] = 'enable';
      		}
      	}
      	$stock_fields = wcfm_hide_field( 'manage_stock', $stock_fields );
      	$stock_fields = wcfm_hide_field( 'stock_status', $stock_fields );
      	$stock_fields = wcfm_hide_field( 'backorders', $stock_fields );
      	$stock_fields = wcfm_hide_field( 'sold_individually', $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

Viewing 1 reply thread
  • The topic ‘A Few Configuration Questions on WCFM’ is closed to new replies.