Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Price by attributes - quantity discount and minimum quantity required

Price by attributes - quantity discount and minimum quantity required

Locked

Views: 10,418

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
23 Aug 2008, 3:08 AM
#1
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Price by attributes - quantity discount and minimum quantity required

Hi all,

I have a product with two attributes and quantity discounts set as follows:
24:2.47,96:1.95,192:1.80
in the Attribute QTY Price discount.
Both attributes have the same quantity discount and the option Mixed attributes is turned off.
I set a minimum quantity of 24 for the product. This is how it displays the table for quantity discounts:
1-24: $2.47
25-96: $1.95
97+: $1.80

The problem is that since I require a minimum quantity for the product the table shows a quantity from 1-24, etc.

I would like that to appear as:
24-95: 2.47
96-192: 1.95
192+: 1.80.

But it starts from 1.

Any solutions?

Thanks!

23 Aug 2008, 3:11 AM
#2
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

Base price is set as zero.

25 Aug 2008, 12:20 PM
#3
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

I am sure it can be done, but I guess it's not that obvious. Any suggestions?

26 Aug 2008, 6:16 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Price by attributes - quantity discount and minimum quantity required

Is there only 1 attribute with discounts or are there multiple attributes with separate discounts on them for the Product?

Have you an URL where we can peek at this?

26 Aug 2008, 9:27 PM
#5
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

Hello,

I am so happy you answered. I'm in Ohio as well.

I have an url, but since it's a live website, I don't want people to see the product until it's fully implemented.
Basically, as you see in the picture attached, there is a product with two options - you can either choose for the bride model or the groom model. There is the same discount for both the attributes; however, the units cannot be mixed to get the quantity discount. For instance, you either order 24 for the bride model, and get that price, or order 96 "brides" and get the other price. Cannot mix bride+groom=96 units.
The minimum quantity has to be 24 for each.
The table that you see under the description is entered using the product quantity discount - this is usually what I do for other products that don't have attributes. And this is how the discount table should look like. However, if I use this, the only price that prevails is the highest one. This is the first picture (zencart.jpg)

If I edit the attribute in the Attributes Qty Discount I get the other table, that I also attached in the picture. But the quantity is just wrong; the minimum quantity is not enforced and instead the price for 24-95, 96-191 and 192+ I get something else, as you can see.
This is the second picture, table.jpg
I only had a product before that had two options, but I solved it by selling the product as a set of two. But maybe people would want to order more of the same model. And, there are some other products that I would like to add, but I have the same problem.

I hope there's a solution to this, but I don't see it.

26 Aug 2008, 9:31 PM
#6
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

If you want, I can make the product live after 6 PM in Ohio until 11:30-12AM.
The customers are in a different time zone, and they don't browse that much during this time window.

27 Aug 2008, 5:23 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Price by attributes - quantity discount and minimum quantity required

You would need to customize the file:
/includes/templates/template_default/popup_attributes_qty_prices/tpl_main_page.php

so that instead of starting with quantity 1 it starts with the minimum quantity allowed ...

27 Aug 2008, 5:09 PM
#8
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

Thanks for the help!

I thought about something that needs to be customized but I did not know where to look.

That's great :clap:

27 Aug 2008, 5:51 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Price by attributes - quantity discount and minimum quantity required

Let us know how you do on this ... :smile:

27 Aug 2008, 9:23 PM
#10
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

I'll be back; I have to ask my husband to look into the code. I love zencart for it's easiness to use, but when it comes to the code..

4 Sep 2008, 6:37 PM
#11
josefine avatar

josefine

New Zenner

Join Date:
Aug 2008
Posts:
16
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

product priced by attributes:no
mixed:off
and Discount Qty Applies to Mixed Attributes: no

That is the solution, no need to change the code, just set "no" as the above. It works;)

4 Sep 2008, 6:47 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Price by attributes - quantity discount and minimum quantity required

Thanks for posting the update on the settings that worked for you ... :smile:

24 Sep 2009, 1:58 PM
#13
redbaronuk avatar

redbaronuk

New Zenner

Join Date:
May 2009
Posts:
11
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

Just a quick add-on to this having spent two days trying to work out how the hell all the options work.

I could not see the attributes/mixed option mentioned anywhere so perhaps that has gone in later updates. My solution was simply to make the fist range have a discount of zero ie

10:0.00, 20:-2.50, 30:-3.00 etc

Note that despite it being marked as a price discount without the minus sign it actually adds the figure! Confusing, as sticking a minus in some of the other boxes like that does not work.

Version 1.3.7.1 btw.

24 Sep 2009, 3:28 PM
#14
redbaronuk avatar

redbaronuk

New Zenner

Join Date:
May 2009
Posts:
11
Plugin Contributions:
0

Re: Price by attributes - quantity discount and minimum quantity required

redbaronuk:

.

I could not see the attributes/mixed option mentioned anywhere so perhaps that has gone in later updates.

Just realised it is in Catalogue | Products price manager

24 Sep 2009, 6:28 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Price by attributes - quantity discount and minimum quantity required

The Mix option is also on the Add/Edit of the Product itself ...