Only Primary Role Considered for Global Price Adjustment
-
I’ve noticed that only the primary user role is considered when determining if a user should be granted a certain price adjustment from the global price adjustment settings. In most cases this is fine, but in some cases (such as with the use of the WPFront User Role Editor plugin) a user may have multiple roles, not just one.
The solution shouldn’t be too complicated to implement. Rather than only considering the first role of a user, the plugin should be looping through all the roles of a user to see if any of them matches the requirements for a price adjustment. Of those that do match (if any), the price adjustment that has the highest precedence should control the pricing.
- The topic ‘Only Primary Role Considered for Global Price Adjustment’ is closed to new replies.