Scripting on Catalogs
Catalog Items support the same item scripting lifecycle as other item types.
Pre-Processing Script
When it runs: When a donor adds a catalog item to their cart
Purpose: Enforce quantity rules, apply conditional pricing, validate eligibility
Post-Processing Script
When it runs: After the catalog order transaction is saved
Purpose: Fulfillment notifications, inventory updates, external order system integration
Common uses:
- Send a notification to the fulfillment team with order details
- Update inventory counts in an external system
- Generate a packing list via a Document Template
Script Context
| Variable | Contents |
|---|---|
orderItem |
The catalog Order Item |
purchaseOrder |
The complete transaction |
contact |
The buyer’s Contact record |
account |
The DonorPoint account |
campaign |
The catalog |
→ Full context reference: Scripting Contexts