Monday, 26 September 2011

Virtuemart Additional Images not working.

Last week I was having this weird image problem adding additional images to Virtuemart through the 'media' button.

This is a temporary solution until I get round to looking at why the code doesn't work.


* save the picture with better name.

* go into the database and duplicate an entry , like

INSERT INTO `jos_vm_product_files` (`file_id`, `file_product_id`, `file_name`, `file_title`, `file_description`, `file_extension`, `file_mimetype`, `file_url`, `file_published`, `file_is_image`, `file_image_height`, `file_image_width`, `file_image_thumb_height`, `file_image_thumb_width`) VALUES
(13, 649, '/components/com_virtuemart/shop_image/product/LJstripeysweatshirt4.jpg', 'Stripey Sweat Shirt', '', 'jpg', 'image/jpeg', 'http://www.oceanblueclothing.com/components/com_virtuemart/shop_image/product/LJstripeysweatshirt4.jpg', 1, 1, 1600, 1600, 120, 120);

Change the file names and Product Id accordingly.

* you'll need to ftp your full size image into
components/com_virtuemart/shop_image/product/

* ftp your thumbnail into  components/com_virtuemart/shop_image/product/resized

the filename of the thumbnail should be the same as full image but have '_120x120 at the end.  For example

FULLSIZEIMAGENAME_120x120.jpg

This will then work.  I'll get back to you with a full solution :)


3 comments:

Zee said...

did you find a solution ?

Zee said...

did you find a solution ?

LittleRipples said...

Hi Zee

No it's still on my 'to do' list. If you discover any clues if your searching for a solution then let me know. :)