Contents
On this page

AND/OR, role and variation rules - Plugixa Extra Product Options

The free plugin gives each field one rule on another field’s answer. Pro adds:

  • Several rules on one field, combined with AND or OR.
  • Rules on the customer’s role, such as wholesale customers only.
  • Rules on the chosen variation, such as the Red colour only.
  • Rules on the quantity ordered, such as from 10 items.

The Rules tab of a Purchase order number field with two rules combined with OR: Quantity ordered is more than 9, or Customer role is Wholesale customer

Several rules

In a field’s Rules tab, click Add another rule under the first rule. Then choose how they combine under Combine the rules:

Choice The field is shown (or hidden) when
All rules must match (AND) Every rule matches
Any rule can match (OR) At least one rule matches. One matching rule is enough.

Each rule line starts with IF, then AND or OR, so the tab reads like a sentence.

Other values

The Field list of a rule has an Other values part, after the group’s fields:

Value What it tests Operators
Customer role The role of the signed-in customer, picked from your site’s roles is, is not, is empty, is filled in
Color, Size, … The chosen variation’s value of each global attribute (from Products > Attributes) is, is not, is empty, is filled in
Quantity ordered The number in the quantity box All number operators

Some details:

  • Customer role tests the customer’s main role. A guest has no role: test them with is empty.
  • An attribute rule tests the chosen variation. It is empty until a variation is chosen, and for a variation set to “Any” value of that attribute. Attributes typed on a single product, rather than created under Products > Attributes, are not listed.
  • A quantity rule follows the quantity box live on the product page, and the cart checks it again when the quantity changes there.

Examples

Field Rules
Bulk packaging Show when Quantity ordered is more than 49
Trade reference Show when Customer role is Wholesale customer
Matching thread colour Show when Color is Red OR Color is Blue
Express making Hide when Customer role is empty AND Quantity ordered is more than 20

Why not the cart total?

Rules cannot test the cart total on purpose: option prices follow the rules, so a rule on the total would change the very total it tests.

Going back to free

A field keeps all its rules if you go back to the free plugin. Rules on other fields and on the quantity keep working. Rules on the customer’s role or a variation attribute then always see an empty value, so check those fields. The free editor cannot add a second rule.

Quick Links

Share