Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a user has multiple roles, I'd like from them to see each of those prices, with the weight set in the price per role settings still determining which price they actually pay. Is there any way to do this?
Comments
Comment #1
fenstratThis would be possible however you'll need to implement a custom module or theme override to output the multiple prices. You can access all role prices for a product node with $node->role_prices, you'd need to look through the current users roles then output any corresponding role prices from $node->role_prices.
Comment #2
longwaveImplementing this would likely coincide with #602604: change label of price field - alongside "enabled" perhaps there should be a "display" checkbox (or dropdown with "never", "if user has role", "always" options?) that adds selected prices to the node output.