Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
-
bha
- Lieutenant, Jr. Grade (LT JG)

- Posts: 44
- Joined: Tue Mar 11, 2008 6:04 pm
Post
by bha » Tue Mar 25, 2008 8:02 pm
Hello. The Discount in the order confirmation email does not reflect discounts from Coupons used. There was a link for AC5.5 that addresses this but it does not work in AC7. Anyone know a work around?
Code: Select all
<tr>
<td>
<strong>Coupons Used:</strong>
</td>
<td>
#foreach( $orderItem in $orderItems )
#if ($VelocityUtils.compare($orderItem.getProductID(),-3)==0)
Coupon: $orderItem.getName()<br>
Amount: $LocaleUtils.formatCurrency($store,$orderItem.getExtPrice())<br>
Code: $orderItem.getSKU())<hr>
#end
#end
</td>
</tr>
Also I deleted the section for "Output for non-shipping items" in the order confirmation email template. Can someone post this section, please?
Thanks,
Bruce.
-
troutlet
- Lieutenant (LT)

- Posts: 77
- Joined: Mon Sep 24, 2007 3:01 am
- Location: USA
-
Contact:
Post
by troutlet » Wed Mar 26, 2008 3:03 am
Code: Select all
<!-- Output Non-Shipping Items -->
#foreach($orderItem in $order.Items.FilterByShipmentAndSort())
#beforeall
<table class="Email">
<tr>
<th class="Email">Non-Shipping Items</th>
</tr>
</table>
<table class="Email">
<tr>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>SKU</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Name</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Price</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Quantity</strong></td>
<td style="background:#cccccc; color:#00000; text-align: center;"><strong>Total</strong></td>
</tr>
#each
#if (($orderItem.OrderItemType == "Product"))
<tr>
<td class="Email" style="text-align: center;">$orderItem.Sku</td>
<td class="Email">
$orderItem.Name
#if ($orderItem.VariantName.Length > 0)
($orderItem.VariantName)
#end
</td>
<td class="Email" style="text-align: right;">$orderItem.Price.ToString("C")</td>
<td class="Email" style="text-align: center;">$orderItem.Quantity</td>
<td class="Email" style="text-align: right;">$orderItem.ExtendedPrice.ToString("C")</td>
</tr>
#end
#afterall
</table>
#end
-
bha
- Lieutenant, Jr. Grade (LT JG)

- Posts: 44
- Joined: Tue Mar 11, 2008 6:04 pm
Post
by bha » Wed Mar 26, 2008 3:44 am
Thank you very much!
-
tonz
- Lieutenant, Jr. Grade (LT JG)

- Posts: 48
- Joined: Thu Mar 13, 2008 4:08 am
Post
by tonz » Tue Apr 29, 2008 8:27 am
Order confirmation email's ORDER TOTALS section doesn't include Coupons, however TOTAL is counted correctly.
an example:
Subtotal: $8,098.00
Tax: $0.00
Shipping and Handling: $0.00
Discounts: -$3,000.00
Total: $4,078.40
there was a coupon worth of appr. 1000$. I would like it to be listed as a separate row.
Something like this:
Subtotal: $8,098.00
Tax: $0.00
Shipping and Handling: $0.00
Discounts: -$3,000.00
Coupons: -$1021.60
Total: $4,078.40