I really like the simplicity of this module, I just can't get it to work.
I'm using Drupal 6.15 and kept modules to a bear minimum. Installation was fine, the 'Discount' displays and is easy to use, but nothing happens. No discount is applied. I've tried it several times with lots of different combinations, checked it in the shopping cart and at checkout but I can't get it to apply the discount.
Thanks,
Rob
Comments
Comment #1
roblav commentedComment #2
freelockI have the same result -- discount is not shown on product, not shown in cart, shown in checkout, not applied on checkout review screen or actual transaction. ???
Comment #3
jeremydvt commentedI'm having much the same problem as in the comment above.
I see the correct discount on the checkout page (in the payment method box) but it is not displayed on the review page, nor applied to the final amount that the user pays.
Happy to help with further info if it helps.
If it changes anything i am using discounts in conjunction with a signup enabled product.
Comment #4
emptyvoid commentedI would agree without the discount actually getting applied this module is virtually useless.. I
It would appear that most of the hooks to modify the cart_item and the theme displays are missing from this module to make it actually work. The module doesn't have the "hook_order" function which would be used to modify the order and actually save the discount when completing the order.
I really like the interface for this as it is very user friendly compared to the other modules for discounts. But sadly not applying the discounts to actual products make it useless.
Drupal 6.16
Ubercart 6.x-2.x-dev (2010-Mar-01)
Ubercart Bulk Discount 6.x-1.x-dev (2009-Dec-14)
Comment #5
awebb commentedI'll take a look into it soon.
Comment #6
gedur commentedI´ve the same problem, I can see the discount on Order total preview but it doesn´t apply on the review order.
thanks for take a look
Comment #7
adshill commentedAgreed... discount is not applied after the checkout screen rendering the module useless. Wish I'd read this before setting it up as it took forever! Please put a notification on the module page that it currently is NOT ready for production sites until this bug is fixed - otherwise it can create major issues for people!
Thanks,
Adam
Comment #8
adshill commentedActually as I thoroughly test I'm noticing that some discounts just simply don't get applied at all as the original poster wrote. Seems to be random, for some products it works (at checkout at least) and others not. This is a real shame as otherwise the module is great. Sadly I'm not a coder so can't really help other than debugging.
Comment #9
adshill commentedComment #10
emptyvoid commentedThe following is my rather hackish attempt at getting the module to work at 2:00 am the night before the project was due.
It appears to work, however I didn't have a lot of time to test it. Based on my initial tests it does work and applies correctly for several different product types.
It would appear the input formats are broken on drupal.org
Comment #11
emptyvoid commentedComment #12
adshill commentedOk.. its much better :) Thanks for the work emptyvoid
One bug I have noticed, is that if you only have one product, the discount doesn't seem to appear in the checkout page. It is applied in the review, so its there, but in the checkout it doesn't show.
Multiple products work and you see "Combined discount" but if only one then there is nothing.
Thanks!
Adam
Comment #13
adshill commentedUpdate: I think thmy diagnosis wasn't complete... it appears that with products without tax everything works fine, but when there is tax on just one product then that product discount doesn't show.
Comment #14
jtjones23 commentedsubscribe
Comment #15
emptyvoid commentedThe problem when the Tax module is enabled is the client-side javascript rendering of this module may conflict with the tax module.
function uc_bulk_discount_line_item_discount($op, $arg1)
Handles loading the calculations for display on the checkout page.
Does your tax get added as a line item on review and order processing?
Comment #16
ahughes3 commentedI'm creeping up on a deadline and it's looking like discounts is the only thing holding me back..Should I just use the code that emptyvoid provided?
Comment #17
wyattbiker commentedThanks to emptyvoid for the module fix above. It works like a charm. However I wanted to show the discount breakdowns so I fixed/added couple of lines to this function in his module. To do that I added a counter in the main loop where it totals the discounts for each item (see variable $cnt) and display it using set_line_item. The original code only did Combined Quantity Discount. Looking at the original discount module, this was a bug anyway, since it only displayed the last item discount.
Comment #18
rlange77 commented@wyattbiker:
I applied your "patch" to my system and it works perfectly fine.
Thanks for that.
Is there a way to display the ***Total Quantity Discount*** line in the review (cart/checkout/review) and in the order as well?
Thanks for all your work you have done so far.
/rob
Comment #19
gausarts commentedSubscribing. Thanks
Comment #20
mccrodp commentedSubscribe
Comment #21
mennonot commentedsubscribing. Any chance this will get applied to the module?
Comment #22
FluxRostrum commentedDitto the thanks and praying these patches work (I'm an inexperience patcher) clients pissed. wish I read this first.
Comment #23
FluxRostrum commenteddon't know what the deal is but when I used these fixes it ... it broke my whole site.
I had the file backed up so it's ..ok but why would I get a site that just displays code after installing when others have got a functional site after installing them?
Comment #24
zoen commentedSounds like you need to add the "<?php" at the top of your modified uc_bulk_discount.module file. (Sorry if this reply is much too late.)
Comment #25
webstylemedia commentedMust confirm that this module DOESN'T WORK! DIscounts not applied on review pages, on actual payment pages and on next order pages and order emails.
Can't be used.
Guys please fix module ASAP
Thanks.
D
Comment #26
AviadG commentedsubscribing