Gift Certificate Email Template
Gift certificate recipient email triggers when a customer purchases a gift certificate.
Object properties
| Property | Type | Description |
|---|---|---|
certificate | object | |
certificate.code | string | |
certificate.to_name | string | |
certificate.to_email | string | |
certificate.from_name | string | |
certificate.from_email | string | |
certificate.amount | string | |
certificate.redeem_link | string | |
certificate.expiry_date | object | |
certificate.expiry_date.formatted | string | |
certificate.expiry_date.value | integer | |
store | object | |
store.name | string | |
store.domain_name | string | |
store.logo | object | |
store.logo.title | string | |
store.logo.name | string | |
store.logo.url | string | |
store.ssl_path | string | |
store.cdn_path | string | |
store.image_directory | string | |
store.img_path | string | |
store.path_normal | string | Path to the store (i.e., domain + protocol) |
store.path | string | |
store.address | string | |
store.language | object | |
store.language.code | string | |
store.language.direction | string | Left to right or right to left, depending on the language |
customer | object | |
customer.first_name | string | |
customer.full_name | string | |
customer.email | string | |
customer.group | array | |
customer.group[].name | string | |
misc | object | |
misc.year | integer | |
translations | object | |
translations.en | object | |
translations.en.title | string | |
translations.en.hello | string | |
translations.en.message | string | |
translations.en.expiry_info | string | |
translations.en.instruction | string | |
translations.en.attached | string | |
translations.en.warning | string | |
translations.en.go_shopping | string |
Example
{ "certificate": { "code": "FA-21465", "to_name": "John", "to_email": "john.f@example.com", "from_name": "John Wick", "from_email": "johnwick@example.com", "amount": "12.34", "redeem_link": "#redeem-link", "expiry_date": { "formatted": "03/01/2121", "value": 1614615821 } }, "store": { "name": "My Dev Store 97434969", "domain_name": "my-dev-store-97434969.store.bcdev", "logo": { "title": [ "= My Dev Store 97434969 =" ], "name": "avatar-2020_1612860757__16350.jpeg", "url": "https://valeryderived-cloud-dev-vm.store.bcdev/store/f1kr2akw96/product_images/avatar-2020_1612860757__16350.jpeg" }, "ssl_path": "https://my-dev-store-97434969.store.bcdev", "cdn_path": "https://valeryderived-cloud-dev-vm.store.bcdev/store/f1kr2akw96", "image_directory": "product_images", "img_path": "https://valeryderived-cloud-dev-vm.store.bcdev/r08d84bb67d250c7624502ed76d8e0bafb1a5cacf/g-themes/ClassicNext/images", "path_normal": "https://my-dev-store-97434969.store.bcdev", "path": "https://my-dev-store-97434969.store.bcdev", "address": "123 Fake St, Dallas, TX 75225 USA", "language": { "code": "en", "direction": "ltr" } }, "customer": { "first_name": "John", "full_name": "John Jr", "email": "john.f@example.com" }, "misc": { "year": 2021 }, "translations": { "en": { "title": "You have received a Gift Certificate for {{name}}", "hello": "Dear {{name}},", "message": "{{from_name}} ({{from_email}}) has sent you a {{amount}} gift certificate for <a href=\\{{path}}\\>{{name]}</a>.", "expiry_info": "You have until {{date}} to use this gift certificate before it expires.", "instruction": "For instructions on how to redeem your gift certificate please <a href=\\{{link}}\\>click here</a>.", "attached": "Your gift certificate is attached to this email.", "warning": "Please download or print a copy of your gift certificate for safe keeping as gift certificates are non-transferable.", "go_shopping": "Go shopping" } } }