• Resolved bruceandmrgiggles

    (@bruceandmrgiggles)


    Hello, is there a way to save the registered values of the WC Vendors user fields (shop description, bank details, etc.) even when changing roles? For example, when I change the role from ‘vendor’ to ‘customer’ then back to ‘vendor’, the values will just be the same as before?

    Here’s my situation:

    I have this registration form for vendor application where I’ve linked the WC Vendors fields to the registration fields through meta keys, and it was a success because the registered info appeared on the user’s backend profile.

    I’m planning on manually changing their roles from ‘customer’ to ‘vendor’ upon receiving their application form, but when I change the roles, everything from shop description to bank details are cleared out. Everything except for Shop Name. I was wondering if whatever made the Shop Name stay, could be done they same with the others?

    Thanks, looking forward for your reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mark Kevin

    (@mkesteban08)

    Hi there,

    Nice one! I think that’s a good customization that you got there. But it seems that the other way around does not work as it refreshes all those fields or might I say, those fields are newly generated for those newly appointed user as a vendor.
    Furthermore, it means that there are no fields to save to while they are still a customer.

    Please take note that this kind of customization is beyond our support scope.
    I hope all the best for your website’s endeavor and for the customization you need for it.

    Thread Starter bruceandmrgiggles

    (@bruceandmrgiggles)

    Thanks! I didn’t do much customizations tho, I just linked the user meta keys to corresponding fields.

    Here’s the funny thing, when the users with ‘customer’ role submit the application form, the WC Vendors fields appear on the backend user profile (even when supposedly they shouldn’t because they are supposed to appear for ‘vendor’ roles). When I manually change the user’s role from ‘customer’ to ‘vendor’, the fields clear out except for Shop Name.

    I tried re-registering the user (now a ‘vendor’), the info reappeared. I changed his role from ‘vendor’ to ‘customer’ then back to ‘vendor’, everything was gone except for the Shop Name. I was wondering what configurations you did for the Shop Name to remain there…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Registered info not saved when changing roles’ is closed to new replies.