WCMp bundle is available at a slashed price

Grab It Now

How can I build the wcmp_vendor_fields data value?

How can I build the wcmp_vendor_fields data value?2019-08-13T04:48:30-05:00

Home Support Forum Theme and Plugin Support How can I build the wcmp_vendor_fields data value?

Theme and Plugin Support

How can I build the wcmp_vendor_fields data value? Open

  • Author
    Posts
  • jsmithangular
    Participant
    Post count: 2

    I used wcmp and rest api to connect from mobile app. I have fields on my mobile app,
    -store name,
    -phone number,
    -email,
    -location,
    -city,
    -country.
    I want to save the data as pending. After I looked at the Vendors, this shows “No Vendor Application archive data!!”
    It was because the wcmp_vendor_fields is empty.
    Is there a way I can build the wcmp_vendor_fields value or map the values on wp_usermeta?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4608

    Hello @jsmithangular,

    Thanks for get in touch with us.

    “wcmp_vendor_fields” is being generated by having all data that was being submitted via vendor registration form. We do allow admin to edit those data till the vendor is pending. Once any vendor becomes pending vendor to active vendor all these data will be saved as archive data.

    Now, please check the fileds of vendor registartion form and populate the field as per your need.

    Kindly let us know if you need any further help.

  • jsmithangular
    Participant
    Post count: 2

    But, I have my custom vendor registration form in my mobile app. Is there a way or a function that will build a wcmp_vendor_fields value?
    I’d like to use update_user_meta($userID, 'wcmp_vendor_fields', $value);
    The question is, how can I build the $value ?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 4608

    Kindly check the function wcmp_save_extra_register_fields for the fields. On that function we are creating the data for that field and saving it via update_user_meta.

    Kindly let us know if you need any further help.

Please LOGIN to reply to this topic