• Resolved pp412

    (@pp412)


    I use user role on a page with woocommerce. I copied the standard woocommerce customer role to eg. customer_xx. Only Read was taken over here as rights. Customer_xx gets a special price on the products which is awarded with “WooCommerce Dynamic Pricing & Discounts”. If Customer_xx logs in on the page, the LogIn button is replaced by the user name. So far so good, that’s normal behavior. Now I have the problem that the user Customer_xx does not appear as logged in for all products when he is logged in. I.e. with some products, the login button appears again instead of the user name and the user does not sees his price but the list price. If I switch to a different product, everything will fit again. This does not happen to users who have the standard woocommerce rols. Therefore I suspect that this is due to the user role plugin. Is this an known problem? Is there a solution for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    I’m sure that it’s not related to the User Role Editor plugin. URE just creates a role following to WordPress rules. The next (login, logout, etc. controls WordPress itself and other plugins may be involved).

    Simple test:
    Add to this role new capability view_admin_dashboard (add manually, if it does not exist). This will exclude automatic redirection to front-end, which WooCommerce does. Then login with test user and open /wp-admin. If you get there and see WP dashboard, the rest is an issue with some other plugin.

    Thread Starter pp412

    (@pp412)

    Does URE also following Woocommerce rules?
    Don´t know if there is a specific rule for WC.
    We have only the problem with WC that sometimes the user is shown and sometimes we see “LogIn” instead of the “username”.
    When we change to other products the username is shown again.

    We tested it with a blank installation only WordPress, Woocommerce and URE.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    URE is fully compatible with WooCommerce, as WooCommerce uses WordPress built-in permissions system based on user roles and user capabilities.

    I offer to look a source of the issue in other direction. Try exclude caching. Test with another browser/computer or clear your browser cache. If you have a server side caching switch off pages cache for the logged-in users.

    Thread Starter pp412

    (@pp412)

    Thnaks a lot for the hint.
    “WP Fastest Cache” was the problem.

    Only by the way: URE works very well and does what it should.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problems with LogIn’ is closed to new replies.