Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ IF STATEMENT IN EMAIL html

Posted by: rickyricky23 Dec 21 2016, 10:27 AM

I need some help. Below is the html for the order confirmation email a customer receives. What I need help on is putting in an IF statement so that IF the order grand total is over $1,000 then it will show in big lettering saying " ORDER PENDING" below the checkmark. IF the order is less than $1000 then it will not show the ORDER PENDING lettering. html below and picture attached


<html>
<table style="table-layout:fixed;">
<tr>
<td colspan="2" style="text-align:center;">
[% logo_image %]
</td>
</tr>
<tr>
<td>
<a
rel="nofollow"
style="text-decoration:none;color:#009AF8;font-size:200%;font-family:Helvetica, sans-serif, monospaced;font-weight:bold;font-size:26px;">[% catalog_name %]</a>
</td>
<td

style="padding-left:20px;padding-right:20px;font-family:Helvetica, sans-serif, monospaced;color:#333333;font-size:20px;text-align:right;">
Order Confirmation
</td>
</tr>
<tr>
<td

colspan="2" style="text-align:center;font-family:Helvetica, sans-serif, monospaced;border-bottom:1px solid #ccc;">

<div

style="color:green;font-size:36px;text-align:center;border-radius:50px;border:5px solid green;width:50px;height:50px;margin:auto;"> &#x2714; </div>

<span

style="font-size:24px;color:#333333;">Thank you for your order, [% bill-firstname %].</span><p

style="margin-bottom:1em;"></p><p style="margin-bottom:1em;"></p>
<span

style="color:#333333;padding:30px;text-align:center;font-size:14px;">This email confirms the receipt of your recent order with us. Please Note: If your order total is over $1000 we will not ship until you obtain and provide us a purchase order number. Please call 713-357-6295 or email vivar@ecolo.com
</span>
</tr>
<tr
style="padding-left:20px;padding-right:20px;font-family:sans-serif, monospaced;color:#333333;font-size:110%;">
<td

colspan="2" style="font-family:Helvetica, sans-serif, monospaced;font-size:16px;">
<p

style="margin-bottom:1em;"></p>
<b>Order #[% order_number %]</b><p style="margin-bottom:1em;"></p>
<span

style="font-size:12px;">[% display_date %]</span>
<p style="margin-bottom:1em;"></p>

[% items_table_no_opts %]

<p

style="margin-bottom:1em;"></p>
</td>
</tr>
<tr>
<td style="border-top:1px solid #ccc;overflow:hidden;font-family:sans-serif, monospaced;padding:20px;vertical-align:text-top;">
<p

style="margin-bottom:1em;"></p>
<span style="color:#333333;font-weight:bold;">SHIPS TO</span><p

style="margin-bottom:1em;"></p>
[% shipto_box %]
</td>
<td style="border-top:1px solid #ccc;overflow:hidden;font-family:sans-serif, monospaced;padding:20px;vertical-align:text-top;">
<span

style="color:#333333;font-weight:bold;">BILL TO</span><p style="margin-bottom:1em;"></p>
[% billto_box %]
<p

style="margin-bottom:1em;"></p>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:#f9f9f9;color:#333333;text-align:center;padding:5px;font-family:sans-serif, monospaced;">
<p

style="margin-bottom:1em;"></p>
[% catalog_name %]<br>
<a rel="nofollow"
target="_blank"
href="http://[% domain_name %]/privacypolicy.html"
style="text-decoration:none;"></a> <a
rel="nofollow"
target="_blank" href="http://[% domain_name %]/contactus.html" style="text-decoration:none;"></a>
</td>
</tr>
</table>

</html>


Attached thumbnail(s)
Attached Image

Posted by: pandy Dec 21 2016, 11:50 AM

Is this a template that creates the email or is it the actual email itself? You have things in there like [% logo_image %]. What language is that?


Posted by: rickyricky23 Dec 21 2016, 12:32 PM

QUOTE(pandy @ Dec 21 2016, 12:50 PM) *

Is this a template that creates the email or is it the actual email itself? You have things in there like [% logo_image %]. What language is that?



it's an Confirmation Email HTML Template from Aabaco Yahoo Small Business's Merchant Hosting/online store.

Posted by: pandy Dec 21 2016, 01:14 PM

So what language?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)