Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › About add extra variable product custom field problem
- This topic has 5 replies, 2 voices, and was last updated 5 years, 9 months ago by MOHO.
- AuthorPosts
- February 12, 2019 at 4:42 am #47800MOHOParticipant
I follow your code copy a new field for variable product
“mrp_service_fee” => array(‘label’ => __(‘加發服務費(NT$)’, ‘wc-frontend-manager-ultimate’) , ‘hints’ => ‘此為賣家加發給業務之服務費。’, ‘custom_attributes’ => array( ‘required’ => true ),’type’ => ‘number’, ‘class’ => ‘wcfm-text wcfm_ele wcfm_half_ele variable’, ‘label_class’ => ‘wcfm_title wcfm_ele wcfm_half_ele_title variable’ ),
1. array( ‘required’ => true ) –> how could i change to “not required”?
2. i can’t see “service fee” field , and show warning message –> how could i solve it?
Warning: Illegal string offset ‘name’ in /home3/mohotw/public_html/sites/wp-content/plugins/wc-frontend-manager/includes/libs/php/class-wcfm-fields.php on line 1017Attachments:
You must be logged in to view attached files. - February 12, 2019 at 4:43 am #47803MOHOParticipantThis reply has been marked as private.
- February 12, 2019 at 6:39 am #47825MOHOParticipant
It work now.
only this problem
1. array( ‘required’ => true ) –> how could i change to “not required”? - February 12, 2019 at 7:21 am #47837MOHOParticipant
and
I need custom check condition
single product use “_wc_service_fee”
variable product use “mrp_service_fee” (for each variable option)1. default value is “0”
2. if the value < 0
show “加發服務費不可小於零!”When vendor user submit show red error message like your other red error message
Attachments:
You must be logged in to view attached files. - February 14, 2019 at 10:37 am #48154WCFM ForumMember
HI,
array( ‘required’ => true )
Set this -> array()
Thank You
- February 14, 2019 at 12:28 pm #48191MOHOParticipant
Thanks a lot!
Please close it.
- AuthorPosts
- The topic ‘About add extra variable product custom field problem’ is closed to new replies.