Skip to Content
Menu
This question has been flagged
2227 Views

I am trying to list all products from a sales order into an email template;

in Purchasing this is working:

% for purchase_order_line in object.order_line:

  <li>

    ${purchase_order_line.product_id.name} - QTY: ${purchase_order_line.product_qty}

  </li>

% endfor

  1. however I cannot find the correct placeholder for a sales order?

  2. is there a way to format this NOT as a list but join with "," in the text

  3. is there a way to only show the first x=3 order lines?

  4. is there a way to not show shipping products?

Any guidance start point is greatly appreciated!

Tobias

Avatar
Discard

Yes please, I'm looking for the same. Insert order _line informations in email templates.

Can someone send a hint?