Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS 4.6 Customizing the Home or index page


Recommended Posts

Hello All,

I hope someone can shed some light on this. I have installed Bill's STS 4.6 on a new site. A GREAT ADD ON!

 

I am trying to customize the $content$ on the Home/Index page. I want to add a flash script to scroll through some product photos. So I thought great I will just configure STS index (which is on) I am using template number 061 that was included with the install.

I have enabled all four STS modules on the admin side. I then added a new file to the content folder inside the freeoscommerce_template_061 folder. I named the new file index.php_0.html, (which I think is correct?) So the path is catalog\includes\sts_templates\freeosc_061\content\index.php_0.html.

 

I thought that would load the new file on the home page in the content area, but it does not. I was thinking that I could add the html code to load the flash swf file inside the index.php_0.html file but I am obviously missing a couple of steps.

 

 

 

If I move the index.php_0.html file up one level so it is in the freeosc_061 folder It loads as the home page, but when I drill down one level in the site it is still there and I need things to go back to the original content once you drill down. The site I am playing with is www.nebwaters.com.

 

 

 

I have spent several hours looking through the forum and also gone through the STS 4.5.8 contribution from Chris Buchi support paper, Which helped me understand the logic better. But I am still missing something. Thank you in advance for any assistance.

 

 

 

Link to comment
Share on other sites

Hello and thanks for the kind comments regarding STSv4.6.

 

First, please post your question in the proper STS Support Thread. You can find the link in my signature below. The answers to all of your questions are quite simple and you can find them in the listed support thread.

 

See you there...

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js.

I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>".

I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play.

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent">This text is replaced by the Flash movie.

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references.

 

Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser?

 

Thanks for the help.

RJ

Link to comment
Share on other sites

  • 4 weeks later...

Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js.

I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>".

I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play.

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent">This text is replaced by the Flash movie.

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references.

 

Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser?

 

Thanks for the help.

RJ

 

Please visit the STSv4 Support Thread. Link is in the STS User Manual as well as in my signature below.

 

 

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...