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

Hiding left-hand column

 
Reply
   X-Cart forums > X-Cart 4 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-15-2003, 07:46 AM
 
koby koby is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 108
 

Default Hiding left-hand column

I need to disable the "Categories", "Special," and "Help" categories on the left column of the page.

Is there a way to hide these features via template?

I would like to just replace a template when I need those features again rather than hack up the php code.
Reply With Quote
  #2  
Old 07-15-2003, 08:55 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

use comment tags

{* comment *}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 07-15-2003, 08:56 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

and look in home.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 07-15-2003, 09:09 AM
 
koby koby is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 108
 

Default

If I understand this correctly, I can remark the lines out in the home.tpl file?

Awesome. I'll give it a try
Reply With Quote
  #5  
Old 07-15-2003, 09:44 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

yeh, look for the include statements and comment them out of comment out the whole left hand table cell
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 07-15-2003, 09:46 AM
 
koby koby is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 108
 

Default

Thank you!
Reply With Quote
  #7  
Old 07-15-2003, 10:12 AM
 
koby koby is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 108
 

Default

OK, can I get some help with formatting?

I get this error when trying to remark out the left column

Parse error: parse error in /var/www/html/xcart/templates_c/%%151/%%1512206380/home.tpl.php on line 10
Reply With Quote
  #8  
Old 07-15-2003, 10:21 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

this would be how your home.tpl would look with the comments in place to totaly remove the left hand column and all its contents

this is for version 3.4.3

Code:
{* $Id: home.tpl,v 1.50 2003/04/09 07:41:05 olga Exp $ *} { config_load file="$skin_config" } <html> <head> <title>{$lng.txt_site_title} {if $main eq "catalog"} {if $location eq ""} {$lng.txt_subtitle_home} {else} {strip} {section name=position loop=$location start=0 } {if %position.last% eq "true"} - {$location[position].0|escape}{/if} {/section} {/strip} {/if} {elseif $main eq "product"} {if $product.product ne ''} - {$product.product}{/if} {elseif $main eq "help"} {$lng.txt_subtitle_help} {elseif $main eq "cart"} {$lng.txt_subtitle_cart} {elseif $main eq "checkout"} {$lng.txt_subtitle_checkout} {elseif $main eq "order_message"} {$lng.txt_subtitle_thankyou} {/if} </title> { include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> </head> <body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> { include file="rectangle_top.tpl" } { include file="head.tpl" } <table border=0 width="100%" cellpadding=0 cellspacing=0 align="center"> <tr> {* START COMMENT HERE ........................................................ <td class=VertMenuBox width=150 valign=top> { include file="customer/categories.tpl" } {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"} { include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} {if $active_modules.Gift_Certificates ne "" or $active_modules.Product_Configurator ne ""} {include file="customer/special.tpl"} {/if} { include file="help.tpl" } </td> <td width=20></td> ..........................END COMMENT HERE *} <td valign=top> {include file="customer/home_main.tpl"} </td> <td width=20></td> <td width=150 valign=top> { include file="customer/menu_cart.tpl" } {if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} { include file="news.tpl" } {if $active_modules.Interneka ne ""} { include file="modules/Interneka/menu_interneka.tpl" } {/if} { include file="poweredby.tpl" } </td> </tr> </table> { include file="rectangle_bottom.tpl" } </body> </html>
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 07-15-2003, 10:28 AM
 
koby koby is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 108
 

Default

OK, thanks. I was completely ignoring the table tags.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:01 AM.

   

 
X-Cart forums © 2001-2020