View Single Post
  #3  
Old 09-07-2003, 10:02 AM
 
dealsondeals dealsondeals is offline
 

eXpert
  
Join Date: Dec 2002
Location: Dallas, Texas, USA
Posts: 231
 

Default

X-cart already has index.html file that you could use as a splash page. However, if you're like me and you wish to incorporate other .tpl files in your first page, why not create an alternate home.tpl and name it something like "home1.tpl".

Be sure to place this alternate home.tpl in directory:
skin1/customer/

You then would need to go and edit the home.php. You will find this at:
x-cart directory/customer/home.php
(note that you cannot edit this file in "Admin" mode, you need use a text editor and FTP to your site)

At the bottom of the file you will see the following:
Quote:
$smarty->display("customer/home.tpl");

Edit that line to reflect your alternate home.tpl like so:
$smarty->display("customer/home1.tpl");


This will allow you to have seperate template load when you visit your x-cart and for home.tpl to be used when shopping begins.


Enjoy!

Regards,

Glen
__________________
Never understimate stupidity.
--------
X-Cart Version: 3.5.2
Hosting:mind-in-design.net
Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14
Reply With Quote