Skip to content

Instantly share code, notes, and snippets.

@zacharylang
zacharylang / gist:9201131
Created February 25, 2014 01:52
Sublime
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/contrast/zacks-contrast.tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
".DS_Store"
],
"folder_exclude_patterns":
If @UnitPrice != "" AND @QuantityCancelled != "" Then
SET @ExtendedPrice = Multiply(@UnitPrice, @QuantityCancelled)
EndIf
If (@LineType == "S" OR @LineType == "GC") AND @ActualShipDate == "" AND @QuantityCancelled == "" Then
SET @HasUnshippedLines = "Y"
EndIf
If @QuantityCancelled != "" Then
SET @HasCancelledLines = "Y"
EndIf
If @LineType == "GC" AND @ActualShipDate != "" Then
SET @HasGiftCards = "Y"
EndIf
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)
<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 == "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>
<!--------------------- 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 ]%%
<!--------------------- 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 ]%%