The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> IF STATEMENT IN EMAIL html
rickyricky23
post Dec 21 2016, 10:27 AM
Post #1





Group: Members
Posts: 3
Joined: 21-December 16
Member No.: 24,980



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>

This post has been edited by rickyricky23: Dec 21 2016, 10:27 AM


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 21 2016, 11:50 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rickyricky23
post Dec 21 2016, 12:32 PM
Post #3





Group: Members
Posts: 3
Joined: 21-December 16
Member No.: 24,980



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 21 2016, 01:14 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



So what language?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th April 2024 - 08:56 PM