actually, all that's needed is a simple step by step.
when i started reading this thread, i thought "wow, this sounds like exactly what i'm looking for." then i looked at the documentation, read through some of the other posts, and thought "WTF?'
however, once i grasped it, i realized how brilliant this mod is, and how simple... mind-numbingly simple it is to implement.
it works like this:
1. create an html file in your website that you would like to embed zen cart into. let's call it shop.html and let's put it in the root of our website:
- we can access this file from
http://www.foo.com/shop.html
- the file is found on the server at /path_to_your_files/shop.html
2. somewhere in your html file, you need to put three very specific lines of text. WHERE you put them is up to you, but they must be together and they must be exact. the thing to know is that it goes in the body of the file, and that it goes where you want your zencart to go.
<div id="content">
<!-- START EMBED -->
<!-- END EMBED -->
3. install zen cart. i'm going to assume that you installed zen cart in a directory called zen. go to
http://www.foo.com/zen and do all the zen installation stuff.
DO NOT GO ANY FURTHER UNTIL YOU HAVE ZEN WORKING PROPERLY WITH THE DEFAULT TEMPLATE.
4. once you have zen up and running, it is time to install the new template. the sang_embed template installs like any other template. please see the wiki if you need basic assistance with installing a template in zen cart (or better yet, buy the zen book, you won't regret it). essentially, you copy the template files to your webserver. most will go in zen/includes/templates/sang_embed, but the main thing is to match the folder structure in the download. don't forget to "turn on" the sang_embed template in the admin.
5. make ONE change in the file named embed_config.php. you can find it at /path_to_your_files/zen/includes/templates/sang_embed/common/embed_config.php
find the line that begins with $zc_temp (it is line 11) and change it so that it refers to the html file you created in step 1. in our example, it would be:
$zc_temp = '/path_to_your_files/shop.html';
THIS IS THE KEY. IT TELLS ZEN CART THAT IT MUST EMBED ITSELF IN THAT FILE.
6. go test it by going to
http://www.foo.com/zen
7. revel in your brilliance
Bookmarks