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

Overhead pages - different template/without left nav

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-21-2007, 04:27 PM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default Overhead pages - different template/without left nav

Hello,

I would like to have overhead pages such as the contact page, or even the registration page, load into a different template, particularly without the left nav bar, or table cell.

Any advice?
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
Reply With Quote
  #2  
Old 09-21-2007, 05:46 PM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Overhead pages - different template/without left nav

Look at skin1/customer/home_main.tpl and skin1/common_templates.tpl to see how x-cart decides which template to include within skin1/customer/home.tpl. Then you can do one of two things.

In skin1/customer/home.tpl you can use {if} {/if} smarty tags to exclude the left column in certain areas of the site. For example, I turn off the left column on my site in checkout using this right before the <td> tage that starts the left column:
Code:
{if $main ne "checkout" and $main ne "anonymous_checkout"}
and {/if} right before the <td> tag that starts the center column.

Or if your changes are more extensive you can use an {if} right at the beginning of home.tpl with something like this at the end.
Code:
{else} {include file="customer/homespecial.tpl"} {/if}
Then you can make a copy of home.tpl to create homespecial.tpl and hack it to your hearts content.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #3  
Old 09-22-2007, 06:45 AM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default Re: Overhead pages - different template/without left nav

I ended up changing the path in register.php from customer/home.tpl to a new template I created called registration.tpl. Copied home.tpl to registration.tpl, then customized it.

Here's another question for you guys:

If a person selects "register" (i.e...doesn't register as a result of checking out, but just to register in order to receive catalogs, etc.) they are directed to the registration page, but after filling out all of their details and submitting registration, the resulting page is just the same page, which is kind of confusing. How can I have them redirected back into the site, or to some other page?
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
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 03:46 AM.

   

 
X-Cart forums © 2001-2020