This post originated from an RSS feed registered with PHP Buzz
by Jim Reverend.
Original Post: Zen Cart and Gallery2 integration module
Feed Title: revjim.net: PHP Section
Feed URL: http://www.contegix.com/xml/rss20/feed.xml
Feed Description: because a Reverend can't be wrong. Rants, raves, code reviews and programming practice discussions regarding all things PHP.
Interested in a better solution for selling photographs online, I decided to try integrating Gallery2 and ZenCart using ZCG2.
Don’t bother.
I have never used ZenCart nor have I looked at its code, so I can really offer much comment there.
As I’ve mentioned before, Gallery2 isn’t exactly the most exciting, flexible, or well written piece of software I’ve ever seen, but, now that I’ve used it a bit, I’m getting used to it. I still don’t like it, but I’m getting used to it and I can usually make it do what I want relatively easily.
This ZCG2 software is horrible. First of all, it doesn’t work. You follow the simple installation instructions and it throws up an error message. The code is so unreadable that I’m not even about to try to troubleshoot it. The code detected the fact that there was an error, and provided stack trace information on screen, but didn’t bother to tell me why there was an error, or what needed to be done to fix it. If it can trap a specific error, as this did, then it can surely explain it along with the stack trace.
Even if the software did work, based on the installation instructions I can tell how horribly written it is. For instance, it requires that ZenCart use the same database that Gallery2 uses. Why? Isn’t there an API? Even if there isn’t, why not just connect to two different databases? Why make some silly requirement like this when it is so easily avoided?
I’m not going to bother repairing a terrible chunk of code (ZCG2) so that it can integrate with another piece of terrible code (Gallery2) when I could make myself a lot more sane by just starting from scratch.