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

Price Not Being Passed Correctly To Shopping Cart.

Thread began 5/23/2014 3:05 pm by bill173836 | Last modified 6/05/2014 11:38 am by bill173836 | 2301 views | 25 replies


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:

<?php session_start();
$_SESSION['PromoCode']; ?>

I trimmed the $ out of the result on the amount of the discount.
<?php session_start();
$_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?

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