% for (var index in eachOrder["items"]) {
var itemClass = "";
if (index % 2 == 0) {
itemClass = "even-item";
}
var item = eachOrder["items"][index]; %>
<%- item.name %>
<% if (typeof item.customDiscount != "undefined") { %>
<%- $t("Custom Discount") %>
<% } %>
<% if (item.options.viewableOptions || item.options.viewable_super_attribute) { %>
<% if (item.options.viewable_super_attribute) { %>
<% for (var viewableKey in item.options.viewable_super_attribute) { %>
<%- viewableKey %>:
<%- item.options.viewable_super_attribute[viewableKey] %>
<% } %>
<% } %>
<% if (item.options.viewableOptions) { %>
<% for (var viewableKey in item.options.viewableOptions) { %>
<%- viewableKey %>:
<% if (Array.isArray(item.options.viewableOptions[viewableKey])) { %>
<%- item.options.viewableOptions[viewableKey].join(", ") %>
<% } else { %>
<%- item.options.viewableOptions[viewableKey] %>
<% } %>
<% } %>
<% } %>
<% } %>
<%- item.qty %>
<%- self.formatCurrency(item.subtotal) %>
<% if (typeof item.customDiscount != "undefined") { %>
<%- self.formatCurrency("-"+(item.customDiscount * item.qty)) %>
<% } %>
<% } %>