Match a customer or guest
The condition builder includes the standard Magento address and product conditions plus four customer fields:
- Customer ID
- Customer Email
- Customers
- Is Logged In
Customers opens an Admin chooser and stores a list of customer IDs. Use is one of to include that list or is not one of to exclude it.
Customer ID, email and chooser conditions are most useful for signed-in customers. A guest normally has no customer ID. Use Is Logged In = No for a rule intended for guests, then combine it with address or cart conditions if needed.
Example: hide account-only delivery for guests
- Add Customer > Is Logged In and set it to No.
- Target the account-only carrier and method.
- Add Hide Method.
- Select all store views and customer groups in which guest checkout can occur.
Test the same cart once as a guest and once as a signed-in customer.