Discounts module based on workflow-ng

Posts: 99
Joined: 08/08/2007
Bug FinderGetting busy with the Ubercode.Not Kulvik

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!

AttachmentSize
uc_discounts.tar.gz6.12 KB
Posts: 40
Joined: 07/23/2008

Hi japerry,
It's been about a year since your post. Have you updated your discount module to work with the latest uber-core, and has anyone else been trying it out?
Thanks!