How nice it would have been to know this was not working before I installed it... anyone got sql code to remove the changes that were made with this module? It looks like everything else works, but with no store credit it fails. Bummer.
corbett
This seems to be the offending code:
function apply_credit() {
global $db;
$db->execute("update " . TABLE_STORE_CREDIT . " set amount = amount - " .$this->deduction. " where customer_id=".$_SESSION['customer_id']);
}
Something is wrong with this SQL statement. I am no expert, but I will take a look and see what I can figure out. Any experts out there got some ideas. This is the last hurdle to fix this the way it currently is.
After looking at it more, this part of the code looks to be blank when you get the sql error
.$this->deduction
Corbett
Thanks, that worked. I am looking at the code and can see the problem, but not sure how to fix. I keep messing with it and see what happens.....
corbett
I just wanted to say I've not disappeared, and I will make a best effort to read through this thread and have a look at people's issues, however as yet I've not been able to reproduce any of them (the store credit module is working fine in my store, with and without a credit balance).
If you are still having issues and are happy for me to correspond with you privately when I have fixes to test, please PM me and let me know.
I apologise for the delays - my family and I are currently in the process of moving interstate and with 17 month old twins and a business to run, it hasn't left me much spare time!
I'm not complaining, you have nothing to apologize for!
I like the module and want to get it working and will keep trying as long as someone is around to help.
The only issue I have now is the module has an error during checkout that stops the pages from completing, but the order is process and charged to the credit card. The customer just does not know it and sees the error message. This only happens when the customer does not have credit. When the customer has credit the whole process works perfectly.
I'm using ZCv1.3.6
I will PM you also, again thanks.
Ah - now that one I do remember seeing in my store (and fixing).
I'm hoping over the next few days to get some time and I'm going to download the code that's running in my store and diff it with the latest code I uploaded to ZC. I'm then going to try installing the merged result on a fresh ZC install (probably 1.3.7 for the sake of currency), and see what it does. Hopefully I'll be able to reproduce some of people's problems and fix 'em :).
I just checked and all my orders went through alo, I did not notice this before.
Corbett
Last edited by cmessa; 14 Apr 2007 at 02:35 AM.
Bookmarks