close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Coupon Discounts

Thread began 5/01/2014 3:25 pm by The Flying Fox | Last modified 5/08/2014 3:41 pm by The Flying Fox | 111 views | 2 replies

The Flying Fox

Coupon Discounts

Hi,

I hope you are all well.

I have a question on Ecart's Discount behaviors
I have been asked to set up a few discount codes for our online ticket store, this is no problem 10% to 25% completed quite easily

The one I'm struggling with setting up is a 'free' family ticket, we don't offer a complete family ticket (we always get asked what constitutes a 2/2 family) so it would be the combination of 2 products, I've set up the code as follows

function WAEC_CHG_Tickets_FamilyTicket() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ((isset($_SESSION['PromoCode'])?$_SESSION['PromoCode']:"") == "voucher code goes here") && (floatval($this->GetInfo("001-0003", "Quantity")) == 2) && (floatval($this->GetInfo("001-0004", "Quantity")) == 2))) {
$totalDiscount += ($this->TotalColumn("TotalPrice") * 1);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}

I have come across three issues

1) If I add another product from the requirement IE 3 of 001-0004 the discount is removed completely which is not what I want i would want the 3rd ticket to be paid for at full price.
2) If I add another product IE 001-0001 this also has the discount applied, which is wrong this also should be paid for.
3) If I try to checkout with a 0.00 balance I am transferred to the checkout failure page, I do believe you cannot check out on a zero amount..

Plus If they were free tickets would they need to go through PayPal checkout, I would want to record their details but nt sure how this would be achieved

Any help would be greatly appreciated

Thanks

Andy

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