Commemorating the Holi Week GOOD FRIDAY SALE - Upto 20% OFF on all addons.

Claim Offer
01Day 20Hr 14Min 10Sec

Remove promotion + schedule + description

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!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM – Ultimate Remove promotion + schedule + description

Viewing 5 reply threads
  • Author
    Posts
    • #17581
      anthonyrusso.u
      Participant

      Hello,

      Is there a way to remove promotion, schedule and description fields for vendors ?

      Regards,

      Anthony.

    • #17582
      WCFM Forum
      Member

      HI,

      Yes, it’s absolutely possible to disable any form fields in WCFM.

      Kindly know me, which fields you want to disable.
      It will be best if you show us a screenshot of the same.

      Thank You

    • #17585
      anthonyrusso.u
      Participant

      Hello,

      On the page “add a new product” i would like to remove promotion price + schedule date when the promotional price appear + description field.

      You’ll find the screenshot attached.

      Regards,

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

      Hi,

      Thanks for get screenshot.

      Here is the custom code to disable those fields, just add this code in your theme’s functions.php –

      function wcfm_custom_product_manage_fields_pricing( $pricing_fields, $product_id, $product_type ) {
      	if( isset( $pricing_fields['sale_price'] ) ) {
      		unset( $pricing_fields['sale_price'] );
      	}
      	return $pricing_fields;
      }
      add_filter( 'wcfm_product_manage_fields_pricing', 'wcfm_custom_product_manage_fields_pricing', 50, 3 );
      
      function wcfm_custom_product_manage_fields_content( $content_fields, $product_id, $product_type ) {
      	unset( $content_fields['description'] );
      	return $content_fields;
      }
      add_filter( 'wcfm_product_manage_fields_content', 'wcfm_custom_product_manage_fields_content', 50, 3 );

      Please know me is this works for you or not!

      Thank You
      Simha

    • #17590
      anthonyrusso.u
      Participant

      Hello Simha !

      It works perfectly. Thanks a lot.

      Best Regards,

      Anthony.

    • #17591
      WCFM Forum
      Member

      Great … thanks for knowing me this 🙂

Viewing 5 reply threads
  • The topic ‘Remove promotion + schedule + description’ is closed to new replies.