close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Converting ColdFusion CFIF to PHP IF statement

Thread began 3/13/2009 10:10 am by grantr281040 | Last modified 4/02/2009 1:31 pm by grantr281040 | 13739 views | 26 replies


Converting ColdFusion CFIF to PHP IF statement

Hi there!

To stay with ecart I am switching my life from CFM to PHP. In my cart I have a coldfusion IF statement that displays a discount amount (or amount the customer has saved by buying more product) and if the client has not bought enough to qualify for a discount it displays "buy more and save" with a couple price break options.

The question is how do I convert my CFIF statement to PHP to achieve the same result.

Any help is appreciated.

Here is my current code....

<cfif WA_eCart_TotalColumn(CardCart, "TotalDiscount") GT 0>
<br />
<span class="style75 style64"><span class="style54 style76">Congratulations!!! Your Volume Discount <strong>Savings</strong> is... </span></span> <span class="style91">$<cfoutput>#LSCurrencyFormat(WA_eCart_TotalColumn(CardCart, "TotalDiscount"),'none')#</cfoutput>
<p class="style52 style64 style58"><strong><span class="style78">BUY MORE and SAVE</span><br />
<span class="style75"><span class="style76 style54">Increase your Quantity Now to 50 Cards and Pay Only</span> <span class="style91">$1.38 each </span><span class="style76 style54">!</span><br />
<span class="style76 style54">or get 100 Cards for Only</span> </span><span class="style91">$1.17 each </span><span class="style54 style76"><em>!</em></span></strong><br />
Discounts apply to same card purchases only. <br />
<span class="style81">(Change quantity and click on the &quot;Update Cart&quot; button)</span></p>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...