# Quantity Discount in eCart 5

Thread began 12/13/2010 11:52 am by marovios@yahoo.com | Last modified 12/29/2010 4:12 pm by marovios@yahoo.com | 1410 views | 8 replies |

## 12/13/2010 11:52 am  |  #1 marovios@yahoo.com

### Quantity Discount in eCart 5

Hello WA support people. I have tried to find an answer in the forum but had no lucky, that's why I'm posting this now.
I only have one product in my store that I need to sell. Key here is the quantity of items the buyer might purchase. So, I need to sell a product for \$15, but if they get more than one the price goes down to \$10 per product. Now the tricky part is that the first item would still need to be \$15 and the rest \$10. So, if they purchase 5 items, the final price would be \$15 + \$10 + \$10 + \$10 + \$10 = \$55
Any clue how to create the rule?
Thanks

## 12/13/2010 3:41 pm  |  #2 Ray BorduinWebAssist

You could just update the totalprice calculation from:

TotalPrice = [Price] * [Quantity]

to

TotalPrice = ([Price] * [Quantity]) - (5 * ([Quantity]-1))

Did this help? Tips are appreciated...

## 12/19/2010 7:40 pm  |  #3 marovios@yahoo.com

Hi Ray, thanks for your response, for some reason I couldn't access webassist forums and that's why I'm answering just now, sorry about that. I will give it a try and let you know. Thanks again.

## 12/19/2010 7:48 pm  |  #4 marovios@yahoo.com

Here again Ray, though it sounds that this is the right answer I still cannot get how to implement it. I'm not an expert but I can handle it if you explain me what are the values to select from the trigger and action drop down menus. Also, I noticed you used a fixed number, I know you were just following my example, but what should I use to allow for any quantity? It could be 4 or 13 items. Thanks again.

## 12/20/2010 10:26 am  |  #5 Ray BorduinWebAssist

This formula will work for any number of items.

Just open the eCart object and go to the calculations tab. Then select the TotalPrice calculation and copy and paste this as the value:

([Price] * [Quantity]) - (5 * ([Quantity]-1))

Did this help? Tips are appreciated...

## 12/21/2010 5:22 am  |  #6 marovios@yahoo.com

You are right, I just noticed that and should work perfect!!! I will try it right now, thanks again.

## 12/21/2010 5:35 am  |  #7 marovios@yahoo.com

Hey Ray,
I tried the formula and noticed a few things:
1) the discount is not being displayed as Discounts on the cart created by the display manager. In this case, even though the calculation can be done in the calculation tab, it is important that is shown as discount.
2) I added one more item to the products to sell, I told you first I only had one item, now I have two sorry, and I see that the calculation is messed up, is doing the discount on the first and seconds items at the same time or something weird.

I guess I will need to open a ticket to further look into this. Sorry.

## 12/21/2010 2:32 pm  |  #8 Ray BorduinWebAssist

Instead of updating TotalPrice, you can create a new column:

TotalOff = (5 * ([Quantity]-1)

Then you can create a discount rule to discount the total of the TotalOff column. Then it won't be updated in the cart total but will add as a discount below.

How do you want the second item to work? Does it have the same discounts? What if you bought one of each?

Did this help? Tips are appreciated...

## 12/29/2010 4:12 pm  |  #9 marovios@yahoo.com

Thanks Ray, I opened up a ticket and it's solved now.

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

## Everything else!

Close Window

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

Layout

Ease of use

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 Window

## We were unable to retrieve the attached file

Close Window

### Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

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