Hi there... You did the customer referral addon for me for CSCART a while ago, along with some other projects... there is a bug in the refferal add on that you wrote (Hopefully it is a simple fix) and was wondering if you could help me get it fixed?
Here is what happens...
Say I have a $5 credit. I buy something for $6. At checkout, it is showing the credit for $5 in the line items, but it is not taking it off the total for some reason. So when I go to Paypal, Paypal is charging the full price. THEN...if you cancel the transaction in Paypal, and it redirects you back to [url removed, login to view], it actually makes it a NEGATIVE credit to the persons account :(
Here are the steps:
1) Customer has a $5 credit
2) Buys something for $6
3) At checkout they are still charged $6 even though it shows the the credit was accepted
4) If customer continues to Paypal, Paypal show full price still
5) Customer cancels transaction, returns back to the site, not it tries to apply the credit again, but now make it a negative credit. So when they go to bu something, it adds $ to the order :(.
Can you help me ASAP?
Thank you so much!
grahambr 48 minutes ago
Further more testing... the TOTAL seems fine on the cart, when you go to Paypal, paypal doesnt show the discounted total... it shows the full amount... so there is an error in what is being sent to Paypal. Thats where the issue lies....
grahambr 16 minutes ago
Ok... dug into it a tad bit more... it looks like it IS changing the total $cart['total']...but the total that it passes to PAYPAL and CHECKS and CREDIT CARDS, are contained someplace else (Thinking CSCART_USER_SESSION_PRODUCTS?)
I think there is logic missing that not only changes the total on the screen for the discount, but also adds the discount in the database, so when it goes to paypal or checks, etc... it is pulling the original total.
Please help! :)
I attached the files you wrote.