I have a Collection named colShoppingCart. I am sending an HTML email to the customer upon checkout that includes all the items in the shopping cart that they ordered.
I am using Concat in the HTML to populate a table that is sent to the user.
Concat is iterating through the Collection and populating the HTML table just fine and the results in the email are great...except that the last iteration creates an empty row in the HTML table.
<th>Product Name</th> <th> Quantity Ordered</th>
<tr>" & Concat(
colShoppingCart,
"
<td style='text-align:center'>" & Description & "</td>
<td style='text-align:center'>" & QTY & "</td><tr>
)
)
I know what the issue is, I just don't know how to fix it. The second <tr> tag does its job and creates a new line in the HTML table after each Description and QTY is printed, but since its putting a new row after each row created, it creates an empty row just before it exits the Concat function.
What I am trying to do is stop creating the empty row in the HTML table.
Any help would be appreciated.