VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Hujub on February 28, 2012, 16:50:15 PM

Title: Product Name and Image
Post by: Hujub on February 28, 2012, 16:50:15 PM
Firstly Sorry if this is a common question i have tried to look around the forum  :-\

*IM USING JOOMLA 2.5 and VIRTUEMART 2.0.2 ON A LOCAL SERVER USING MAMP*

My issue is that my product name's the first word is lower case and grey and the following words are all upper case and blue
Also the Thumbnail images are all very small, i have tried to change them from 90x90 but the page just crashes

See Below

(http://img3.imageshack.us/img3/4813/screenshot20120228at153.png)

I know there must be a php or css file somewhere i can change this but cant find it.

Thank you in advance  :)


Title: Re: Product Name and Image
Post by: jenkinhill on February 29, 2012, 12:00:43 PM
Is that a commercial template/theme?

Use Firebug to examine the css - http://forum.virtuemart.net/index.php?topic=73349.0
Title: Thumbnail image,
Post by: Atayazici on March 01, 2012, 05:57:30 AM
My new challenge is the thumbnails on the default template of Virtuemart 2. I can't get them larger, when I go to configuration and increase it from 90 x 90. Is there another trick to this? thank you!
Title: Re: Product Name and Image
Post by: glasya on March 01, 2012, 11:12:35 AM
I guess that is because during upload they were resized to 90x90, what you should try is to delete one image, than reupload it when you have the bigger thumbnail settings applied. If that has the desired effect you know what to do.
Title: Re: Product Name and Image
Post by: wingreen on March 02, 2012, 01:05:33 AM
Firebug is usually the best way to find what you need to edit.  Definitely an invaluable tool!

You will need to remove your current images, change the thumbnail size and re-upload your images.  Bit of a pain but if you can organise your layouts / sizes before you add too many catergories or products its much less of a heaadache!

Good luck :)
Title: Re: Product Name and Image
Post by: PRO on March 02, 2012, 01:21:45 AM
Quote from: Atayazici on March 01, 2012, 05:57:30 AM
My new challenge is the thumbnails on the default template of Virtuemart 2. I can't get them larger, when I go to configuration and increase it from 90 x 90. Is there another trick to this? thank you!

EMPTY all the images from the resized folder. AND make sure dynamic thumbs are turned on, and they will be recreated at the larger size.
Title: Re: Product Name and Image
Post by: Atayazici on March 03, 2012, 22:42:29 PM
Thank you everyone for taking time to respond. I tried deleting the re-sized images from the folder and checking the dynamic thumbnail re-size (it was already checked). It shows as the images' property with new dimensions but the visually they are same size didn't make a difference as far as enlarging the images. I would appreciate any other recommendation.
Title: Re: Product Name and Image
Post by: Atayazici on March 03, 2012, 22:46:16 PM
I am thinking to delete the images also from the products as well as re-sized folder. Might that be the trick? Thank you!
Title: Re: Product Name and Image
Post by: Atayazici on March 03, 2012, 22:49:18 PM
Firebug?? how complicated is it. Do I need to mess with coding a lot? Thank you!
Title: Re: Product Name and Image
Post by: PRO on March 03, 2012, 22:52:09 PM
Quote from: Atayazici on March 03, 2012, 22:46:16 PM
I am thinking to delete the images also from the products as well as re-sized folder. Might that be the trick? Thank you!

no
Title: Re: Product Name and Image
Post by: Atayazici on March 03, 2012, 23:45:43 PM
Soo, what did I miss there Banquet Tables Pro? I erased the images under re-sized folder like you recommended and made sure size Dynamic Thumbnail Resizing was enabled. I still get the same results, any further help is much appreciated.
Title: Re: Product Name and Image
Post by: PRO on March 04, 2012, 14:25:36 PM
It wll be the css container holding the image. Use firebug
Title: Re: Product Name and Image
Post by: Atayazici on March 04, 2012, 21:21:24 PM
Do you mean that I should change and enlarge the size of the container using firebug? Thank you.
Title: Re: Product Name and Image
Post by: PRO on March 04, 2012, 21:40:15 PM
Quote from: Atayazici on March 04, 2012, 21:21:24 PM
Do you mean that I should change and enlarge the size of the container using firebug? Thank you.

NO, firebug allows you to look at the ss applied to things when you right click them.

THEN: you change the css in the css file
http://forum.virtuemart.net/index.php?topic=90935.0
Title: Re: Product Name and Image
Post by: Atayazici on March 04, 2012, 21:51:45 PM
Do I edit the percentage of the image container?
Title: Re: Product Name and Image
Post by: PRO on March 04, 2012, 22:48:30 PM
Quote from: Atayazici on March 04, 2012, 21:51:45 PM
Do I edit the percentage of the image container?

actually , thats not the best way.
http://forum.virtuemart.net/index.php?topic=90935.0
http://forum.virtuemart.net/index.php?topic=97744.0

You should change the category view file.

change this
<div class="width30 floatleft center">
               <?php /** @todo make image popup */
                     echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
                  ?>

to this
<div class="catimage floatleft center">
               <?php /** @todo make image popup */
                     echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
                  ?>
Title: Re: Product Name and Image
Post by: Atayazici on March 04, 2012, 23:50:44 PM
***Solved***

Changed ...\components\com_virtuemart\views\category\tmpl\default.php

line 421 <div class="width30 floatleft center"> to <div class="width100 floatleft center">

Hope this helps someone else!

THANK YOU!!
Title: Re: Product Name and Image
Post by: Atayazici on March 04, 2012, 23:52:03 PM
SOLVED!! THANK YOU !!



Changed ...\components\com_virtuemart\views\category\tmpl\default.php

line 421 <div class="width30 floatleft center"> to <div class="width100 floatleft center">

Hope this helps someone else as well!
Title: Re: Product Name and Image
Post by: PRO on March 05, 2012, 13:09:02 PM
u need to do an override. If not, your changes will be overwritten when you update
Title: Re: Product Name and Image
Post by: lipes on April 03, 2012, 05:29:12 AM
BanquetTables.pro: Its possible to remove the Image Names!? In Product Details area....

is so bad/ugly to have that names in the layout of Product Details

like dewfw23_4e851a233f6f8.jpg
and in thumbnail again dewfw23_4e851a233f6f8.jpg

where we can remove this text ?? Can find on BE or in com_virtuemart/productdetails/default.php    :/

and another thing..
It is necessarily to have and use the small picture thumb to users could click and see the popup with the big product image?
Can we apply this on the default product image, without have the small pic to do that.. like in VM1
Title: Re: Product Name and Image
Post by: PRO on April 03, 2012, 15:24:51 PM
Quote from: lipes on April 03, 2012, 05:29:12 AM
BanquetTables.pro: Its possible to remove the Image Names!? In Product Details area....

is so bad/ugly to have that names in the layout of Product Details

like dewfw23_4e851a233f6f8.jpg
and in thumbnail again dewfw23_4e851a233f6f8.jpg

where we can remove this text ?? Can find on BE or in com_virtuemart/productdetails/default.php    :/


I dont get image names,
When I first installed, I did get the "img description"

So, I guess the best place to loook is the shop media files manager.

IF, They all have the image name as description, You can just do a my sql replace to empty the field
Title: Re: Product Name and Image
Post by: lipes on April 03, 2012, 15:45:36 PM
LOL! Yes .. its true BanquetTables.pro!
All my images have text in this fields:

Unique Filename, Displayed image title, Image Alt-Text

To change this its better to download some SQL table name related with this in phpmyadmin... and in Excel Office replace the 'Displayed image title' with a empty value, right?! .. Damm for this  :P .......................
i just only have +/- 7110 images with names ............................... lol

And How about to have the popup shadow in the 'Product Main Image' and not in the 'Additional Image' thumb ? which file should i edit to change that? default_images?

tks !
Title: Re: Product Name and Image
Post by: PRO on April 03, 2012, 15:58:32 PM
Quote from: lipes on April 03, 2012, 15:45:36 PM
LOL! Yes .. its true BanquetTables.pro!
All my images have text in this fields:

Unique Filename, Displayed image title, Image Alt-Text

To change this its better to download some SQL table name related with this in phpmyadmin... and in Excel Office replace the 'Displayed image title' with a empty value, right?! .. Damm for this  :P .......................
i just only have +/- 7110 images with names ............................... lol

And How about to have the popup shadow in the 'Product Main Image' and not in the 'Additional Image' thumb ? which file should i edit to change that? default_images?

tks !

U dont have to use excel etc.

MYSQL update

update jos_table-name set column_name = WHAT you want to replace with




Title: Re: Product Name and Image
Post by: lipes on April 03, 2012, 16:14:23 PM
UPDATE `jos_virtuemart_medias` SET `file_description`=NULL

:D
Title: Re: Product Name and Image
Post by: PRO on April 03, 2012, 16:52:49 PM
Just make a backup first with akeebah so you feel better, and in case something happens

AND yes, you do always get a preview, and another confirm before it updates
Title: Re: Product Name and Image
Post by: lostmail on April 27, 2013, 21:26:45 PM
...and ??
If I create e new product I have to fill the fild image title !! -Can not save leaving it blank.
What now ??

Can i remove that code in details.php ?? Where is it ?
Don`t need the iamge filename or title...