2 replies [Last post]
bmagistro's picture
Offline
Getting busy with the Ubercode.
Joined: 09/24/2007
Juice: 199
Was this information Helpful?

Hello,

I am finally making some time to fix a bug in the userpoints integration module with discounts. I would like discounts to be a line item, but have not figured out how to add/update it on the checkout page. I have been looking at the api docs and have a fairly good understanding of the hook needed, I am guessing I just need to write the appropriate js and add it with drupal_add_js?

Thanks in advance

mikejoconnor's picture
Offline
AdministratorBug FinderGetting busy with the Ubercode.
Joined: 08/07/2007
Juice: 536
Re: Line Item Discounts

Zmove has done this with the Improved Coupon module. He uses some nice javascript. I would start by looking @ his code.

bmagistro's picture
Offline
Getting busy with the Ubercode.
Joined: 09/24/2007
Juice: 199
Re: Re: Line Item Discounts

Thanks for the reply, I did look at his code, he uses a button. My goal was to avoid that if possible, but I guess I can use one. And when I use the back button and submit it with a blank line for coupon it doesn't remove it from my order in his code.