Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Regular Price Field
- This topic has 2 replies, 2 voices, and was last updated 4 years, 10 months ago by info100.
Viewing 2 reply threads
- AuthorPosts
- January 17, 2020 at 7:59 pm #102483
- January 30, 2020 at 12:24 pm #104641SushobhanKeymaster
Hello,
Thanks for getting in touch with us. From what I have understood, you want to make regular price field read-only/disabled. You can do so via the following snippet-function make_price_readonly( $fields ) { if ( wcfm_is_vendor() ) { if ( isset( $fields['regular_price'] ) ) { $fields['regular_price']['attributes'] = array( 'readonly' => 'readonly', 'disabled' => 'disabled' ); } } return $fields; } add_filter('wcfm_product_manage_fields_pricing', 'make_price_readonly');
Thanks
- January 31, 2020 at 3:43 am #104751info100Participant
Thank you so much.
- AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.