Add custom fields in Vendor Profile

WCMp Vendor Staff

Add custom fields in Vendor Profile Open

Viewing 5 reply threads
  • Author
    Posts
    • #97372
      gupta
      Participant

      I have added custom fields in vendor Registration form, and now I want to store the filled data in Vendor profile page when I edit the Pending vendor.
      Please have a look at screenshots Register form,Proile page
      I want to show the stored Name,Company Name, What you are selling, Mobile no. in Vendor Profile.

    • #97447
      sumit singh
      Moderator

      Hi, If You add any custom field from wcmp->settings->vendor, then we display the filled data in edit profile page for pending vendor.
      So you dont’t need to do any code. You requirements are already in our default flow.
      https://prnt.sc/stn1yr

    • #97634
      gupta
      Participant

      One more thing, I can’t find any validation on these fields, like the contact no. field validation.
      Can you please help me with this.

    • #97647

      @gupta, do you want to validate the contact no, then I am afraid, currently there is no such option to validate the number automatically.

      Admin needs to validate the data manually.

      Let us know if you have any further query.

    • #97735
      gupta
      Participant

      Can you please tell me the hook/filter where I can validate the fields.

      And also there is no number field available in custom fields for vendor form.

    • #97829

      Hi @gupta, this is our filter for save the registration form hook : apply_filters(‘wcmp_save_registration_fields’, $wcmp_vendor_fields, $customer_id);

      You need to use this to add your code for the phone number validation. Yes, we don’t have a default phone number field. But, you can use the label name for your custom code.

Viewing 5 reply threads

Please LOGIN to reply to this topic

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price