Hi all

This is my first post while I am doing my first Zen Cart set up. I wanted to pass along a hack that, for me, made installing a flash component a lot easier with Zen Cart.

I wanted to install a flash object on the Index page. I wanted it to be in the same location as (and replace) the e-start-book.gif image. (All of the other tips I found in the forum referenced the header area, only).

The particular flash object I wanted to embed uses XML to load images into the flash movie. This proved challenging because the SWF, XML, and Images all need to be together and I couldn't get the flash to load with the traditional embed object code solutions posted throughout the forum.

My solution was to install a simple iFrame on the Index page. Then, I installed the flash movie on its own html page located in its own folder within Zen Cart. The iFrame works as a "window" to view the contents of this other page. By defining the height and width of the iFrame window, I can match the height and width of my flash movie...giving a seamless appearance, as if the flash was embedded on the index page.

Here's how I did it:

1) Create a folder named "flash." Place it in the root area of Zen Cart.

2) Place the flash documents in this folder....i.e. SWF, XML, HTML, and all documents needed to run the movie. (In my example, the iFrame will be viewing the movie playing on the HTML file in this folder).

3) Open the tpl_index_default.php file
(In my case, using the classic template, the path to the file was includes/templates/template_default/template)

2) Add an iFrame div after the following this code:

<?php/*** get the Define Main Page Text*/?>

and before this code:
<div id="indexDefaultMainContent"

3) The html code to add the iFrame div is:
<div id="LayeriFrame">
<iframe src="/flash/NAME_OF_YOUR_WEBPAGE.html" width="YOUR PIXELS i.e. 550" height="YOUR PIXELS" scrolling="no" frameborder="0"></iframe> </div>

Upload the files and you should be good. Mine tested out fine in Explorer, Firefox, and Safari browsers.

Good luck.