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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stewart.adam’s picture

Status: Active » Needs review
FileSize
1.3 KB
loparr’s picture

very useful thank you

bellagio’s picture

Without this patch, discount information disappears when removing products from cart page. Thank you!

loparr’s picture

Issue summary: View changes

Why has not been this patch already applied to dev?