Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Appointment › Prechecked virtual radio button, making some settings global
- This topic has 6 replies, 3 voices, and was last updated 6 years, 7 months ago by Bingal.
- AuthorPosts
- April 3, 2018 at 1:09 pm #21231RamiParticipant
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. - April 3, 2018 at 9:01 pm #21251BingalMember
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
- April 4, 2018 at 12:43 am #21256RamiParticipant
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. - April 4, 2018 at 6:57 am #21257WCFM ForumMember
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
- April 6, 2018 at 1:51 pm #21396WCFM ForumMember
Hi,
Is that code works for you?
Thank You
- April 6, 2018 at 2:22 pm #21403RamiParticipant
Perfectly, as usual,
Thank you very much for your help. - April 6, 2018 at 4:19 pm #21416BingalMember
Thanks for confirming me this 🙂
- AuthorPosts
- The topic ‘Prechecked virtual radio button, making some settings global’ is closed to new replies.