Mod for subcategories in columns with descriptions and icons
Here is new subcategories.tpl to display subcategories in columns
with descriptions and icons. Example here: http://www.bitsnspu.finestshops.com/store/customer/home.php?cat=2 Enjoy :wink: Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya Exp $ *} |
.
that look good, do you know code if I want to movie subcatagories under the featured products instead of top on it,
|
Re: .
Quote:
Just move this code from the end Code:
{if $products eq ""} before this one Code:
{capture name=dialog} |
Thank you !! I modified this a tiny bit and I have exactly what I need. Woo hoo!!!
:D Liz |
How do you get the subcatergory text to be underneath the icon, rather than to the right hand side?
|
this is for v3.4.5
Code:
{* $Id: subcategories.tpl,v 1.32 2003/04/24 09:50:33 svowl Exp $ *} specify the number of columns where it says 'div by 3' |
:wink: Very Nice! Good job! Definitely one to put in the archive for later use.
Regards, Glen |
Thanks for that PhilJ, works a treat.
|
Display works fine but new warning appears
I copied over the mod to subcatagories.tpl and the layout works great except now I get a warning-
Warning: Unknown modifier '/' in /x-cart/Smarty-2.5.0/plugins/modifier.regex_replace.php on line 13 Any ideas on how to get rid of it? If I restore the file to default the message goes away. I tried to check the file but don't know enough about php to figure it out. I'm using x-cart 3.4.8, php 4.2.3. Any help would be great. thanks.[/b] |
Same problem here
Warning: Unknown modifier '/' in /home/virtual/site42/fst/var/www/html/store/Smarty-2.5.0/plugins/modifier.regex_replace.php on line 13
Note that magic_quotes_gpc is disabled on my server. Do I need to add a couple of escapes someplace? This is exactly the kind of mod I was looking for. Looks great on the demo site. Thanks. |
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 $ *} |
Ok for starters in subcategories.tpl
replace Code:
{capture name=dialog} with Code:
{capture name=dialog} Right above the start of the Mod. This will lose the extra text saying that there are no products. I'm working on the other issue. |
Category Display Issues
Hello adpboss,
Thank you for your mod, worked great. |
First thanks for this MOD, it was just what I was looking for :)
I'm hoping someone can help me here I'm using this MOD successfully on our site, with one problem. If I use any html code in my description all the codes show in the description created next to the image. http://www.wahmboutique.com/boutique/customer/home.php?cat=303 The code is applied correctly above the subcategory name when you open the subcategory. http://www.wahmboutique.com/boutique/customer/home.php?cat=302 Is there a way to fix this and if so, can someone lead me in the right direction. Thanks in advance, May __________________ Version 3.5.9 |
May,
Can you post your subcategories.tpl and your subcat description for Lil Mermaids? Bobby |
I'll get the code in a bit, but for the description - the only html used in the description right now is a
. May |
I was hoping that someone would help me in troubleshooting this script. I implemented the script and see the extra columns with icons, but I don't get the descriptions or product counts.
Here is a link to one of my categories: http://www.eartpark.com/home.php?cat=253 Here is a link to one of the sub-categories: http://www.eartpark.com/home.php?cat=263 As you can see, there is a text description in the sub-category. Why would it not display? Here is the code that I am using in subcategories.tpl: Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya Exp $ *} |
Add this to get the description
Code:
|
Quote:
Thanks for the quick reply, but shouldn't the description for the subcategories come from something that looks like this? The code you sent looks like what I would use for product descriptions... Code:
{$subcategories[cat_num].category|escape} |
You are correct. I have made a bo-bo.
:? #-o |
WHAT??? :? You of all people have made a boo bo? [-X I never thought I would see the day. :lol:
|
Second time today.
I'm really depressed about it. Time for a drink! |
2 in one day. #-o Sure you didnt start drinking earlier? :lol:
|
#-o
|
May,
I think the fix for your problem is in this bit of code from subcategories.tpl Quote:
Delete |escape from $subcategories[cat_num].description so you have this: Quote:
and that should fix it. Bobby |
THANK YOU!! That did the trick :-)
|
I would love to implement this mod but I am really new to x-cart and have version 4.0.5....and wonder if anyone has implemented on this version?
I read through the entire post and am afraid I would screw it up. Wonder if anyone can post exact steps to implement? It would be appreciated greatly. Thanks, Dalmuti |
Quote:
Bobby, Thanks for the code, but it still doesn't work on my site. Any other suggestions? Adam |
Quote:
I have implemented this on 4.0.6 and it works with one small modification. All you have to do is edit the skin1/customer/main/subcategories.tpl file and replace the code with this Code:
{* $Id: subcategories.tpl,v 1.43.2.2 2004/10/07 07:08:51 max Exp $ *} |
That works perfect in 4.05 as well.
Thanks so much for the code. Dalmuti :wink: |
|
All times are GMT -8. The time now is 10:56 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.