Posted by GregoryHeller on May 25, 2007 at 9:14pm
Is there a way to set variable pricing for volume discounts?
IE 1-10 widgets costs $5 each
10 to 25 cost $4 each
25 to 100 cost $3 each
Is there a way to set variable pricing for volume discounts?
IE 1-10 widgets costs $5 each
10 to 25 cost $4 each
25 to 100 cost $3 each
Comments
Is Flexicharge only vor ecommerce v 3?
Is flexicharge only for ecommerce version 3?
http://drupal.org/node/122769
it looks like it will do everything I need
http://www.CivicActions.com
http://www.GregoryHeller.com
http://GregoryHeller.com
So i think that i have
So i think that i have detected a problem or limitation of flexicharge:
My use case is 1 of something costs $20, 10 or more cost 15 each.
It seems to me like this is pretty common functionality, but in flexicharge the process of implementing involves creating new product types for each product that would have a discount.
I'm selling widgets, and one kind of widget has a discount if you buy 10 or more, while another doesn't. So the two widgets, though actually the same type of thing in the real world have to have two different product types in order for the discount to only be calculated on one kind of widget.
Shouldn't a flexi charge be able to apply either to the entire cart, to a specific product type, or to a specific product? Are there plans to go in that direction?
http://www.CivicActions.com
http://www.GregoryHeller.com
http://GregoryHeller.com
Hi Greg
I've never been happy with flexicharge...
Here's what I would do:
In hook_productapi, for the case 'adjust price':
<?php
case 'adjust_price':
$cart = cart_get_items();
$count = 0;
foreach ($cart as $nid => $stuff) {
if ($stuff->ptype == 'discountproducttype') {
$count++;
}
}
if ($count <= 10) {
$new_price = $node->price - 5;
return $new_price;
}
?>
There's more info in the api docs, but this should give you the idea. (I know it's probably not the most elegant solution, but it's worked for two semi-large sporting event sites I've worked on)...