# Minimum Price & reduction higher quantity

Thread began 9/30/2011 1:43 pm by PimpMyInternet | Last modified 9/30/2011 2:13 pm by Jason Byrnes | 682 views | 1 replies |

## 9/30/2011 1:43 pm  |  #1 PimpMyInternet

### Minimum Price & reduction higher quantity

Hi,

I'm sorry if this has been covered somewhere else, but I need to know two different, but related things..

1) Can I can reduce the price of an item when someone buy more?..

i.e.

I want to set-up a cart on a wholesale clothing website where if they buy 25x hoodies the price is £25 each, however if they buy 100x of the same hoodies the price automatically reduces to £22 each... how can I do this?..

Also..

As part of the same cart (for the same hoodies) I also need to set up a minimum order, but still need to allow the customer to be able to chose how many they order...

i.e.

They need to be able to order 72x hoodies (or any random number) if they wish, BUT they CAN NOT order any less than 25x Hoodies..

How can I do this as well?..

(Sorry if these questions are dumb, i've not used ecart before!)

## 9/30/2011 2:13 pm  |  #2 Jason ByrnesWebAssist

yes, these things are possible, but a little more information is needed.

Does this apply to hoodies as a catagory? or to a particular hoodie product?

if it applies to the category, you need to add a column to the eCart object for item category to mark each item for the category it belongs to.

Then you could create a discount using the trigger:
Number of items with a specific column value

to trigger on the number of items where category is = to hoodies

in your example, the discount will be £3 each (£25 - £22), so set the calculation section of the discount to use "Based on items with a specific value:
Total of "quantity" where "catagory" has a value of "hoodie" "times" "3"

to force a minimum, you would need to do some hand coding, you would need to add an if statemetn around the checkout button on the cart display page, something like:

php:
``````<?php if(\$this->ConditionalTotal("Quantity", "category", "hoodies") >= "25") { ?>
checkout button here
<?php } ?>``````

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

Account or customer service questions?

Need technical support?

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