![]() |
Re: Subcategory text & images for x-cart 4.1.5
This is exactly what I wanted and I followed the instructions exactly, but I cannot get Images for my sub-categories to show up.
Is there another change other then the one in blue above that will get the images to show up??? thanks |
Re: Subcategory text & images for x-cart 4.1.5
Great Mod!
Works with 4.1.3 :) |
Re: Subcategory text & images for x-cart 4.1.5
Did anyone manage to solve why Images werent showing up? I've installed this mod and all seems fine except I cant see the images!
Is the code in question <td class="ColumnTitles" valign="top"><a title="{$subcat.description}" 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="" /> anyone have any ideas? thanks :) |
Re: Subcategory text & images for x-cart 4.1.5
Ok I have x-cart 4.1x and my categories.php does not have that line of code? does anyone have this mod or anything like it that is working in my version of x-cart Please someone help:
|
Re: Subcategory text & images for x-cart 4.1.5
I have 4.1.3 and with this version it is at
Line 117 in myshopurl/include/categories.php |
Re: Subcategory text & images for x-cart 4.1.5
Quote:
That is because there is an error in the code, everybody is doing a nice copy and paste without looking at the code as to what it does. In the code it says: {$xcart_w eb_dir}/default_image.gif{/if} As many of you can see, there is an ampty space between the w and the eb of the word xcart_web_dir. Get rid of this empty space and it will work fine. |
Re: Subcategory text & images for x-cart 4.1.5
Quote:
well hope you have fiquerd it out by now, but i relized that you need to add subcatagories to your catagory in order for your catagories icons to show up. |
Re: Subcategory text & images for x-cart 4.1.5
thank you for this great mod :-) if you happend to fiquir out how icons can line up correctly please pass me the code. here is how it lookes on my site http://www.zafafy.com/shop/home.php?cat=318
|
Re: Subcategory text & images for x-cart 4.1.5
Great mod thanks for sharing, one issue I see is it looks great at 1024x768 and less but any resolutions above this and the text moves off to the side of the image. So in my case running 1280x1024 and 1440x900 it looks a mess. Is there any way to make the text stick under the image with out going to tables ?
|
Re: Subcategory text & images for x-cart 4.1.5
Really like this mod! Adjusted a few things to get it to work with my site. Here's a little variation on the theme::D/
Left this: /includes/categories.php as in post #1. In /skin1/customer/main/subcategories.tpl, used a little bit like this: {if $subcategories} {assign var="cntr" value="0"} <table cellspacing="5" width="100%" border="0"> <tr align="right"> {foreach from=$subcategories item=subcat} {if $cntr is div by 2} <td colspan="3" align="right"></td></tr><tr> {/if} {if $first_subcat ne "Y"} {assign var="first_subcat" value="Y"} {/if} <td align="right"><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}/self-defense-weapons.jpg{/if}" alt="{$subcat.category|escape}" /></a></td> <td align="right" class="ColumnTitles"><a title="{$subcat.category|escape}" href="home.php?cat={$subcat.categoryid}"> <font class="ItemsList">{$subcat.category|escape}</font></a></td> {if $config.Appearance.count_products eq "Y"} {if $subcat.product_count}{$subcat.product_count}{$lng .lbl_products} {elseif $subcat.subcategory_count}{$subcat.subcategory_cou nt}{$lng.lbl_categories|lower} {else} 0 Products {/if} {/if} {assign var="cntr" value=$cntr+1} {/foreach} </tr> </table> {/if} This validates as xhtml/transitional and displays a category image that has been uniformly set to 105px on the long side. Then puts the text link for the subcategory name to the right of the image. It uses title tags with the two hrefs and an alt tag for the image. These are all subcategory names. Keyword bliss. In skin1/skin1.css, a few changes: .ColumnTitles { padding-top: 12px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; text-align: left; margin: 0px; width: 33%; } It works for me, may play with some spacing and alignment a little more, see it here: http://www.misdefenseproducts.com/Home-Security-Decoys-p-1-c-272.html |
All times are GMT -8. The time now is 11:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.