Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem occur when discount line item should be deleted first before re-apply in checkout review page.
This issue related with bug reported happen in Drupal 6. I have applied the same solution from patch in D7 alpha-3 version.
The problem solved which make the discount applied only once.
Comment | File | Size | Author |
---|---|---|---|
fix.discount_applied_twice_d7.patch | 2.8 KB | parasolx |
Comments
Comment #1
overbythere CreditAttribution: overbythere commentedThis fixed the issue for me too, could this be committed into the live version?
Comment #2
chnewso CreditAttribution: chnewso commentedThis work for me as well - THANK YOU!
Comment #3
parasolx CreditAttribution: parasolx as a volunteer and commentedI change the status to RTC.
Comment #4
Stoob CreditAttribution: Stoob commentedI was having trouble with a role-discount applied a second time on checkout when someone pressed the "Click to calculate discounts" button. To clarify the role-discount was already applied automatically, it was added double when someone pressed this button.
Reviewing the above patch, some of the work seemed unnecessary. This single line replacement was all that was required to fix the issue.
Comment #5
DrCord CreditAttribution: DrCord commentedPatch worked for me as well.
Comment #6
Charindu_J CreditAttribution: Charindu_J commentedi have applied the patch and i'm still getting this error. It's not happening occasionally. anybody has any idea why?
Comment #7
hockey2112 CreditAttribution: hockey2112 commentedThanks this seems to have fixed the issue I was having... when the "click to calculate discounts" button was clicked multiple times, it was allowing the discount to be applied more than once.