About add extra variable product custom field problem

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!

Viewing 5 reply threads
  • Author
    Posts
    • #47800
      MOHO
      Participant

      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 1017

      Attachments:
      You must be logged in to view attached files.
    • #47803
      MOHO
      Participant
      This reply has been marked as private.
    • #47825
      MOHO
      Participant

      It work now.

      only this problem
      1. array( ‘required’ => true ) –> how could i change to “not required”?

    • #47837
      MOHO
      Participant

      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.
    • #48154
      WCFM Forum
      Keymaster

      HI,

      array( ‘required’ => true )

      Set this -> array()

      Thank You

    • #48191
      MOHO
      Participant

      Thanks a lot!

      Please close it.

Viewing 5 reply threads
  • The topic ‘About add extra variable product custom field problem’ is closed to new replies.