Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Use different design for home and rest of pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-06-2003, 07:12 PM
 
scottd scottd is offline
 

Member
  
Join Date: Sep 2003
Posts: 21
 

Default Use different design for home and rest of pages

I want to have a unique look for the opening welcome page when the visitor first comes to the site, and then have a different look on the rest of the pages (ie: authentication, search, categories, etc...)

Problem for me is that I set up home.tpl and it seems like the rest of the pages use this template. How do I change them. Which files do I need to change.
Reply With Quote
  #2  
Old 09-06-2003, 10:59 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default splash page

sounds like all you want is a splash page, does'nt xcart already have one? i took our splash page out
Reply With Quote
  #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
  #4  
Old 09-07-2003, 06:54 PM
 
scottd scottd is offline
 

Member
  
Join Date: Sep 2003
Posts: 21
 

Default

Hey thanks alot! That worked like a charm.
Reply With Quote
  #5  
Old 09-08-2003, 04:42 AM
 
dealsondeals dealsondeals is offline
 

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

Default

Glad it worked out for you! Be sure to post your final results, I would be interested in seeing it.

Reagrds,

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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:00 PM.

   

 
X-Cart forums © 2001-2020