Product can only be purchased by a team paying customer or a team admin
  • 14 Mar 2024
  • 1 Minute to read

Product can only be purchased by a team paying customer or a team admin


Article Summary

This rules prevents customers and admins from purchasing a product if the customer isn't a team paying customer or team administrator. It's designed to help team administrators and paying customers prevent their team from making purchases without their approval.

You need the following details to set up this rule:

  • The ID of the product that can't be purchased if the customer isn't a team paying customer or a team administrator.
Don't know where to get this ID?

  1. Log in to dashboard.nexudus.com if you aren't already.

  2. Click Add rule

  3. Click on Manual entry

  4. Name your validation rule.

  5. Add a Description for your rule to let other admins know what it does at a glance.

  6. Toggle on This rule is active.

  7. Select Product sale in the Record type.

  8. Add the Error message to display if the validation rule is not met.

  9. Add the following code snippet to the Formula field.

record.Product.Id <> PRODUCT_ID OR record.Coworker.IsPayingMember() OR record.Coworker.IsTeamAdministrator()
  1. Replace PRODUCT_ID with the relevant product ID.

In the example below, the product ID is 123456789.

record.Product.Id <> 123456789 OR record.Coworker.IsPayingMember() OR record.Coworker.IsTeamAdministrator()

  1. Click the Save Changes button.


All done! We recommend trying to purchase the relevant product using a test customer account who isn't a team administrator or paying customer. If you see your error message displayed as you try to check out, you're good to go.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.