VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: bryan.teague on June 03, 2012, 18:13:37 PM

Title: Quantity related Price Calculations
Post by: bryan.teague on June 03, 2012, 18:13:37 PM
Hi, 

Here is what I want to do: 

I need to do a Buy 4 get the fifth one free. 
units 1-4 --  no discount. 
So, if someone puts 5-9 of the item - they should get a discount of $21.95  (the price of 1 item) 

If someone orders 10-14, they should get a discount of $43.90 

It is a $21.95 discount for each group of 5 they purchase:

I have tried the following: 

Type of arithmetic operation:  Price modifier before tax per bill
math operation: -
Value 21.95

Amount condition %5

When set like this the following happens:

The same thing happens when I set the amount condition to =%5 and set the minimum quantity to 5.

If I set the system to use the min / max / overwrite value table instead of the amount condition,  I still get exactly the same result. 

amount condition blank   

min: 5  max: 9 override: 0
min: 10 max: 14:  override: 43.90

What am I doing wrong? 

Any help is greatly appreciated.

Thanks,
Bryan

Title: Re: Quantity related Price Calculations
Post by: Milbo on June 04, 2012, 13:52:19 PM
Quote from: bryan.teague on June 03, 2012, 18:13:37 PM
Amount condition %5

When set like this the following happens:

  • Quantity of 1 works correctly.
  • Quantity of 2 gives me the discount -- not working correclty!
  • quantity of 3  gives me the discount -- not working correclty!
  • quantity of 4  gives me the discount -- not working correclty!
  • quantity of 5  gives me the discount -- working correclty!
  • quantity of 10 gives me a discount, but should be $43.90, not $21.95

Hmm this is strange, it should only give disocunt for 5,10,15,20, and so on.

Quote from: bryan.teague on June 03, 2012, 18:13:37 PM
So, if someone puts 5-9 of the item - they should get a discount of $21.95  (the price of 1 item) 
If someone orders 10-14, they should get a discount of $43.90 

Funny is that you describe here already exactly the table you need. Leave amount condition empty,

Make a table min 5, max 9, overwrite value 21.95
min10, max 14, overwrite value 43.90

Okey, I admit, not a nice solution, but it works. When the shopper is buying higher amounts it makes imho more sense to use then another discount method. Because at the end it is a discount of 20%. And the marketing effect is for the customer interesting for the first 4. Maybe the first 10 (regarding 9).
Title: Re: Quantity related Price Calculations
Post by: bryan.teague on June 05, 2012, 22:59:42 PM
I tried as you suggested and still no luck, the site is using Joomla 1.5.23 with VM 2.0.6 with version 2.0.2 of the plug-in.  Do you have any other suggestions?

Thank you,
Bryan
Title: Re: Quantity related Price Calculations
Post by: razor7 on September 26, 2012, 22:37:00 PM
Hi, wich plugin is this?, I need to do some product quantity discounts.

Thanks in advise!
Title: Re: Quantity related Price Calculations
Post by: d0ublezer0 on October 02, 2012, 19:10:33 PM
Hi!
I would like to buy this plugin, but I did not understand from the description whether this:
I have three price levels for each product, depending on the ordered quantity.
These prices are set by hand and can not be calculated as a percentage of the base price.
The question is: is it possible to set the price for each item individually with a dependency on order quantity?