Another "poor analogy": You are making way too much of this...
Say your html site consists of 100 products, each html file needs to have the header, the left, center, right content described and so forth: 100 times.
Ok a shopper buys product "A", you need a page that indicates this is in his cart, a page that allows checkout with product "A" information so the shopper can see that they are buying the correct item, a page that processes payment, and a sucess page. Now you need these times 100.
OPPS!! the shopper wants item "A" and item "B", now you need these pages created for this combination...and it only gets more complicated from there.
Server side scripting to the rescue:
All this is, under the hood, is an html page that is cut into pieces; header, left, right & center and depending on the specific page, the pieces that are required to display the page with the correct information. All this is dynamically assembled, based upon the combinations the shopper creates.
If you are gonna say that you will use the cart for these pages and you want them to resemble your look & feel, then you have to create the template anyway. So if this is done why attempt to use a static html page as a portal? Just use the cart as it is designed to be used.
As far as linking to Zencart from the html page, you do not need to edit or touch the index.php file. For the main cart page insert something like this into your html page:
Code:
<p>Go to <a href="http://www.your_url.com/shop/">My Store</a></p>
and for accessing a product specific page:
Code:
<p>See this <a href="http://www.your_url.com/shop/index.php?main_page=product_info&cPath=33&products_id=47">Products Details</a></p>
Where the above url info is what ZenCart will display as the focus in the browser address bar when loaded
But as you seem to think that html would be simpler, by all means forge ahead and do as you will. Not many here will understand much of anything that you are attempting as it will be your design and outside of the normal functions of the cart. And we haven't even touched secure DB access, validation, SSL and many other required things for your shoppers
Bookmarks