WOW! I never thought ZenCart and it's parent, OSCommerce, could ever be redeemed. These are great products with really unpleasant code. Hacking these apps is a nightmare.
Now, someone's come along with a big replacement to ZenCart called ZenMagick. I just skimmed over it, and the code is much better. The product attaches to ZenCart and exposes and OO API to the underlying database.
It's an MVC framework, so it takes some time to grasp what's going on, but after that things should get a little easier.
There are some things I thought were lame, like the class loader, which limits the amount of subclassing you can do, but you can get around that.
This is a really interesting project, because it's attaching itself to ZenCart, and can potentially fork it and take it over. While there are a lot of OSC and ZC plugins, the app is hobbled by the complexity of installing these plugins.
Comments
The class loader got much
The class loader got much better recently and the next version will add a few bits more, too. In particular the __autoload() support allows now much easier inheritance and use of the new keyword.
Subclassing in itself is limited only in that extending (and therefore replacing) core classes can only be done once. However, that is obviously more an OO limitation rather than ZenMagicks fault ;)
On the other hand there is the option to inject completely new methods into existing classes if desired...
If you find other things to nag about, please let me know - that's the only way to make things better!
Ta, mano
I'll have to study it some
I'll have to study it some more.
Thanks for writing ZenMagick. My gf has a Zen Cart site, and it's been a big pain in the butt, because it's so difficult to modify. I just gave up.
I hope ZenMagick does well.