| ||||||||||
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 |
#11
|
|||||||
|
|||||||
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 |
|||||||
#12
|
|||||||||
|
|||||||||
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...
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#13
|
|||||||
|
|||||||
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 |
|||||||
#14
|
|||||||
|
|||||||
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 Quote:
|
|||||||
#15
|
|||||||||
|
|||||||||
My code for 3.4.9. Displays 2 columns, cat name under the image, extra space between horizontal rows
Code:
Thanks to 27stars for getting us started. |
|||||||||
#16
|
|||||||
|
|||||||
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 |
|||||||
#17
|
|||||||||
|
|||||||||
#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. |
|||||||||
#18
|
|||||||
|
|||||||
Display Issues
Hi adpboss, thanks for your help.
Here is the categories.tpl Code:
Here is the products.tpl Code:
|
|||||||
#19
|
|||||||||
|
|||||||||
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. |
|||||||||
#20
|
|||||||
|
|||||||
Display Prob
Hello adpboss,
Thank you, Here it is. Code:
|
|||||||
|
|||
X-Cart forums © 2001-2020
|