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

subcategories not top aligned anymore?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-03-2005, 05:57 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default subcategories not top aligned anymore?

well i recently upgraded to .17, and i noticed my subcategories are spread out now.

this is how they used to be before the upgrade

http://www.ftkonline.com/misc/screenshot1.jpg

and this is how they look now.

http://www.ftkonline.com/misc/screenshot2.jpg

any idea what i need to edit to make that align correctly again?

thanks!
__________________
4.2.2
Reply With Quote
  #2  
Old 12-03-2005, 06:51 PM
 
balinor balinor is offline
 

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

Default

Compare your old subcategories.tpl and your new one to see what has changed.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-12-2005, 11:12 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

how exactly would i do that? from the original installation files?
__________________
4.2.2
Reply With Quote
  #4  
Old 12-12-2005, 11:16 AM
 
balinor balinor is offline
 

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

Default

Or just add:

valign="top" to the table cell that contains that info.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-12-2005, 11:33 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

Quote:
Originally Posted by balinor
Or just add:

valign="top" to the table cell that contains that info.

yeah that was the 1st thing i did, thinking this should be a simple fix.

did that, and nothing happened. i guess i may have put it in the wrong cell.

thanks.
__________________
4.2.2
Reply With Quote
  #6  
Old 03-08-2006, 05:51 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

bringing this up again because i can't seem to find why this is happening.

here is the entire body of my subcategories.tpl

Code:
{* $Id: subcategories.tpl,v 1.43.2.7 2005/10/28 05:23:51 svowl Exp $ *} {if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/category_offers_short_list.tpl} {/if} {if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":" "} {/if} {capture name=dialog} {assign var="tmp" value="0"} {section name=cat_num loop=$subcategories} {if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if} {/section} {if $subcategories} <TABLE border="0" cellspacing="5" width="100%"> {foreach from=$subcategories item=subcat} <TR> {if $tmp and $first_subcat ne "Y"} <TD valign="top" rowspan="{count value=$subcategories print="Y"}">[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</TD> {assign var="first_subcat" value="Y"} {/if} <TD width="95%" align="left" valign="top"><FONT class="ItemsList">{ $subcat.category|escape }</FONT> </TD> <TD align="right" valign="top" nowrap><FONT class="Text">{if $config.Appearance.count_products eq "Y"} {if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products} {elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower} {/if} {/if}</FONT></TD> </TR> {/foreach} </TABLE> {/if} {if $tmp and $products ne "" } <BR clear="left"> <HR size="1" noshade> {/if} {if $products} {if $sort_fields} <DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV> {/if} {if $total_pages gt 2} { include file="customer/main/navigation.tpl" } {/if} <HR size="1" width="100%"> {include file="customer/main/products.tpl" products=$products} {/if} {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_cat} {/if} {/capture} {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} {include file="customer/main/featured.tpl"} {/if} {/if} { include file="customer/main/navigation.tpl" }

can anyone spot where my problem is?
thanks!
__________________
4.2.2
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 07:32 PM.

   

 
X-Cart forums © 2001-2020