So I'm looking at all the old discounts modules and ideas... and got to thinking, isn't discounts just like taxes except backwards?
I basically took the taxes module, ripped out taxable products and line items, and made it into a discount module based on workflow-ng. This works great for us because we need to give discounts based on user roles.
Give it a shot, oh and add the following code to payment.module, after line 12 (uc_taxes.js)
/* add discounts */
if (module_exists('uc_discounts')) {
drupal_add_js('var discount_weight = '. variable_get('uc_li_discount_weight', 9), 'inline');
drupal_add_js(drupal_get_path('module', 'uc_discounts') .'/uc_discounts.js');
}
you can now create discounts just like tax rules!
| Attachment | Size |
|---|---|
| uc_discounts.tar.gz | 6.12 KB |



Joined: 08/08/2007