Quantity discount for products condition only displayed = and != therefore discount was only applied if you purchased the exact quantity. Changing the compare_type to integer shows more options including >=. Now we can have the discount applied when someone orders the configured quantity or greater. Wondering if this is the proper fix.
Index: uc_discounts_product.module
===================================================================
RCS file: sites/all/modules/uc_discounts/discounts/uc_discounts_product.module,v
retrieving revision 1.1
diff -u -r1.1 uc_discounts_product.module
--- uc_discounts_product.module 6 Nov 2008 16:36:36 -0000 1.1
+++ uc_discounts_product.module 6 Nov 2008 16:36:55 -0000
@@ -9,7 +9,7 @@
$conditions[] = array(
'property' => 'product',
'description' => t('Product'),
- 'compare_type' => 'text',
+ 'compare_type' => 'integer',
'check_callback' => 'uc_discounts_product_check',
'count_callback' => 'uc_discounts_product_count',
'item_name_callback' => 'uc_discounts_product_item_name',
Comments
Comment #1
zmove commentedHi,
I belived the comparaison type was for the product name, that's why I changed it, after tests it's for quantity, you are true.
Will be commited.
Comment #2
zmove commentedcommitted for 6.x branch