OrderHelper
Properties
Methods
| Method | Signature | Comments/Sample |
|---|---|---|
hasActivationCodes | boolean hasActivationCodes(itemId) | true if the item has activation codes that might need displaying to the customer in the email |
getActivationCodes | string getActivationCodes(itemId) | returns the activation codes for the given item |
getAllActivationCodes | string[ ] getAllActivationCodes() | returns an array of all activation codes for all items ordered |
hasCoupon | boolean hasCoupon(couponCode) | true if the order contains the given coupon |
purchased | boolean purchased(itemIds) | true if any of the comma separated list of items were purchased |
notPurchased | boolean notPurchased(itemIds) | true if none of the comma separated list of items were purchased |
gift | boolean gift() | true if the order was a gift |
See Also
Was this page helpful?