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

Getting excited!!

Thread began 1/12/2011 8:29 pm by kim420431 | Last modified 1/19/2011 10:03 am by kim420431 | 1376 views | 9 replies

kim420431

More about email invoice and coupon code

Ray,

I really need some help here! I used the line of code you furnished (which I believe has a closing bracket issue that I corrected) but can't get it to work. I've even commented out the actual code to fetch the Coupon_ID and just tried to use the simple php statement used earlier in the receipt code to check for discounts and if I put the following block of code into the receipt.php code I don't even get an email confirmation of the purchase. Can you look at the code and tell me what's preventing it from actually mailing the invoice confirmation?

<?php // THIS IS A SECTION OF CUSTOMIZATION CODE TO INSERT A COUPON CODE DECLARATION IN THE EMAIL RECEIPT ?>
<?php if ($WA_Store_Cart->GetDiscounts() > 0) { //Begin Show Region ?>
<h3 style="font-size:medium; color:#3476a3; /* Accent10 */ margin:9px 0 3px 0;" >Coupon Redemption Code</h3>
<div style="border-top:solid 7px #3476a3; /* Accent11 */ background-color:#f0f0f0; /* BG_Light */" >
<p > <strong >Coupon Code:</strong> <?php // echo((isset($_SESSION['WA_Ecart_Coupon_ID']))?$_SESSION['WA_Ecart_Coupon_ID']:""); ?>
</div>

<?php // THIS ENDS THE SECTION OF CUTOMIZATION CODE TO INSERT A COUPON CODE DECLARATION ?>

This was placed before the <?php if(!WA_Auth_RulePasses( line of code.

I've actually commented out the code that echo's the coupon_ID and just checking on if the GetDiscount() function is > 0 which I know it is and then just writing out an html div with a heading and text and can't get it to execute and mail the invoice. What am i doing wrong?

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

Content

rating

Layout

rating

Ease of use

rating

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...