1

I have a Drupal site with drupal commerce on it and I created a product with 2 price field.

If a user have role 'simple user' he sees the default price.
If user have role 'friend user' he sees the second price value.

I already create this rule but now I'm trying to filter the product in this way:

If user have role 'friend user' and the product don't have the second price hide it to him. I'm not seeing any option in rule to hide a content.

How can I achieve this content filter?

0

I believe there is not out of the box or ready to use solution. You should create a custom rule and trigger it when the product is being viewed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.