wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
01Day 20Hr 11Min 32Sec
wcfm-santa

Remove free trial from product page

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Remove free trial from product page

Viewing 1 reply thread
  • Author
    Posts
    • #106898
      admin-8812
      Participant

      On the page “add a new product” i would like to remove free trial & Sign-up fee ($) fields. The vendors dont need these, and they are a bit confusing. This is for subscriptions.

      Thanks
      Erin

    • #115562
      WCFM Forum
      Keymaster

      Hi,

      Add this code snippet to your site for the purpose-

      add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id ) {
      	$general_fields = wcfm_hide_field( '_subscription_sign_up_fee', $general_fields );
      	$general_fields = wcfm_hide_field( '_subscription_trial_length', $general_fields );
      	$general_fields = wcfm_hide_field( '_subscription_trial_period', $general_fields );
      	return $general_fields;
      }, 50, 2 );

      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
  • You must be logged in to reply to this topic.