Is it possible to show the discount available on the cart and checkout pages rather than just the review page?
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | uc_discount.patch | 1.17 KB | screenage |
| #12 | uc_discount.patch | 386 bytes | screenage |
| #3 | 623124_uc_discount_Show_discount_on_cart_and_checkout_pages.patch | 407 bytes | giorgosk |
Comments
Comment #1
mwisner commentedHello,
I believe that the problem regarding the checkout preview is a bug in the uc_discount_calculate_discounts function, or in the JavaScript somewhere. Basically, when the JavaScript gets the order information it sets $order->uid = 0 (not sure if this a bug, or intended). This results in the $account argument being set to the anonymous user, so if you have conditions based on $account they will return false.
I have modified
to
This modification seemed to fix the checkout preview for me.
--Matt.
Comment #2
julien verkest commentedIf you have a javascript error in the path /cart/checkout replace all selectors
$("input[@name ...")by$("input[name ...")on the uc_discount.jsComment #3
giorgoskGood one Matt,
here is a patch
applying this to the 6.x dev 2009-Aug-22 will have the discount appear on the checkout page
apply from the drupal root directory
Comment #4
scott m. sanders commentedCan someone update this patch or roll it into the module? I wish to review it.
Comment #5
joachim commentedAs far as I can tell, discounts do show on cart and checkout pages.
Can you explain how to reproduce the problem?
Comment #6
scott m. sanders commentedSorry, somehow I thought this issue was for order discounts.
Yes, other discounts do apply in cart and checkout.
Comment #7
joachim commentedOkay going to mark this as duplicate then, and assume it was fixed elsewhere.
Comment #8
pyxio commentedDiscounts do not show for me either on the cart or checkout pages. Only on the final invoice. I have configured my discounts accordingly... 1) Trigger = Calculate Order Discounts 2) Condition = Check the order total 2) Action = Apply A Discount. I see there was a patch for this written back in 2009 which is a long time ago. So I'd like to ensure that it still works before applying it. Thanks. Kevin
Comment #9
joachim commented> So I'd like to ensure that it still works before applying it.
The best person to check that is you. On your dev site, of course, not your live one.
Comment #10
pyxio commentedI can see that this patch is already incorporated into the module. So there is nothing to patch. Any other ideas why discounts are not appearing on checkout and review pages? I have tried several themes so it is not a theme issue. Thank you. Kevin
Comment #11
screenage commentedI have the latest dev, and my discounts aren't show either on the checkout page.
They are however visible on the review page.
Comment #12
screenage commentedComment #2 though seemed to fix the problem.
I attached a patch for it
Comment #13
screenage commentedbetter patch (some more replacements)