Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
denotes a question about the Magento e-mail templates
5
votes
How to Manage Multilingual Mail Templates
I've done something like this a long long time ago (in a galaxy far far away).
The main idea is to replace the content of the e-mails with layout handles.
Magento already supports this. For example in …
3
votes
Accepted
Replace SKU on transactional emails with Product ID
You can get the id with
$_item->getProductId();
This should work even if the product is deleted after the order is placed.
3
votes
Accepted
Send different transactional emails specific to cetain products
I don't have a working code for this, but here is an idea.
You can try to rewrite the Mage_Sales_Model_Order::sendNewOrderEmail() method and use different templates depending on the products ordered. …
5
votes
Adding Order# to Payment Transaction Failed template
You don't get an order id in the payment failed e-mail because the order object is not created yet and the order id is not reserved for the quote.
if the error that triggers the payment failed email h …
2
votes
Accepted
Transactional Email Layout Handle Not Working
You cannot specify the package name in the e-mail template. The layout is loaded from the current store, or the emulated store.
So if you place the layout file in the theme used by the store that is s …
2
votes
Accepted
How to change data email of invoice during place new order?
That information is in the field shipping_description of the order object.
$order->setData('shipping_description', 'Some description')
should do what you want.
1
vote
Where to find the template for sale emails in Magento 1.8?
The file is
app/design/frontend/{package}/{theme}/template/email/order/items.phtml.
You need to edit the <thead> section.
2
votes
Accepted
How to get current custom transactional email template ID
The template is not aware of the email template that is calling it.
If your template needs to look differently based on the e-mail, you need to use 2 templates for 2 different emails.
I mean instead o …
5
votes
Accepted
Does Magento have a fallback for default email templates?
There is no fallback mechanism for the e-mail templates.
I mean there is one, but not the way you want it.
The e-mail templates are searched in app/locale/{lang_ISO}/template/email/.
If the template i …
1
vote
Accepted
Magento Email htmlescape not working
I don't think you need to worry about escaping.
In 2.1 the escape is applied automatically
https://github.com/magento/magento2/blob/2.1/app/code/Magento/Email/Model/Template/Filter.php#L612
all yo …
5
votes
Accepted
Magento {{depend}} combined with {{config path='some/value/here'}}
You cannot use {{depend}} and {{config}} in that combination for 2 reasons.
The first and most important is that the regex match is screwed up like this. If you have a text like this {{depend name}} s …
9
votes
pass custom variable/parameter from email template to phtml file
When passing a variable this way:
{{layout handle="sales_email_order_items" order=$order test=$test}}
You make it available in the email/order/items.phtml template only.
You are able to get it the …
1
vote
Custom attributes give error after ordering (with ideal)
When working with product attributes for order items it is not OK to get the product details by loading the product data for 2 reasons:
the product might be missing (deleted at some point)
it affect …
3
votes
Accepted
Transactional Emails: Where does $this->getValueProperties() get its values from?
The values are set in the layout file. Check sales.xml. You should find inside the handle <sales_email_order_items> this line:
<action method="setValueProperties"><value>align="right" style="padding: …
1
vote
Accepted
How Can I use dependent variables in Magento Email Templates
I think the best way is to rewrite the Mage_Sales_Model_Order::sendNewOrderEmail()
What you need to change is the list of variables assigned to the template. So turn this :
$mailer->setTemplateParams …