Hi,
I would very much like to use this module for my emails to customers for orders, invoices.
Right now it is working great for order confirmation, and the order tokens are also shown.
It is NOT working for invoices. The invoices tokens are not shown.

I would very much like to use the token: [message:message-commerce-invoice:commerce-email-order-items] ..

Thanks a lot in advance for your reply!
Greetings, Martijn

CommentFileSizeAuthor
#3 Invoice-tokens.txt6.45 KBsummit

Comments

summit’s picture

Hi,
If the maintainer is not able to add connection to them natively. I mean using tokens from https://drupal.org/project/commerce_invoice
May be this helps: http://www.louisvillewebgroup.com/content/emailing-customers-product-cro...
I am not a programmer..but may be this way invoices can be attached to the commerce message messages?

greetings, Martijn

summit’s picture

Hi,
I do not know why but with adding this in a module: https://drupal.org/node/1352916#comment-5519920
Suddenly my [message:message-commerce-order:commerce-email-order-items] token worked in my created Invoice message ...

EDIt: I was incorrect, my redirected view of [message:message-commerce-order:commerce-email-order-items] did not work.
I use this in my template

function MYTHEME_commerce_email_order_items($variables) {

  // Get order wrapper.
  $order_wrapper = $variables['commerce_order_wrapper'];

  // Get rendered view.
  return views_embed_view('commerce_cart_summary', 'mail', $order_wrapper->getIdentifier());
}

Is there a MYTHEME_commerce_message_email_order_items maybe?
Because there is the [message:message-commerce-order:commerce-email-order-items]

edit2: made a specific themable issue: https://drupal.org/node/2110431

Greetings, Martijn

summit’s picture

StatusFileSize
new6.45 KB

Hi,

Related to invoice tokens, I thought I had a good way of working.
1) I added like Order a Entity Reference field Invoice and selected Commerce_Invoice as the entity type that can be referenced through this field.
2) I then see Invoice tokens pop-up under Message (see attached txt file)

But which token I use in the text. None of them shows value....only the placeholders are shown..

Please help?
Greetings, Martijn