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

Catagory Subheader removal

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-05-2009, 03:22 PM
 
Mediansoft Mediansoft is offline
 

Member
  
Join Date: Aug 2008
Posts: 10
 

Default Catagory Subheader removal

Hello, a quick question Lets say we have a catagory called "TestCatagory" in my "Teststore". When you go to that catagory (frontend) it builds the following screen:

Teststore :: TestCatagory

TestCatagory // <---- This is what i want removed
|--------------------------------------------
| PRODUCTS Sort by: blabla
|--------------------------------------------
|
|
|


Basically I see no point in having the top navigation line (which is good) and then have the current catagory name again below it just above the product table.... As the current catagory can be read from the top nav line anway and it looks weird having the same name double all the time... (and wastes space).

How can I remove this line ? Which .tlp file do I need to edit ?

Thanks!
__________________
Version 4.2
Reply With Quote
  #2  
Old 02-06-2009, 06:02 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Catagory Subheader removal

What you are referring to is the "title". The problem is, it shows up on all pages, not just in your categories.

Open skin1/customer/main/subcategories.tpl for editing and find ..
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'}

Change it to...
{include file="dialog.tpl" content=$smarty.capture.dialog extra='width="100%"'}

Save and upload.

This should make it not display the title. If the title still shows up then the next easiest way to achieve what you want is to make a copy of skin1/dialog.tpl named dialog-blank.tpl (I use "-" instead of "_" so I will know I made it and it is not a x-cart default file). Then, in dialog-blank.tpl find where it says...

<tr>
<td class="DialogTitle">{$title}</td>
</tr>

and comment it out so it looks like this...
{* <tr>
<td class="DialogTitle">{$title}</td>
</tr> *}

Save it, then upload to skin1/dialog-blank.tpl.

Re-open skin1/customer/main/subcategories.tpl for editing and find where you edited...
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra='width="100%"'}

Change it to...
{include file="dialog-blank.tpl" content=$smarty.capture.dialog extra='width="100%"'}

Save and upload.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-06-2009, 01:29 PM
 
Mediansoft Mediansoft is offline
 

Member
  
Join Date: Aug 2008
Posts: 10
 

Default Re: Catagory Subheader removal

Tried both methods mentioned, neither work. I am using X-cart 4.2 and my subcategories.tpl file is a little different then what you mentioned, in mine i orignally had:

{include file="customer/dialog.tpl" title=$lng.lbl_products content=`$smarty.capture.dialog` products_sort_url="home.php?cat=`$cat`&"}

and changed that into:
{include file="customer/dialog.tpl" content=`$smarty.capture.dialog` products_sort_url="home.php?cat=`$cat`&"}

The other file was the same as what you mentioned. But commenting out the lines there in combination with the changes i mention above don't erase the title.
__________________
Version 4.2
Reply With Quote
  #4  
Old 02-06-2009, 02:02 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Catagory Subheader removal

Please update your signature so that we don't waste our time supplying an answer that doesn't apply to your version.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-06-2009, 04:26 PM
 
Mediansoft Mediansoft is offline
 

Member
  
Join Date: Aug 2008
Posts: 10
 

Default Re: Catagory Subheader removal

Well I didn't even touch my signature, the forum itself added that there, wouldn't even know how to change it Was already wondering though why it added that version as mine was different but figured it had its reasons.


EDIT: Found where to change it Should be okay now, no idea where that sig came from though as againI did not manually add it.. sorry if it caused confusion at any rate. If anyone know how to remove the title in 4.2 thanks.
__________________
Version 4.2
Reply With Quote
  #6  
Old 02-07-2009, 04:01 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Catagory Subheader removal

OK, for 4.2 in skin1/customer/main/subcategories.tpl (it is different) find and comment out..

<h1 class="category">{$current_category.category}</h1>

or depending how you have your store set up....

<img class="subcategory-image" src="{$current_category.icon_url|amp}" alt="{$current_category.category|escape}"{if $current_category.image_x} width="{$current_category.image_x}"{/if}{if $current_category.image_y} height="{$current_category.image_y}"{/if} />
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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:50 PM.

   

 
X-Cart forums © 2001-2020