close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Coupon - "Free Shipping" or "Free Item"

Thread began 6/28/2009 12:06 pm by digitaldesign | Last modified 6/30/2009 7:09 am by digitaldesign | 1293 views | 2 replies |

digitaldesign

Coupon - "Free Shipping" or "Free Item"

Question on how to make a dynamic discount code/coupon section that will let the buyer have a free widget with any purchase over $25. Another scenario may be a free yadget when buying item A and item B and it's before July 31.

It will need to be dynamic (PHP MySQL) from a "promotions" table.

Are these types of promotions too complex for the eCart system or can the discounts be applied dynamically?

Thanks!
Monica K

Sign in to reply to this post

bjgarner241692

I can't give you the PHP code straight up but I've done this in ASP.

Create a table in your db with Coupon Codes and Values.

Insert a field on your checkout page for Coupon Code.

Create a discount in the eCart that applies only if the Coupon Code matches one in the db.

ie: if Coupon Code matches, then do Discount Calculation

Sign in to reply to this post

digitaldesign

That sounds simple enough. Just a set of Boolean logic. I'll give it a go!
Thanks much!

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