Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Attribute discounts not showing up when purchasing mixed items

Attribute discounts not showing up when purchasing mixed items

Locked

Views: 2,732

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
29 Jan 2008, 6:36 PM
#1
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Attribute discounts not showing up when purchasing mixed items

PLEASE! Can someone help me!

I sell miniature Beanbag Chairs for 1" scale dollhouses. They come in many different colors.

I went in to each product (color), and made it so if a customer buys:
1-2 cost=$9.25ea......3-6 cost=$8.25ea.....7-10 cost=$7.25ea...11 or more cost=$6.25 ea.

Upon my testing, I purchased 2 of three different colors, and the price came out to $9.25 ea. for a total of $27.75, when it SHOULD HAVE BEEN $8.25 ea. for a total cost of $24.75.

How do I fix this? When I set the discounts, I went to:

admin/catalog/products price manager

There was a drop down box that says, "Beanbag Chairs". I went to one color chair at a time and set up each color as so:

Discount Qty Applies to Mixed Attributes   Yes   No 
Preview Only ... Current Price Status ... Preview Only  
 
Product Discount Info  Discount Type: NonePercentageActual PriceAmount off  Discount Priced from: PriceSpecial  
Discount Levels Minimum Qty Discount Value Calculate Price: Extended Price: 
Discount 1   $9.25 x 1 = $9.25 
Discount 2   $8.25 x 3 = $24.75 
Discount 3   $7.25 x 7 = $50.75 
Discount 4   $6.25 x 11 = $68.75 

I must be missing something? :frusty:

Thanks for your help in advance!

29 Jan 2008, 7:42 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

I THINK you need to adjust a setting in attributes which applies the discounts to the attributes...

29 Jan 2008, 7:54 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Attribute discounts not showing up when purchasing mixed items

Is this the same issue as was reported here ... ?:
http://www.zen-cart.com/forum/showthread.php?t=84061

29 Jan 2008, 8:07 PM
#4
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Thank you Dr. Byte!

I saw that post:

but it didn't work.

 
/includes/classes/shopping_cart.php
at lines 1401 and 1435 you have code that looks like this: 
Code:
    // reset($this->contents); // breaks cart    $check_contents = $this->contents;    while (list($products_id, ) = each($check_contents)) {
add an extra line in both places, making it look like this: 
Code:
    // reset($this->contents); // breaks cart    $check_contents = $this->contents;    reset($check_contents);    while (list($products_id, ) = each($check_contents)) {
I THINK you need to adjust a setting in attributes which applies the discounts to the attributes... 
``` FROM SCHOOLBOY
 
Schoolboy: Do you know what the setting is I would adjust? or how to get there? (sorry, I need hand holding...I'm still wet behind the ears!):wacko:
30 Jan 2008, 12:29 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

After you've linked through to the ATTRIBUTES CONTROLLER screen of the product in question, scroll down until you find an insert field titled:-

Attributes Qty Price Discount:

Then, you insert the PARAMETERS that govern the quantity discounts for THAT SPECIFIC attribute, against THAT product.

Here's a post from someone who had a similar issue and found the solution.

2 Feb 2008, 8:15 PM
#6
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Hey...I'm sorry...I went to admin/catalog/attributes controller and didn't see anything in there called "attributes Qty Price Discount"...did I go to the wrong spot? :blush:

4 Feb 2008, 9:47 PM
#7
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

CAN ANYONE PLEASE HELP? This is crazy! :eek:

5 Feb 2008, 4:01 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Attribute discounts not showing up when purchasing mixed items

Have you an URL to this Product that we could peek at to perhaps see what's up? :smile:

5 Feb 2008, 4:38 AM
#9
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

5 Feb 2008, 4:53 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Attribute discounts not showing up when purchasing mixed items

Help me out here ...

Which products_id is not working right on the Discounts? :blink:

5 Feb 2008, 5:20 AM
#11
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Ok...I have it set up so if you buy 1-2 beanbags the price is: $9.25 ea.
3-6 beanbags is: $8.25 ea., 7-10 beanbags is: $7.25, and 11 or more is: $6.25 ea.

My goal is to be able to mix different colors and get the discount as follows:

2 yellow and 2 blue equals: $8.25 ea. for a total of $33.00

Discount 1 $9.25 x 1 = $9.25
Discount 2 $8.25 x 3 = $24.75
Discount 3 $7.25 x 7 = $50.75
Discount 4 $6.25 x 11 = $68.75

6 Feb 2008, 7:09 AM
#12
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Did you figure out anything?

6 Feb 2008, 8:06 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Attribute discounts not showing up when purchasing mixed items

Are you trying to take multiple Products and apply discounts?

Or are trying to apply discounts to individual Products based on quantity?

If the Discounts are the same Product, that is built in and what I see on some of your Products ...

If you are trying to do this on multiple Products to make the quantities to be discounted there is an add-on that perhaps can help you on this ...

6 Feb 2008, 8:30 AM
#14
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

If you are trying to do this on multiple Products to make the quantities to be discounted there is an add-on that perhaps can help you on this ...

Yes...I want to give them a discount if they buy for example:

2 yellow beanbags and 2 blue beanbags

because if they buy 3 - 6 beanbags, they should get a discount....the trick here is to be able to mix colors and get the discount. Right now it is not letting you mix colors. It only gives the discount for one color at a time.

What is the add on you are talking about?

6 Feb 2008, 8:37 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Attribute discounts not showing up when purchasing mixed items

I know it exists ... but I forgot the name of it ...

Perhaps someone could jump in here and lend a hand?!

6 Feb 2008, 7:14 PM
#16
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Thanks Ajeh! Does anyone know the answer to this?

20 Feb 2008, 5:49 PM
#17
hypnos avatar

hypnos

New Zenner

Join Date:
Dec 2007
Location:
Texas
Posts:
16
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

Anyone find out the name of the contrib. that would handle this function?

20 Feb 2008, 6:38 PM
#18
debtag avatar

debtag

Zen Follower

Join Date:
Sep 2006
Location:
Oregon
Posts:
207
Plugin Contributions:
0

Re: Attribute discounts not showing up when purchasing mixed items

For my situation, the QUANTITY DISCOUNTS mod was exactly what I needed! SWGUY (his website below where you can find the download for Quantitiy Discounts) might be able to be of more help to you if you have more questions. Good luck!

http://www.thatsoftwareguy.com/zencart_quantity_discounts.html