Hello - I've posted a request for help previously, but not in this support section.
I'm having a problem with duplicate flexicharges on checkout.
I have a discount for a user role, shipping charges (both flexicharge) and a coupon. When I get to the final review page for the order the user discount and the shipping charges already show correctly in the total. There I can enter the coupon code and click 'add'. After doing this there are now duplicate entries for the shipping and the user role discount. The coupon also shows correctly.
If I then remove the coupon from the order, the duplicate charges remain in the total invoice.
I found an earlier post: http://drupal.org/node/118686 that used a patch for version 4.7. I tried this patch but it didn't help, I guess, since I'm using 5.
I've read through the other support requests and haven't seen mention of this, maybe I missed it. Any help would be appreciated.
Thanks!
Comments
Comment #1
Anonymous (not verified) commentedI used the patch at the link you pointed to successfully, running ecomm 3.1 & Drup 5.2
I inserted this code in line 167, note that the callback needs to reflect the .inc filename (in my case upscharge).
This is very quick & dirty. Any other solutions out there - or chance this might get into core?
Comment #2
brmassa commentedGreg,
is there a possibility to you port this patch agains eC4 CVS? i will be glad to commit
regards,
massa
Comment #3
brmassa commentedGreg,
is there a possibility to you port this patch agains eC4 CVS? i will be glad to commit
regards,
massa
Comment #4
research37 commentedgbear,
If I'm trying to fix this in my instance would the include be "coupon"? So I would need to change that one line to:
if ($misc->callback == 'general_coupon_flexicharge_calculate') {
?
If not, how do I figure which include to use? Sorry, I'm pretty new to coding in drupal.
Thanks,
Patrick
Comment #5
dylanb commentedSame problem here. I was adding coupons to an order and flexicharge kept adding a shipping charge for each one. Even if I removed the coupon from the order the shipping charge stayed.
Anyway, using the snippet from gbear (comment #1) I fixed the problem. The version of flexicharge I'm using is:
and the code I ended up using was inserted into the flexicharge_checkoutapi() function just before the switch statement (line 127)...
Comment #6
brmassa commented