Prechecked virtual radio button, making some settings global

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 Appointment Prechecked virtual radio button, making some settings global

Viewing 6 reply threads
  • Author
    Posts
    • #21231
      Rami
      Participant

      Hello,
      – When adding a new product, Can I make the virtual radio button pre-checked by default as in woocommerce backend adding products?, I mean to have all my products to be virtual by default with out the need of vendors to do so.
      -Can I make some settings of the new appointable product to be global, because I don’t want my vendors to set these options by them selves, I am talking here for example making the interval=30 min by default, and the padding time=1 day, and so, if that could be done then I can hide those settings from the vendor dashboard and set them to the suitable selection that I need.
      Thanks.

    • #21251
      Bingal
      Member

      Hi,

      – When adding a new product, Can I make the virtual radio button pre-checked by default as in woocommerce backend adding products?, I mean to have all my products to be virtual by default with out the need of vendors to do so.

      – Yeah sure, we will do this for you. Just have to add a small code snippet to the site.

      -Can I make some settings of the new appointable product to be global, because I don’t want my vendors to set these options by them selves, I am talking here for example making the interval=30 min by default, and the padding time=1 day, and so, if that could be done then I can hide those settings from the vendor dashboard and set them to the suitable selection that I need.

      – Yeah definitely all these are possible to achieve and even without editing any core files. But this are comes under our paid customisation. Please know me if you are interested in this.

      Thank You

    • #21256
      Rami
      Participant

      Thank you for the reply,
      – Can you provide me with the code for the virtual radio button to be checked?
      – Where I can contact you for discussing the customization I need.

    • #21257
      WCFM Forum
      Member

      Hi,

      Here is the custom code for you –

      function wcfm_product_manage_fields_general_strict_virtual( $general_fields, $product_id, $product_type ) {
      	if( !$product_id && isset( $general_fields['is_virtual'] ) ) {
      		$general_fields['is_virtual']['dfvalue'] = 'enable';
      	}
      	return $general_fields;
      }
      add_filter( 'wcfm_product_manage_fields_general', 'wcfm_product_manage_fields_general_strict_virtual', 20, 3 );

      For custom work please contact directly from here – https://wclovers.com/contact-us/

      Thank You

    • #21396
      WCFM Forum
      Member

      Hi,

      Is that code works for you?

      Thank You

    • #21403
      Rami
      Participant

      Perfectly, as usual,
      Thank you very much for your help.

    • #21416
      Bingal
      Member

      Thanks for confirming me this 🙂

Viewing 6 reply threads
  • The topic ‘Prechecked virtual radio button, making some settings global’ is closed to new replies.