| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Mod for subcategories in columns with descriptions and icons | ||||
|
|
Thread Tools | Search this Thread |
#241
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
i cant find xcart/include/catagories.php....
help?
__________________
xcart version 4.1.6 |
|||||||
#242
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
I was wondering if you could change it with the picture on the left and the name of the subcategory on the right, going down the page?
__________________
Version 4.1.12 Gold |
|||||||
#243
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
eurojet,
Quote:
jcgoldy, Quote:
Just change the width and text-align code in your skin1/skin1.css file to this: Code:
and replace the code from <table ..to...</table> in skin1/customer/main/subcategories.tpl with this: Code:
Make sure you also change the code in xcart/include/categories.php as noted in post #211. I think that should do it. - MoonDog -
__________________
X-CART Gold v4.1.8 |
|||||||
#244
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
let me explain a little better. I was hoping to have the text displayed on the right side of the pictures...is this possible?
http://www.thebabblingbaby.com/newbaby/images/C/TYC091thumb.jpg Thank You Cards - To Match Announcements (1)
__________________
Version 4.1.12 Gold |
|||||||
#245
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
Hi jcgoldy,
See if this works. I changed the code, it's quick and dirty and I have not tested it. Let me know if it doesn't work and I'll try to correct it by this weekend. Code:
- MoonDog -
__________________
X-CART Gold v4.1.8 |
|||||||
#246
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
Looks like there is a syntax error below in the subcategories.tpl insert.
Code:
notice <a title="{$subcat.description}" <a theres a double a< a< and it made my display a bit weird. well i removed <a title="{$subcat.description}" to avoid from pulling in the description. Quote:
__________________
Thanks, Alex. Too many version to list. I have some on 3.51 and some on the latest version. |
|||||||
#247
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
Working great in 4.1.9 Thanks!
__________________
Bill X-Cart 4.1.9 |
|||||||
#248
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
Am I being an idiot or what? I am setting the code to show coloumns in fours but it is setting to five .... I have changed the css as per boxerbay ... why is this happening?
Here is an example http://www.organ-nics.com/store/home.php?cat=264 and this is my subcategory code: Code:
__________________
Running stores using the following: 2@ Version 4.0.19 2@ Version 4.1.9 1@ Version 4.1.11 |
|||||||
#249
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
Anyone have any ideas for the above? I am really stuck and it looks so stupid! Thanks for your help
__________________
Running stores using the following: 2@ Version 4.0.19 2@ Version 4.1.9 1@ Version 4.1.11 |
|||||||
#250
|
|||||||
|
|||||||
Re: Mod for subcategories in columns with descriptions and icons
I had this problem too. Use the following code should work fine
{* $Id: subcategories.tpl,v 1.55.2.1 2006/06/27 08:20:37 svowl Exp $ *} <p /> {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}<p /> {/if} {capture name=dialog} {assign var="tmp" value="0"} {foreach from=$subcategories item=c key=catid} {if $c.category}{assign var="tmp" value="1"}{/if} {/foreach} {if $subcategories} <table cellspacing="5" width="100%" border="0"> <tr> {foreach from=$subcategories item=subcat} {if $tmp is div by 4} </tr><tr><td colspan="3"></td></tr><tr valign="top"> {/if} { if $tmp and $first_subcat ne "Y" } {assign var="tmp" value=0} {assign var="first_subcat" value="Y"} {/if} <td class="ColumnTitles" valign="top"><div align="center"><a title="{$subcat.category|escape}" href="home.php?cat={$subcat.categoryid}"><img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/default_image.gif{/if}" alt="{$subcat.category|escape}" /></a><br> <a title="{$subcat.category|escape}" href="home.php?cat={$subcat.categoryid}" align="center"> <font class="ItemsList">{$subcat.category|escape}</font></a> {if $config.Appearance.count_products eq "Y"} <br/> {if $subcat.product_count}{elseif $subcat.subcategory_count} {else} {/if} {/if} {assign var="tmp" value=$tmp+1} {/foreach} </div></td> </tr> </table> {/if} {if $tmp and $products ne "" } <br clear="left" /> <hr size="1" noshade="noshade" /> {/if} {if $products} {if $sort_fields} <div style="float: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} <br /> { include file="customer/main/navigation.tpl" } {/if*} <br style="clear:both;" /><br /> {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 ""} <p /> <hr size="1" noshade="noshade" /> {capture name=dialog} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {/capture} {include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra="width=100%"} <p /> {/if} {include file="customer/main/navigation.tpl"}
__________________
rashriaz product -x-cart gold 4.1.9 operating system -windows location - uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|