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?