• Resolved diegosanchez93

    (@diegosanchez93)


    How are they?

    Basically the problem is that. I created a system of annual subscriptions, in which when they buy a subscription the role of client is changed to gold (for example), having discounts on exclusive products. The problem comes that when making the payment, the role is changed well, but once the role is changed, it does not let me see the price and add to the cart of ANY product on the site.

    I imagined that maybe it would be some conflict with some plugin or something. But I check and I can’t find the error.

    The plugins that I have installed on roles are:

    – PublishPress Capabilities
    – Product Visibility by User Role for WooCommerce
    – User Role Editor
    – WooCommerce Role Based Pricing by Meow Crew
    – WooCommerce Role Pricing
    – YITH WooCommerce Role Based Prices Premium
    – Nav Menu Roles

    I have reviewed each one and there is nothing that indicates that the GOLD role cannot see prices or add to cart of the products.

    Also did:

    – See in the database if indeed the user’s role had been changed, and yes, it was updated correctly.
    – Check the capabilities of the GOLD role in the database, and it has the same as the CLIENT role, therefore there should be no error on that side.
    – I tried to change the role from “Gold” to “gold” thinking that maybe there could be errors inserting uppercase roles in the database.
    – I checked some system files to see if any previous developers made rules in any theme or plugin files, but found nothing.

    I don’t know if something similar happened to someone, or knows what it could be, it would help me a lot since it is the only thing that remains for me to solve. Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter diegosanchez93

    (@diegosanchez93)

    Resolved: It was the YITH plugin, which has some options so that, according to the role of the user, it shows or not, for example, the price of the products, or the add to cart button, etc. And since I had created new roles, by default the plugin left them without those options, and therefore it was that I could not see the prices or add to the cart when the user changed the client role to one that I had created.

    I don’t know how to delete the thread. But hey, maybe something similar happens to someone and it works for them. It happened to me because I recently joined this company that I am and I did not know about these plugins or how they were configured hehe. Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘It does not allow me to see prices and the add to cart button with my own role’ is closed to new replies.