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 discounts based on quantity and adding free items to cart based on total

Thread began 8/14/2009 1:36 pm by larisse148343 | Last modified 8/17/2009 12:12 pm by Jason Byrnes | 827 views | 1 replies |


Price discounts based on quantity and adding free items to cart based on total

I am trying to create a shopping cart in which if a certain number of items are added of the same item, the price reduces for that item. Can this be done and how? Also, I need to be able to add a free item to the cart automatically if the final total (before the shipping and any tax) equals a certain amount. At this time, I am using PayPal standards shopping cart, but it does not provide a viable solution for these two scenarios. Any help would be greatly appreciated.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

In the Downloads Center for eCart there is a section titled eCommerce Recipes. The eCommerce recipe PDF File contains a recipe for quantity discounts which will explain how this is done.

For offering a free item, you will have to write custom code for this.

You really shouldn't add the item to the cart itself for a number of reasons. If the cart is updated, you may want to remove it. the customer would also be able to edit the quantity for a couple of examples.

You could write an If statement to show it in the cart based on the order total.

Then add an Insert record behavior to the checkout process to store a record in the order details table for the free item. you would need to hand code the if statement for the Insert record behavior to happen only if the order total met your criteria.

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





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