Colored productname in email-order.
If the productname ends on FC, the name must be colored red on the email-order.
So I made the code if the 2 last letters are FC, an other css is used.
varIfFullColor=Right((WA_eCart_DisplayInfo(stickersBE, "Name").Value),2)
If varIfFullColor = FC Then
MailBody = MailBody & " <td valign=" & Chr(34) & "top" & Chr(34) & " align=" & Chr(34) & "left" & Chr(34) & " class=" & Chr(34) & "S3C_OrderLineItemMirror" & Chr(34) & ">"
MailBody = MailBody & WA_eCart_DisplayInfo(stickersBE, "Name")
MailBody = MailBody & "</td>" & vbCrlf & ""
Else
MailBody = MailBody & " <td valign=" & Chr(34) & "top" & Chr(34) & " align=" & Chr(34) & "left" & Chr(34) & " class=" & Chr(34) & "S3C_OrderLineItem" & Chr(34) & ">"
MailBody = MailBody & WA_eCart_DisplayInfo(stickersBE, "Name")
MailBody = MailBody & "</td>" & vbCrlf & ""
End If
I get the error : 'object required'
Maybe the error is caused due the string calculation (Right(...)) ? The error points to that codeline.