• Resolved mrolans

    (@mrolans)


    Hello!

    I am having issue with Woocommerce adding a role that I dont want to be added is there any way to stop this from happening?

    My site has preset roles and when they purchase through woo it overwrites my role to “Customer” instead of my predefined site role?

    Thanks greatly

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mrolans

    Thanks for reaching out!

    I understand that you’re facing an issue where WooCommerce is assigning the Customer role to users who purchase through your site, which is conflicting with your predefined site roles, correct?

    By default, people become Customers when registering via the checkout or sign-up process. These are their roles:

    • Have read access only for most capacities. This is the equivalent status to a normal blog subscriber.
    • Can edit their own account information.
    • View past/present orders.

    You’ve mentioned that your site have preset roles which is being overridden by the default function. Can you please share with us how these preset roles were added to your site as this is not part of the core functions of WooCommerce?

    If this was added thru a third-party plugin or a custom code, it would be best to reach out to the developers for further assistance here.

    Thanks!

    Thread Starter mrolans

    (@mrolans)

    Yes that is my issue and I understand what “Customer” role is for.
    My other roles are custom code but those aren’t my concern here.

    What I am asking is there a way to control maybe with a (woocommerce hook or filter) or some code snippet to stop “Customer” role from being added automatically and removing my preset role? Even if the roles weren’t custom I would still have this problem if I didn’t want “Customer” added and no way to stop it

    Forgive me if Im not explaining I’m unsure how to describe this issue in any other way.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @mrolans ,

    Thanks for clarifying.

    Kindly note that what you are wanting to achieve would require custom code, which is outside our scope of support.

    While I do not know of any direct custom code that can help you achieve exactly this, it may be worthwhile doing a?Google search?to see if you can find anything that meets your requirements.

    Alternatively, for help with custom code, you could hire a developer or ask your customisation questions in one of the channels below.

    On the other hand, you could check out the following extensions, which may be helpful in what you would like to achieve with regard to changing/removing user roles:

    I’d like to add that WooCommerce.com offers a 30-day refund policy which you can take advantage of, allowing you to test the extension, and make sure that it is what you are looking for.

    Should you have any pre-sales related questions, kindly contact us directly at WooCommerce.com → My Account → Support. You will need to create an account if you do not have one already.

    Hope this points you in the right direction!

    Thread Starter mrolans

    (@mrolans)

    Thanks you I understand this will involve custom code and was not asking someone to do it for me. I have searched issue and in the docs and not find something like I was looking for.

    However it seems there are those addons listed which may help ill look them over and see if they can do what I want

    Consider this issue solved
    -Olan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to stop woocommerce adding a role’ is closed to new replies.