Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The price change only works with the first role assigned #127

Open
XofoSol opened this issue Jun 23, 2020 · 1 comment
Open

The price change only works with the first role assigned #127

XofoSol opened this issue Jun 23, 2020 · 1 comment

Comments

@XofoSol
Copy link

XofoSol commented Jun 23, 2020

When you assign many roles to an user, the special price only shows when the first role of the user is in the allowed roles. If any other role is in them, the prices doesn't show.

I found that the issue is in the functions.php file, in the "wc_rbp_get_current_user" function. You are using an array_shift, so, indeed, you are taking only the first role.

@varunsridharan
Copy link
Owner

this will be fixed in V4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants