Skillnad mellan versioner av "Templating:Emails"
Philip (Diskussion | bidrag) (→update_order) |
Philip (Diskussion | bidrag) (→order_confirmation: Document variants for products.) |
||
| Rad 162: | Rad 162: | ||
|partner | |partner | ||
|[[Templating:Variables#partner|partner]] | |[[Templating:Variables#partner|partner]] | ||
| + | |- | ||
| + | |order | ||
| + | |[[Templating:Variables#dictionary|dictionary]] | ||
| + | | | ||
| + | {| class="wikitable" | ||
| + | ! Key !! Type !! Description | ||
| + | |- | ||
| + | | products || [[Templating:Variables#list|list]] || | ||
| + | {| class="wikitable" | ||
| + | ! Key !! Type !! Description | ||
| + | |- | ||
| + | | variants || [[Templating:Variables#list|list]] || | ||
| + | {| class="wikitable" | ||
| + | ! Key !! Type !! Description | ||
| + | |- | ||
| + | | id || | ||
| + | |- | ||
| + | | name || | ||
| + | |- | ||
| + | | choice || [[Templating:Variables#dictionary|dictionary]] || | ||
| + | {| class="wikitable" | ||
| + | ! Key !! Description | ||
| + | |- | ||
| + | | id || | ||
| + | |- | ||
| + | | name || | ||
| + | |} | ||
| + | |} | ||
| + | |} | ||
| + | |} | ||
|} | |} | ||
Versionen från 7 april 2015 kl. 15.25
See also Templating:Variables.
Globals
| Name | Type | Description |
|---|---|---|
| from.name | string | Name of sender. Often the same as store_owner. |
| from.email | string | Email of sender. Often the same as store_email. |
| to.name | string | Name of first recipient. |
| to.email | string | Email of first recipient. |
| store_name | string | "Butiksnamn" under "Allmän information". |
| store_owner | string | "Företagsnamn" under "Allmän information". |
| store_email | string | "E-postaddress" under "Allmän information". |
| settings.ACCOUNT_GENDER | boolean |
Emails
Templates support both text and HTML, and language-specific files. If only a text template is available, a text-only email is sent. If text and HTML templates are available, a multipart message is sent. If only an HTML template is available, a multipart message is sent with the content of htmlonly.txt as the text part.
Language-specific templates are looked for before language-neutral templates. Names are constructed from the base name, the ISO 639-1 language code, and the file extension; example: contact.en.html.
activate_customer
Sent when customer's account has been manually activated.
| Name |
|---|
| customers_id |
administrators
Sent when an administrator's account has been updated.
| Name |
|---|
| username |
| password |
| login_href |
contact
Sent from contact.php.
| Name | Description |
|---|---|
| enquiry | The message sent in. |
| fields | The POST variable 'fields' passed along, support for PHP array fields is available. |
create_account
Sent when customer's account has been automatically activated.
| Name |
|---|
| customer_id |
| firstname |
| lastname |
customer_mail
Sent from Admin/mail.php.
| Name |
|---|
| subject |
| message |
get_new_pass
| Name |
|---|
| remote_addr |
| new_password |
newsletter
| Name |
|---|
| subject |
| content |
newsletter_send
Sent from Admin/newsletter_send.php.
| Name |
|---|
| subject |
| content |
order_confirmation
| Name | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| customer_comments | ||||||||||||||||||||||||||||||
| customer_telephone | ||||||||||||||||||||||||||||||
| customer_mobile | ||||||||||||||||||||||||||||||
| customer_id | ||||||||||||||||||||||||||||||
| order_id | ||||||||||||||||||||||||||||||
| order_info_url | ||||||||||||||||||||||||||||||
| order_date | ||||||||||||||||||||||||||||||
| item_list | ||||||||||||||||||||||||||||||
| list_total | ||||||||||||||||||||||||||||||
| delivery_address | ||||||||||||||||||||||||||||||
| billing_address | ||||||||||||||||||||||||||||||
| payment_module_text | ||||||||||||||||||||||||||||||
| shipping_module_text | ||||||||||||||||||||||||||||||
| payment_module_footer | ||||||||||||||||||||||||||||||
| custom | list of custom field | Custom fields. | ||||||||||||||||||||||||||||
| partner | partner | |||||||||||||||||||||||||||||
| order | dictionary |
|
order_print
Sent from Admin/order_print.php. Order PDF is attached.
| Name |
|---|
| subject |
| content |
password_forgotten
Sent from password_forgotten.php.
| Name |
|---|
| request_ip |
| new_password |
question_about_product
Sent from question_about_product.php.
| Name |
|---|
| message |
| product |
| signature |
tell_a_friend
Sent from tell_a_friend.php.
| Name |
|---|
| message |
| product |
| signature |
update_order
Sent when an order is updated.
| Name |
|---|
| action |
| order |
| order_href |
| order_date |
| order_status |
| comment |
| template_method |
| template_group |
Files
email.html
Extended by some HTML templates.
htmlonly.txt
Used when an email does not have a text alternative, but does have an HTML alternative.