My bad

I have the cart problem figured out, for real this time.

It was my fault.  We use Zen Cart, which is a free PHP shopping cart app, and it does the job really well.  Some more complex situations are not handled in the cart codebase and require third-party plugins or custom patches.  One of these situations is our offer to buy one album for $10 USD and get a second album for $5 USD.  To implement this functionality, I added some custom code in 2007 following the release of Super Powers.  Upon our recent upgrade of Zen Cart, I ported the custom patches over but failed to realize that the $db object used for querying the database was no longer global in some of the modified Zen Cart functions containing my code.

Thanks to the debugging utility for Zen Cart, I was able to track down and correct the issue.  The problem was all on my side, I was a bad coder.  Interestingly enough, some transactions were conducted successfully and these were when the custom patches were not encountered in the code (e.g. buying one album for the first time, etc).  So everything should be in order now and functioning properly.  Please let me know if you run into any issues.

-eighty

1 Comment

One Response to “My bad”

  1. CJ Says:

    Thanks.

Leave a Reply