Page 1 of 1

Quantity Breakdown mod

Posted: Wed Feb 10, 2010 10:33 pm
by s-creative
Hello

Interested in a custom mod. This will be a popular one, especially for the entire apparel industry, and countless other applications.

Quantity Breakdown

Instead of the regular quantity input box on the product page, allow the user to breakdown quantity by option value, similar to the concept of the picture below.

Image

Please help.

Re: Quantity Breakdown mod

Posted: Wed Feb 10, 2010 11:26 pm
by Qphoria
It's been requested before as well. The existing cart class was never designed to take multiple quantities of options at once, so there would need to be some significant changes to the cart system for that. I will try to take a look when I have time to see how it can be done.

Re: Quantity Breakdown mod

Posted: Thu Feb 11, 2010 12:39 am
by kodeplay
Hi ,

Yes this could be a useful mod.
we can make a few changes to the db and customise the related classes to complete this one

Feel free to discuss , the details

Thanks and regards

Karan Ahuja,

www.kodeplay.com

Re: Quantity Breakdown mod

Posted: Mon Mar 28, 2011 7:44 am
by jonle28
Qphoria wrote:It's been requested before as well. The existing cart class was never designed to take multiple quantities of options at once, so there would need to be some significant changes to the cart system for that. I will try to take a look when I have time to see how it can be done.
Have you had a chance to look at this?

Re: Quantity Breakdown mod

Posted: Tue Mar 29, 2011 3:23 pm
by jonle28
Well this is what I have so far!

Still to be done.....
How to send each row its own option array and quantity. (I know many people have tried)
Add javascript to alter the prices based upon Option (sort_order) 1 being selected
Calculate each price separate from one another.

Anyone know how to add? Since it has '$' it won't add like a normal math problem. The variables are defined as

Code: Select all

$discount['price'] = $5.25
$option_value['price'] = $3.50
Image

Re: Quantity Breakdown mod

Posted: Wed Mar 30, 2011 3:22 pm
by screenager8
I'm waiting for this mod too.

Re: Quantity Breakdown mod

Posted: Tue Apr 19, 2011 1:52 am
by jonle28
I am almost done

Still to be done.....
Add JS to alter the prices based upon the first option being selected.
Add JS to change the picture based upon the first option.

Image

Image