Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
uc_discounts_alt uses inline code to insert the discount information before the buttons on the cart page, which means that if the page is modified dynamically the discount information is lost (because the inline code only runs on page load). Attached patch uses Drupal behaviors to insert the discount information, which will run on page load as well as every time the page DOM is modified. This fixes a problem with uc_ajax_cart (see #1437820: uc_ajax_cart should use attachBehaviors to notify other modules of cart reloads).
Comment | File | Size | Author |
---|---|---|---|
#1 | uc_discounts_alt-use_behaviors-1437828-1.patch | 1.3 KB | stewart.adam |
Comments
Comment #1
stewart.adam CreditAttribution: stewart.adam commentedComment #2
loparr CreditAttribution: loparr commentedvery useful thank you
Comment #3
bellagio CreditAttribution: bellagio commentedWithout this patch, discount information disappears when removing products from cart page. Thank you!
Comment #4
loparr CreditAttribution: loparr commentedWhy has not been this patch already applied to dev?