I am using Drupal 7 with Drupal Commerce (not Kickstart). I am having difficulties editing the order confirmation email. I am hoping to basically "duplicate" the Order review page from the Checkout process to be included in the email (order items, prices, total and billing info).
The module I installed is Commerce message and I just had no luck trying to edit the order confirmation email. I do have the Tokens module installed and enabled.
I tried to edit the email under Structure -> Message Types, however, the replacement tokens available (for example: [message:message-commerce-line-item]
), don't seem to output anything in the email. Actually, the token itself is included in the email, like so:
<p>[message:message-commerce-line-item]</p>
I have tried several other tokens with the same result. I tried to select Filtered HTML and Full HTML.
Reading through the Drupal Answers I also tried to use !order-summary
token, which seems to work, however the email is "unstyled" and includes HTML tags, like so:
<tr class="odd views-row-first views-row-last">
<td class="views-field views-field-line-item-title" >
testing credit card payment
</td>
<td class="views-field views-field-commerce-unit-price price" >
$0.25
</td>
<td class="views-field views-field-quantity" >
1
</td>
<td class="views-field views-field-commerce-total views-align-right price" >
$0.25
</td>
</tr>
What puzzles me the most is seeing answers like this or this, stating that
You want the Commerce Message module and it's dependencies. It includes customer emails with a full order details, including customer profiles and all the products purchased
Any ideas on the issue? I failed to find any Commerce message tutorial or the way tokens should be used with it in Drupal Commerce. I'd be happy to go through one if it exists, I would be willing to even write one for future users who might have the same problems once I figure this out.
Thanks