I just updated the previous message with this.
I also tried <?php echo $siteCart->RuleLooperName("Discounts"); ?> & <?php echo $siteCart->RuleLoopeValue("Discounts"); ?>
It put Flat Discount and nothing. The 2 rules I have are Flat Discount and Percent Discount. The transaction I did used a Percent Discount so that didn't even go in right. The discount type, amount and whether it is a percent or flat is pulled in from the database.
The discount name should have been DC050 representing 50% off.
I have 3 different discounts in the database and I tested all of them on the checkout page and on clicking the Apply Code button they do the proper discount on the page. Is there a way of grabbing the Promo Code Field and the Discount amount and put them in a hidden I can grab since the other way doesn't seem to work.
I created a workaround that seems to do the trick. On the shopping cart page I took the Promo Code and Promo Amount and created 2 session variables:
I trimmed the $ out of the result on the amount of the discount.
$_SESSION["PromoDiscount"] = trim(WA_eCart_DisplayMoney($siteCart, $siteCart->GetDiscounts()),"$"); ?>
I then stored these 2 in the Transaction Summary. I'm going to use this unless there is something fatally wrong with the way I'm doing it.
Also, when you checkout and the paypal and credit card form show up if you put in the wrong credit card number it gives you an error message which is great but the form area doesn't get bigger so the Pay button is out of view. I assume this is an iframe issue. Is there a way to make the window larger so that the Pay button doesn't disappear or have the iframe adjust to be larger to allow for the error message. I'm sending a screen capture so you can see what I mean. If the expire information is incorrect in gives you the checkout_fail.php shouldn't there be an error message for this also?