about varible option name can't change

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 WCFM about varible option name can't change

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

      I know WC limit this change.

      Could i display some red error message, let the user know can’t change.

      Attachments:
      You must be logged in to view attached files.
    • #38843
      WCFM Forum
      Member

      Hi,

      Send me message what you want to show, I will give you according code for this.

      Thank You

    • #38846
      MOHO
      Participant

      use this chinese word “目前規格選項不可修改,請刪除再新增。”

      Thanks

    • #38892
      WCFM Forum
      Member

      HI,

      Kindly add this code for the purpose ->

      function wcfm_product_custom_attributes_0312_hints( $attr_fields, $field_name ) {
      	if( isset($attr_fields[$field_name]) && isset($attr_fields[$field_name]['options']) && isset($attr_fields[$field_name]['options']['name']) ) {
      		$attr_fields[$field_name]['options']['name']['desc']= '目前規格選項不可修改,請刪除再新增';
      		$attr_fields[$field_name]['options']['name']['desc_class']= 'attribute_ele attribute_ele_hints';
      	}
      	return $attr_fields;
      }
      add_filter( 'wcfm_product_custom_attributes', 'wcfm_product_custom_attributes_0312_hints', 50, 2 );

      Thank You

    • #39130
      MOHO
      Participant

      I add in child theme, but i didn’t see red error message.

      Attachments:
      You must be logged in to view attached files.
    • #39154
      WCFM Forum
      Member

      HI,

      I gave you code for showing a message like this along with attributes -> https://ibb.co/yFzxqrh

      Well, add this CSS as well ->

      p.attribute_ele_hints {
          display: block;
          width: 100%;
          margin-left: 39%;
          margin-bottom: 15px;
      }

      Thank You

Viewing 5 reply threads
  • The topic ‘about varible option name can't change’ is closed to new replies.