![]() |
Re: Mod for subcategories in columns with descriptions and icons
I fixed my original post on page 14, so everything should work fine now.
Let me know if there are any more issues |
Re: Mod for subcategories in columns with descriptions and icons
Hey,
I tried the post revision on page 14... my layout for subcategories is all stuck on the default image. I have an image uploaded under the "zaki" category, but it's not connecting http://districtsixmusic.com/store/home.php?cat=249 |
Re: Mod for subcategories in columns with descriptions and icons
What version of X-Cart are you using?
|
Re: Mod for subcategories in columns with descriptions and icons
I was wondering if anyone knew how to call the root category icon from the filesystem instead of the DB?
Version 4.0.x |
Re: Mod for subcategories in columns with descriptions and icons
hi
i have the this thread over and over and tried lots of different ways, everything works fine aprt from showing the Categories description can somebody please explain what the correct smarty tag is or what i need to change and add to display this, x-cart version in sig |
Re: Mod for subcategories in columns with descriptions and icons
This looks good. But is it possible to have the image/text link to another subcatagory instead of a product?
|
Re: Mod for subcategories in columns with descriptions and icons
If there are subcategories, it will link to the subcategories, otherwise, it will link to the products.
|
Re: Mod for subcategories in columns with descriptions and icons
Hello -
I am almost have this perfect for my site as I have stripped away some code. Can some one please tell me how I can make the catagory icons (thumbnails) show up above the text and make those images a link as well. Thank you Here is my current code ------------------------------- Code:
{* $Id: subcategories.tpl,v 1.43.2.7 2005/10/28 05:23:51 svowl Exp $ *} ---------------------- Edit, it looked good until going into one of the suncats as I wiped out the products, hmmmmm...... |
Re: Mod for subcategories in columns with descriptions and icons
Hi there,
try to change {if $subcategories[cat_num].icon_url} ... {/if} to <A href="home.php?cat={ $subcategories[cat_num].categoryid }"><IMG alt="{ $subcategories[cat_num].category|escape }" border="0" src="{if $subcategories[cat_num].icon_url}{$subcategories[cat_num].icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$subcategories[cat_num].categoryid}{/if}"></a> |
Re: Mod for subcategories in columns with descriptions and icons
1 Attachment(s)
That worked great 27Stars- Thank you! This really should be built into X-cart.
If you saw my last part of the edit, I took the products off and changed some code about. When I click one of the icons now it goes to proper subcat but shows no products (my fault). 1 - I see no products (I know that is because I took out the variable) I was trying to get it to show just the icon and sub cat name and no products underneath as with this mod as it is. But that wiped out my products inside the subcat where they should show. I am almost keep having it but mess it up :( Thank you again I am after this looking the way it does with these as the subcats then the page you would get there products |
Re: Mod for subcategories in columns with descriptions and icons
I tried it but it makes my category show up with nothing in it? :( Any help would be greatly appreciated.
|
Re: Mod for subcategories in columns with descriptions and icons
Hello,
I've reviewed this whole thread and have seen mention of this, but no working solutions. I'm currently working with a X-Cart version 4.0.19 and am trying to get the subcategory descriptions to show up under the category title. I've tried: { $subcategories[cat_num].description|escape } but absolutely nothing happens using that. I suspect I'm calling this wrong, but don't have a clue how else it might be called. Any help on this much appreciated. Thanks. |
Re: Mod for subcategories in columns with descriptions and icons
I am using the version shown below and it shows that there are no subcategories available with some clickable links that link back to the main page. Can someone please clarify what code needs to be replaced in my version?
thanks. |
Re: Mod for subcategories in columns with descriptions and icons
Ok, I have this mod working sort of, It is displaying my categories, but for some reason it starts with a blank space, and does not include my last category. The last category that should appear is dancing poles. It shows up fine in the sidebar menu. Thanks. http://72.34.43.238/store/
Code:
{* $Id: subcategories.tpl,v 1.43.2.7 2005/10/28 05:23:51 svowl Exp $ *} |
Re: Mod for subcategories in columns with descriptions and icons
hi, great mod, but how do I show sub-subcategories, I’d like to show the following;
Subcategory Title Sub-subcategory Title - Sub-subcategory Icon Any help welcome, thanks |
Re: Mod for subcategories in columns with descriptions and icons
why do i get bracket img bracket displaying instead of the image?
Code:
{* $Id: subcategories.tpl,v 1.34 2003/10/06 10:04:00 svowl Exp $ *} Version 3.5.12 http://www.miamistartruckparts.com/shop/customer/home.php?cat=88 |
Re: Mod for subcategories in columns with descriptions and icons
In your code you have [img] this should be changed to a valid img tag i.e.:
Code:
<img source=blah> |
Re: Mod for subcategories in columns with descriptions and icons
U Da Man!
|
Re: Mod for subcategories in columns with descriptions and icons
After applying this mod I now have my site navagation showing twice at the top of page, where as before it was showing only once. What can I do to get it back to showing only once?
Adrenalin Village :: Paintball Adrenalin Village :: Paintball |
Re: Mod for subcategories in columns with descriptions and icons
Well after digging thru this thread I finally got this to work. I am running 4.0.17 here is my subcategories.tpl for anyone interested:
Code:
And here is how it looks: http://www.coopers-seafood.com/shop/home.php?cat=15 BTW I do store my files in the file system and NOT the database. Thanks for all the help in this thread. |
Re: Mod for subcategories in columns with descriptions and icons
I used the code exactly as above and now have two columns as seen here:
http://www.partypresence.co.uk/store/home.php?cat=248 How do I get the icons to show to the left of the headings (which part of the code do I edit?) and how can I get the columns to align left rather than centred like they are as I changed this part: Code:
<td valign="top" align="center"> and changed "center" to "left" but nothing happened? Thanks for your help .... and thanks Padraic (Balinor) for pointing me to this mod :) |
Re: Mod for subcategories in columns with descriptions and icons
OK, all done and working now on version 4.0.19 as seen here:
http://www.partypresence.co.uk/store/home.php?cat=248 The subcategories code is: Code:
{* $Id: subcategories.tpl,v 1.43.2.9 2006/06/27 08:22:01 svowl Exp $ *} Hope that helps someone! Thanks so much for the emails Robbert .... couldnt have done it without you!!!! |
Re: Mod for subcategories in columns with descriptions and icons
mrkenzie's mod worked wonders. However, I have an appearance issue on one subcat only http://www.poweredag.com/home.php?cat=3 where the second row subcat title is to the right of the image. It only happens with this subcat. Any help would be appreciated.
|
Re: Mod for subcategories in columns with descriptions and icons
Quote:
Hi, I havent tried the mod yet but just looking at your site - have you tried reducing the number of characters in the title to see if this makes a difference? Alternatively, have you tried making the image area slightly wider. Just a thought. |
Re: Mod for subcategories in columns with descriptions and icons
Thanks BizzyB,
It was a title character issue as you suggested, but I solved it with a hyphen. |
Re: Mod for subcategories in columns with descriptions and icons
where do I find categories.php? to change the code
|
Re: Mod for subcategories in columns with descriptions and icons
ok I found categories.php I have X-Cart v 4.1.x and can not find that code in categories.php?does anyone have this mod working on my version b/c I can't get any of them to work so far
|
Re: Mod for subcategories in columns with descriptions and icons
Hey,
I'm using the same code as KarenTown but It just wont find my category images.. PHP Code:
I am using this on version 4.1.6 but its strange is the image location different in this version? thanks for looking |
Re: Mod for subcategories in columns with descriptions and icons
Quote:
I have v4.1.3 and used mrkenzie's mod on page 14. It worked like a charm for me. The images should be uploaded to the file system, and I called them from the admin section subcat menu. You can see it working here: http://www.poweredag.com/Commercial-p-1-c-3.html Hope that answered your question. |
Re: Mod for subcategories in columns with descriptions and icons
Looks like a great mod. Unfortunately I've forgot to keep updated with this tread.
ANybody knows which code I need to know for 4.0.17? 4.0.X version will do. I don't need the DSEFU code as I am using DSEFU PRO, but images are stored in the file system. Thanks for the help. |
Re: Mod for subcategories in columns with descriptions and icons
Just read through the thread, you'll get to the 4.0.x version after a couple of pages
|
Re: Mod for subcategories in columns with descriptions and icons
Got it partially working. Somehow the images are not showing up in FireFox. In Internet Explorer everything works fine.
Looks like the images are trying to load from a different url in FireFox, and therefore it cannot find the images. Really strange... Code:
{* ==================== Sub categories mod start *} |
Re: Mod for subcategories in columns with descriptions and icons
Keep reading...I added a modification to call the images from the filesystem instead of the DB.
|
Re: Mod for subcategories in columns with descriptions and icons
Quote:
I did ;). Read all 20 pages. If I am correct, this was your solution for the file system: Code:
{if $subcategories[cat_num].icon_url}[img]{$subcategories[cat_num].icon_url}[/img]{else}[img]{$xcart_web_dir}/default_icon.gif[/img]{/if} But that one is already implemented, and only works for the internet explorer browser. Still not getting any images in my FireFox browser. Checked all code snippets from other users, and can't find the solution. What am I doing wrong? |
Re: Mod for subcategories in columns with descriptions and icons
Sorry, mis-read the code. When you view the source code in firefox, it is showing the correct link? Do you have the permissions set properly on the files folder where the images are? Do you have the .htaccess file in there set to 'allow from all'?
|
Re: Mod for subcategories in columns with descriptions and icons
Just viewed the source:
Code:
<td align="center" valign="top"> I'm testing it on the localhost server at the moment. And as you can see, the slashed are used in two ways in the link: / and \ Normally it should just be like: / Somehow Internet Explorer is not having any problems with this, but FireFox does. Haven't checked it on my live server yet, don't want to take the risk of having the customers experiencing the problem. |
Re: Mod for subcategories in columns with descriptions and icons
I'm sure I've read this somewhere before and want to link the two things together, but...
I'm trying to get the following code to display the first product image from within the category if the category image does not exist. <img src="{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/{GET FIRST_PRODUCT_IMAGE.jpg}{/if}" alt="{$subcat.description}" align="middle" border="0"> I know thats not the code I need :P but I'm crap with php and its doing my head in. Please can anyone help. Cheers Joe |
Re: Mod for subcategories in columns with descriptions and icons
I dont know how the code works very well, I was able to follow the instructions and get the subcategory images to work, however I cant them to stay two in a row. No matter where I set div by I cant get two images in a single row.
div by 3 is 4 in a row, div by 2 is three on top, two in the middle, and one on the bottom, and div by 1 is one in each row. What am I doing wrong? Here is one of the pages http://bulletproofautomotive.net/store/home.php?cat=261 Im wondering if it has anything to do with the images not all being the exact same size? I have the latest version..4.X |
Re: Mod for subcategories in columns with descriptions and icons
This is a great mod that should be implemented into x-cart. It is working on my website but it seems the text is not centered under the image. I noticed that if I minimize the page it does center up. Currently running my thumbnails at 100 and wondering if I should resize them bigger to get them more centered.
|
Re: Mod for subcategories in columns with descriptions and icons
Can someone please enter the complete code for this mod as its quite confusing at the moment.
|
All times are GMT -8. The time now is 10:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.