Page 1 of 1

thumbnail icons for categories

Posted: Wed Apr 20, 2011 5:15 pm
by ckonig
This mod adds a thumbnail icons for each category to the categories module in the frontend.
preview_categories.PNG

preview_categories.PNG (5.79 KiB) Viewed 9828 times

The picture can be configured in the backend.
I only used the thumbnails for those categories that do not have a parent.

This mod requires a field "thumbnail" to be added to the database table categories.

You also should replace the #category definitions in your stylesheet with the following code.

Code: Select all

#category ul {
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 2px;
	padding-left: 0px;
	list-style: none;
	xlist-style: url('../image/bullet_1.png');
}

#category > ul li {
	margin: 10px 0;
}

#category ul li a {
	display: block;
	margin: 5px 0 ;		
	height: 20px;
	line-height: 20px;
	text-decoration: none; 
	font-size: 12px;
	font-weight: bold;
}
#category ul li ul{
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 8px;
	padding-left: 12px;
	list-style: url('../image/bullet_1.png');
}
#category ul li a:hover {
	text-decoration: underline;	
}

#category ul li a img {
	vertical-align: bottom;
	margin-right: 7px;	
}

#category ul li a b {
	color: #7d3e97;
}

#category ul li ul {
	padding-left: 25px;	
	list-style: url('../image/bullet_1.png');
}

#category ul li ul li a {
	font-weight: normal;
}

Re: thumbnail icons for categories

Posted: Sat Jul 16, 2011 8:08 pm
by silanli_53
error:(

Error: Unknown column 'thumbnail' in 'field list'
Error No: 1054
UPDATE category SET thumbnail = 'data/brother.gif' WHERE category_id = '94'

Re: thumbnail icons for categories

Posted: Sat Jul 16, 2011 10:24 pm
by silanli_53

Code: Select all

ALTER TABLE `category`
ADD `thumbnail` VARCHAR( 255 ) NOT NULL
ı dont speak engilis sory..:(
thank you:)

Re: thumbnail icons for categories

Posted: Mon Jul 25, 2011 4:43 am
by PetracheNicolae
this is nice. for wich version of opencart is it? thanks

Re: thumbnail icons for categories

Posted: Mon Jul 25, 2011 3:32 pm
by ckonig
I works for me on 1.4.9.5, have not tested it yet on 1.5.x

Re: thumbnail icons for categories

Posted: Tue Oct 18, 2011 7:08 am
by electron
Hey, do you know how we can get this working on 1.5 ?

Re: thumbnail icons for categories

Posted: Sat Oct 22, 2011 9:41 pm
by ckonig
i am sorry, i have not been working on 1.5.x

Re: thumbnail icons for categories

Posted: Sat Jul 14, 2012 3:21 pm
by blue_razorz
I really need this help. I used version 1.5.3.1 please anyone?

Re: thumbnail icons for categories

Posted: Mon Jul 16, 2012 8:26 pm
by ckonig
Do you already have vQmod installed and working?

Re: thumbnail icons for categories

Posted: Wed Sep 26, 2012 1:12 pm
by blue_razorz
Tried and nothing happened. Any please i really need this vqmod. cheers

Re: thumbnail icons for categories

Posted: Mon Apr 14, 2014 9:58 pm
by p206ab
How do I install this in Opencart? ???

Re: thumbnail icons for categories

Posted: Mon Apr 14, 2014 10:20 pm
by OSWorX
p206ab wrote:How do I install this in Opencart? ???
Simple:

1. install - if not already done VQmod: https://code.google.com/p/vqmod/
2. copy that xml-file into ../vqmod/xml folder
3. alter database as described above

done.

Re: thumbnail icons for categories

Posted: Tue Apr 15, 2014 8:58 pm
by p206ab
OSWorX wrote:
p206ab wrote:How do I install this in Opencart? ???
Simple:

1. install - if not already done VQmod: https://code.google.com/p/vqmod/
2. copy that xml-file into ../vqmod/xml folder
3. alter database as described above

done.
Thank you!
Still doesn't work in 1.5.6 but I'm getting closer :)

Re: thumbnail icons for categories

Posted: Sat Nov 22, 2014 8:12 am
by emrebozok
anyone find solution for 1.5.5-1.5.6 ?