Mod to PhilJ's mod
Hi,
moded slightly to get it more as 27Stars to work with 3.4.8 and it works fine :) {* ==================== Sub categories mod start *} {section name=cat_num loop=$subcategories} { if %cat_num.first% } <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0"> {/if} { if %cat_num.index% is div by 3} <tr> {/if} <td align="center" valign="top"> <a href="home.php?cat={ $subcategories[cat_num].categoryid }"> [img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img]</a> </td> <td align="left" valign="top"> <a href="home.php?cat={ $subcategories[cat_num].categoryid }"> <font size="3">{ $subcategories[cat_num].category|escape }</font></a> { $subcategories[cat_num].description|escape } {if $config.Appearance.count_products eq "Y"} {if $subcategories[cat_num].product_count} ({ $subcategories[cat_num].product_count } Products) {elseif $subcategories[cat_num].subcategory_count} ({ $subcategories[cat_num].subcategory_count } Subcategories) {/if} {/if} </td> { if %cat_num.last% } </tr> </table> {/if} {/section} {* ==================== Sub categories mod end *} -Nordic |
Okay that's a very sweet mod!
Is there a way to have a text listing of the subcategories on the category listing page? ie. Clicking on the main category will show a listing of the subcategories and the sub-subcategories. I've been trying to figure this out with no luck. Hope this makes sense... |
Hey guys, how would I do this same mod in 3.4.7? I'm not familiar with what changes in each version...
thanks, chris |
Hi Wild,
just copy the post of PhilJ (below) into your /customer/main/subcategories.tpl it will works with 3.4.7. GREAT MOD Saskia :D Quote:
|
My code for 3.4.9. Displays 2 columns, cat name under the image, extra space between horizontal rows
Code:
{* ==================== Sub categories mod start *} Thanks to 27stars for getting us started. |
Small Problem Combining mods
Real newbe, Thanks for a great mod, have combined main mod with 3.4.9 to run on new site migrating from Miva.
Running 3.4.8 & PHP 4.3.4RC1 but 3.4.8 mod did not work well. 2 problems, 1-still displaying "There are no available products..." http://www2.photobadge.com/customer/home.php?cat=41 2-The border around products is cut off at top?? http://www2.photobadge.com/customer/home.php?cat=46 Would welcome any help |
#1 Post your categories.tpl code here (use the CODE tags please, makes it easier to read).
# Your dialog capture is getting cut off prematurely. Post your products.tpl code here (use the CODE tags please, makes it easier to read). We can get this figured out easily I am sure. |
Display Issues
Hi adpboss, thanks for your help.
Here is the categories.tpl Code:
Here is the products.tpl Code:
|
My bad. I must havenot been paying close attention.
We need your customer/main/subcategoies.tpl file posted. I think both of the problems are there. Again, my apologies. :? |
Display Prob
Hello adpboss,
Thank you, Here it is. Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya Exp $ *} |
All times are GMT -8. The time now is 01:20 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.