Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

James Barrett
James Barrett
13,253 Points

Magento - Calculate total price of cart depending on quantity

Hi guys,

This may be a long shot as Treehouse doesn't cover Magento, but I'll ask anyway...

I am trying to setup 3 different tier prices (all of which are in the same category):

0-5 products - £2.50 6-10 products - £5 11-20 products - £10

Note: Creating Tier pricing will not work, as I have numerous colors of these products. For example: Let's say I order 4 products from:

Product A (blue) Product B (green) Product C (black) ...Equalling 12 products.

The cart would need to adhere to the consumer purchasing '11-20 products', not '0-5 products' for each item. Therefore category tier pricing would not work in this instance.

Essentially, I am trying to create something like this: http://magento.stackexchange.com/questions/69260/want-to-apply-set-prices-based-on-quantity-in-cart-tier-prices-for-multiple-pro

However, it's going to be a little trickier to implement when I have ranges in the tier pricing.

How would I set this up using promotional rules?

Note: I have tried asking in magento.stackexchance and stackoverflow... However I have had no luck.

Thanks, James.