Woocommerce Readonly Billing Fields

前端 未结 4 1464
暖寄归人
暖寄归人 2021-01-07 12:42

I have some e-commerce website where the customer billing address is predefined on the back-end.

I need to set the \"Billing Address\" fields as \'readonly\' to avoi

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 12:56

    $checkout_fields['billing'][$key]['custom_attributes'] = array('readonly'=>'readonly');
    

    this solves the problem

提交回复
热议问题