Folks,
While Zen Cart has an impressive set of functionality, it has the disadvantage that it is an "all or nothing" proposition. If you are going to use Zen Cart, it seems you must work entirely inside its framework. Basically, you use it to build your entire site, rather than integrating its functionality into an existing site.
I have my own preexisting sites that I have no intention of discarding, but I would like to be able to make use of Zen Cart to "add on" shopping functionality to one or more of these sites. I've been analyzing the code base with an eye toward "extracting" or making use of the cart/checkout/shipping/payment capabilities without using the entire elaborate template system and catalog displays. What I'm trying to figure out is this: what is the minimal set of include files which I would have to bring in from a Zen Cart installation within or alongside my existing site to support the basic functionality of displaying a cart summary and a working "Add Item to Cart" form?
As an example, if I simply wanted to bring in the sidebox display of the tpl_shopping_cart.php code file, to show the brief listing of the contents of my cart, what *else* would I have to include in my existing site to make it work properly?
On the other hand, if I wanted to drop the content of one of my own left sidebar divs into a "sidebox" template for a ZC display, would I break anything in the process? If the content is nothing but standards-compliant XHTML, it seems to me that nothing should happen, but I can't be sure.
There must be a lot of other developers out there who are in our position: we have existing processes and methodologies for building our sites, but would like to leverage the back-end functionality of Zen Cart to add e-Commerce capabilities to those sites. I've been searching the Wiki and the forums for information about this, but haven't found anyone else discussing it. Surely somebody else has at least *wanted* to do this in the past. Has anyone done any work on "widgetizing" or "wrapping" the display and functionality of ZC to make it possible to drop it into an existing site?
Many thanks for any feedback!
regards,
Jim
Bookmarks