close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dicount Voucher Help

Thread began 6/07/2010 8:55 am by Suggs | Last modified 6/08/2010 3:16 pm by CraigR | 1938 views | 7 replies |

Suggs

Dicount Voucher Help

Hi Folks,

Im trying to achieve the following:
I need to create a discount code, (08444) that when entered at the cart gives customers £25 off for every £500 they spend.

This is for selected customers who we are mailing to, hence we dont want it avalable to everyone and want it via the discount code.

Any help will be greatly appreciated.

Cheers

Paul

Sign in to reply to this post

Eric Mittman

On the eCart support page on the right side there is a link to archived documentation. If you click on this link to bring up the archived documentation you will see a section titled:

Solution Recipes (eCart 4)

In here is the solution recipe for coupons, it is titled:

Creating a Coupon system for your eCart store (Interactive Tutorial)
Printable Version (PDF)

This is the documentation that we have for adding a coupon code to your store. Please give this a try and let us know if you have any questions.

Sign in to reply to this post

Suggs

Hi Eric,
Thanks for this.
Ive already checked this out and just need help with the math,
I need to know how to work out the formula for every full £500 spent a discount of £25 is applied as long as they enter the cupon code.
So if they spent £500 and entered the cupon code, a £25 discount would apply,
£600 a £25 discount would apply, £1000, a £50 discount would apply..so its only on each full £500 thats spent.

Cheers

Paul

Sign in to reply to this post

CraigRBeta Tester

Hi Paul.

There may well be a neater solution than this, but i have got it to work, (still using ecart4)

(i will link to this thread in case a better solution comes along)

Assuming you have a session variable being triggered correctly...

in the discounts tab, create a discount rule called £25 off £500+ or something

in the triggers,
Conditions should be session varaible SESSIONNAME == code

AND SubTotal of items >=500
AND SubTotal of items <1000

Flat rate discount of £25

create a second discount rule called £50 off £1000+ or something

in the triggers,
Conditions should be session varaible SESSIONNAME == code

AND SubTotal of items >=1000
AND SubTotal of items <1500

Flat rate discount of £50

etc.

if the threshold of £1000 is reached, the first trigger will not fire, so discounts are not duplicated.

The thing I don't like about this approach is, if you get a huge order, you have to put sufficient rules in to account for this

hope this helps

Sign in to reply to this post

Jason ByrnesWebAssist

Here is a neater solution:

On the calculations tab, create a new calculation:
Name: every500
type: number
Calculation: floor(([Price] * [Quantity])/500) * 25


then on the discount, set the trigger as outlined in the Coupon code recipe, and set the calculation to "based on Column Subtotal":
Subtotal of column 'every500' 'plus' '0'

Sign in to reply to this post

CraigRBeta Tester

I knew it!

:-)

Sign in to reply to this post

Jason ByrnesWebAssist

actually, that wont work quite right, but this will:

don't create the calculation on the calculation tab.

Instead, do the math inside the discount.


Set the discount rule up with the trigger from the tutorial

In the calculation section, set it to a flat rate and add the following code for the flat rate:

php:
floor($this->TotalColumn('TotalPrice')/500)*25
Sign in to reply to this post

CraigRBeta Tester

i didn't think to add code into the calculation field

that works!

Sign in to reply to this post

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