Skip to content

Instantly share code, notes, and snippets.

%%[ If @LineType != "GC" AND @LineType != "GP" AND @LineType != "G" Then ]%%
%%[ If @ItemDescription2 != "" Then ]%%
Color | Size: %%=v(@ItemDescription2)=%%<br>
%%[ EndIf ]%%
%%[ If @CatalogNumber != "" Then ]%%
Style #: %%=v(@CatalogNumber)=%%<br>
%%[ EndIf ]%%
%%[ If @ListPrice != @UnitPrice Then ]%%
%%[ If @ListPrice != "" AND @UnitPrice != "" AND @fiftyone != "Y" Then ]%%
Original %%=Format(@ListPrice, "C2")=%% <span style="color: rgb(255, 153, 0); font-weight: bold;">Now %%=Format(@UnitPrice, "C2")=%%</span>
%%[ If @SalesCatalogSection == "CAR" Then ]%%
<a href="http://www.carters.com/carters" target="_blank"><img alt="Carter's" src="http://image.exct.net/lib/fefe1671706100/m/1/carters_logo.jpg" width="65" border="0" height="35"></a>
%%[ ElseIf @SalesCatalogSection == "OKB" Then ]%%
<a href="http://www.carters.com/oshkosh" target="_blank"><img alt="OshKoshB'gosh" src="http://image.exct.net/lib/fefe1671706100/m/1/OKBG_logo.jpg" width="65" border="0" height="35"></a> %%[ EndIf ]%%
</center>
%%[ EndIf ]%%
If @LineType == "SF" Then
SET @FreightSurcharge = Replace(Field(@row, "ExtendedPrice_att"),"-","")
EndIf
<!--------------------- Backorder Message ------------------------->
%%[ If Trim(Field(@row, "QuantityBackordered_att")) != "" Then ]%%
<table cellpadding="0" cellspacing="0" border="0" width="405" style="padding-bottom: 7px;">
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; color: red; font-size: 11px;">You will not be charged for this item until it ships.</td>
</tr>
</table>
%%[ EndIf ]%%
<!--------------------- Canceled Message ------------------------->
%%[ If Trim(Field(@row, "QuantityCancelled_att")) != "" Then ]%%
<table cellpadding="0" cellspacing="0" border="0" width="405" style="padding-bottom: 7px;">
<tr>
<td style="font-family: Arial, Helvetica, sans-serif; color: red; font-size: 11px;">Canceled. You will not be charged for this item.</td>
</tr>
</table>
%%[ EndIf ]%%
%%[ If @OrderType == "SP" THEN ]%%
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tbody>
<tr>
<td colspan="3" height="21"><img src="http://image.e.carters.com/lib/fefe1671706100/m/1/rounded-corners-top.gif" alt="corners" style="display: block;" border="0" height="21" width="600"></td>
</tr>
<tr>
<td style="background-color: rgb(255, 250, 227);" width="18"><img src="http://image.e.carters.com/lib/fefe1671706100/m/1/spacer.gif" border="0">
</td>
<table style="font-family: Arial,Helvetica,sans-serif; font-weight: bold; font-size: 11px; color: rgb(117, 129, 142); line-height: 15px; background-color: rgb(237, 241, 241);" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="11"><br>
</td>
<td style="padding: 8px 0px;">
<a target="_blank" href="%%=RedirectTo(@ProductURL)=%%" style="color: rgb(88, 200, 241); text-decoration: none;" alias="product">%%=v(@ItemDescription1)=%%</a>
</td>
<td style="padding: 8px 0px;" align="left" width="200">
<table border="0" cellpadding="0" cellspacing="0" width="68">
If @OrderType == "SR" OR @OrderType == "SL" Then
SET @FeeTotal = 0
If RowCount(@rsOrderDetail) != 0 Then
For @Counter = 1 to RowCount(@rsOrderDetail) Do
SET @row = Row(@rsOrderDetail, @Counter)
SET @LineType = Trim(Field(@row, "LineType_att"))
If @LineType == "F" Then
SET @ReturnLabelFee = Field(@row, "ExtendedPrice_att")
SET @FeeTotal = Add(@FeeTotal,@ReturnLabelFee)
If @LineType == "GC" AND @ActualShipDate != "" Then
SET @HasGiftCards = "Y"
EndIf
If (@LineType == "S" OR @LineType == "GC") AND @ActualShipDate == "" AND @QuantityCancelled == "" Then
SET @HasUnshippedLines = "Y"
EndIf
If @QuantityCancelled != "" Then
SET @HasCancelledLines = "Y"
EndIf