Subcategory Images

I’m working on upgrading my store from 2.0.14 to 2.1.1 and one of the addons I like to use is the Subcategory Thumbs from [url]http://forum.cs-cart.com/showthread.php?t=11307&highlight=subcategory+images[/url]



Unfortunately CS-Cart has changed some code that made it so that the addon on that page breaks the SEO stuff.



I changed the addon so that the SEO will work and so that the category title is below the image.



To install this addon, just copy the files over to your store, go to your admin, install the addon. It’s about as easy as it can get.



By the way, all the credit goes to Baballuci not me. I just changed a couple of lines of code that’s all.



Brandon

subcategory_thumbs.zip

Well, I screwed up on the first post. Unfortunately my changes didn’t fix the way the products were displayed.



I fixed the code and have replaced the uploaded file. If you download the file now everything is updated and should work.



Sorry for the inconvenience.



Brandon

Thanks Brandon!

I installed the sub category menu but I am getting image not displayed. Is there a work around for this?

What version are you on? This is for version 2.1.1



Thanks,



Brandon

I do not know what version he is using, but I am unable to get this working in 2.1.1 with the default sample data loaded.



I can get it to work if I specifically upload a thumbnail image for a category, but not if I only upload a full size image and let cs-cart auto generate the thumbnail.



Please advise,



David

[quote name=‘Triplets’]I do not know what version he is using, but I am unable to get this working in 2.1.1 with the default sample data loaded.



I can get it to work if I specifically upload a thumbnail image for a category, but not if I only upload a full size image and let cs-cart auto generate the thumbnail.



Please advise,



David[/QUOTE]



I don’t think the software actually creates a thumbnail anymore. It uses the detailed and resizes it if need be.

OK. You are saying it resizes it on the fly? In the Admin area for a Category it says:



Thumbnails will be generated from detailed images automatically, but you can also upload them manually



I can only get this Addon to work if I upload them manually.



Please advise.



David

Read AndyYe’s explanation in this bug report about image links not showing in Google Base feed. [url]http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=2092[/url]

Are you saying the auto generated thumbnails will not work with this addon anymore. We are forced to manually upload thumbnails for categories?

That’s how I am interpreting it.

Well since I always upload my thumbnails separate from my detailed images I didn’t know this did this.



On a side note, this addon removes the category image and so you actually don’t have a link to the detailed image. Since you don’t have a link to the detailed image, couldn’t you just upload only the thumbnail? Just a thought.



I messed around with the code, but since I’m not the one that actually created this in the first place I am not exactly sure how the code works.



I’m sure this is something that Joe or someone could work out no problem, but it is beyond me, sorry.



Brandon

[quote name=‘brandonvd’]Well since I always upload my thumbnails separate from my detailed images I didn’t know this did this.



On a side note, this addon removes the category image and so you actually don’t have a link to the detailed image. Since you don’t have a link to the detailed image, couldn’t you just upload only the thumbnail? Just a thought.



I messed around with the code, but since I’m not the one that actually created this in the first place I am not exactly sure how the code works.



I’m sure this is something that Joe or someone could work out no problem, but it is beyond me, sorry.



Brandon[/QUOTE]



Thank you Brandon it works great for me. the sub-cat images are working with SEO links. The article that CS-Cart have in the KB to show sub-category images breaks the SEO links , yours works perfectly. I have not tried to upload to Google Base yet after I upgraded to 2.1.1 but I looked at the Image_links table in the database and all looks good, I hope it works when I upload to Google base .



Thank you for sharing this great addon.



Joe

Update: This works on any existing categories before the 2.1.1 update, so any newly created category using the detail image to generate the thumbnail will not work unless you upload the thumbnail separately.