X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Overhead pages - different template/without left nav (https://forum.x-cart.com/showthread.php?t=34109)

jwilkers 09-21-2007 04:27 PM

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?

geckoday 09-21-2007 05:46 PM

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.

jwilkers 09-22-2007 06:45 AM

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?


All times are GMT -8. The time now is 03:32 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.