Active
Project:
Commerce Message
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2013 at 11:08 UTC
Updated:
12 Oct 2013 at 11:08 UTC
Hi,
My usecase is to theme the token [message:message-commerce-order:commerce-email-order-items] for invoice messages.
I was not able to do this using commerce_message.
In commerce_email theming is added by: http://drupalcode.org/project/commerce_email.git/blobdiff/55c994b511e1ac...
Would it be possible to also add something like that in commerce_message, that a theme function like:
(I got order-summary-wrapper idea from: http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x...)
function MYTHEME_commerce_message_email_order_items($variables) {
// Get Message wrapper.
$order-summary-wrapper = $variables['order-summary-wrapper'];
// Get rendered view.
return views_embed_view('commerce_cart_summary', 'mail', $order-summary-wrapper->getIdentifier());
}
Would work?
Thanks for going into this!
Greetings, Martijn