VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: CreativeDesigns on July 16, 2012, 16:24:58 PM

Title: Remove Manufacturer Name, Keep image
Post by: CreativeDesigns on July 16, 2012, 16:24:58 PM
On my clients site http://www.stylenouveau.co.za/designers.html I have included the manufacturers logo's, therefore I do not need the name to appear as well.
Is there a way of removing the names of the manufacturers?
Title: Re: Remove Manufacturer Name, Keep image
Post by: ivus on July 18, 2012, 08:00:20 AM
Hi CreativeDesigns,

the simplest way to achieve this without core hacks is to add this into your stylesheet for that template page

.manufacturer-view-default .manufacturer h2 {
  display:none;
}

you can test it in Firebug/inspector first.
Title: Re: Remove Manufacturer Name, Keep image
Post by: CreativeDesigns on July 19, 2012, 10:48:50 AM
This was really helpful! thank you so much!
Any idea how/where in Virtuemart to increase the size of the "thumbnails" for the manufacturers?
I know I made the images 300 x 300, but they are being resized to 90 x 90 :( ARGH!
Title: Re: Remove Manufacturer Name, Keep image
Post by: ivus on July 19, 2012, 11:08:29 AM
Hi CreativeDesigns,

I'm not 100% sure how the images thumbnail function works, but I remember having this issue on my site too where I had changed the image dimensions and expected VM to resize them for me, but it didn't.

I think to fix it (to the new size), I deleted the images that were appended with the wrong size dimensions out of folders. IE "/manufacturer/resized/aldo-brue_90x90.jpg" and then reloaded the page again.
Because both the FILE URL and the THUMB URL are written to the db, I think VM does a FILE_EXISTS() check first and if it doesn't, it'll then recreate the images using the dimensions you specified in your config.


Give that a go and see what happens... no harm, no foul if it doesn't work as all you'll be doing in generating new images. (you may want to backup the folder before doing any deletes).


Good luck.
Title: Re: Remove Manufacturer Name, Keep image
Post by: CreativeDesigns on July 19, 2012, 11:33:12 AM
Thanks for the help. I'll just leave them as is.. Doesn't look too bad :P

Thanks again and have a great day!