Can anyone help me with the flexicharge application. I have it setup so that the US is a region and it will charge a flat rate shipping fee. When the US is not chosen it uses another charge. That works great and is no problem. However, when I have a customer input a coupon code (ie. free shipping) It will charge the shipping fee again. So the checkout screen shows the product price, shipping, coupon, shipping again and then total. I cant figure out what I am doing wrong or the setting to correct this. Any help would be greatly appreciated. Under flexicharge defaults it gives the choice to select what to apply to and underneath the box it says it will be applied only once but this is simply not the case. Please help!
If you want to see what im talking about choose a product check out and enter coupon code 1251-7128-8149.
Comments
Also please dont make fun of
Also please dont make fun of my site. It is for my wifes business and was my first stab at e-commerce. Beginner Here
Having the same problem...
I'm having the same problem - working on it now.
Will post if I make any progress.
JMD
Seems to work...
Okay, this seems to take care of it for me - if you don't mind hacking flexicharge a bit - I couldn't think of a way to handle it from the .inc's.
Basically, I just set it so that the flexicharge_checkoutapi hook can only run once. Before it finishes, it puts a flexicharge_applied value in the $txn, and then won't repeat the charges when coupons are applied.
So - if you want to try this - you just need to add these two lines of code to flexicharge_checkoutapi() in flexicharge.module:
Add this near the top:
And then this just before the function returns:
It works for me - but try at your own risk, I suppose.
JMD
Coming back with an error
JMD I copied the code just as you have it and I am getting this error:
Parse error: syntax error, unexpected '<' in /home/.pikachy/runningstix/hallofcandles.com/modules/ecommerce/contrib/flexicharge/flexicharge.module on line 385
it seems it is in the actual code not the description of what it does. Any ideas what I am doing wrong? Wherever I put that code is the line that the error occurs on.
Coming back with an error
JMD I copied the code just as you have it and I am getting this error:
Parse error: syntax error, unexpected '<' in /home/.pikachy/runningstix/hallofcandles.com/modules/ecommerce/contrib/flexicharge/flexicharge.module on line 385
it seems it is in the actual code not the description of what it does. Any ideas what I am doing wrong? Wherever I put that code is the line that the error occurs on.
Works great! N.B. - only
Works great! N.B. - only works if Flexicharge is set before Payment in the Screen Order section.
A clarification for other interested parties on how to properly hack this:
Function should look like this:
great. It works for me as
great. It works for me as well.
this can be done in the .inc files
This is an awkward solution, but I haven't had any luck with the 'already_added' element....
Any luck with this yet?
I'm having the same problem and posted a question on it a month ago. Did you have any luck sorting this out?