Friday, December 20, 2013

How to change product image dimensions in VirtueMart

If product images in your template have landscape (portrait) orientation and you  need to change it to a new image with portrait (landscape) orientation:


    1. Login to the administratior backend of the Joomla site.

    2. Go to the top menu Components ->Virtuemart.

virtuemart_product_image_dimentions_changing_1


    1. Click on Products on the left.

virtuemart_product_image_dimentions_changing_2


    1. Look for the product you want to change the image of and click on it.

    2. Click the Product Images tab to upload a new image.

virtuemart_product_image_dimentions_changing_3


    1. Scroll down till you see Browse  under Upload File and click on it.

virtuemart_product_image_dimentions_changing_4


    1. Navigate to a new image that has a different (landscape vs portrait)orientation on your computer, click on it and click Open.

virtuemart_product_image_dimentions_changing_5


    1. Click on Save at the top right of the page.

    2. You should see a message saying “Product successfully saved”.virtuemart_product_image_dimentions_changing_6

      Proceed to uploading a thumbnail (needed only unless Enable Dynamic Thumbnail Resizing under VirtueMart -> Site tab is enabled) – under Upload File select Replace thumb, click Browse to navigate to the image and upload it. Click Save.


    3. Open the product info page from the front ends of your site in the Firefox browser with Firebug installed. Using Firebug you need to determine what height the new image should be and what line in .css should be edited for that.

virtuemart_product_image_dimentions_changing_7


    1. Open  the Firebug window  by clicking on its icon at the top right corner of your Firefox browser.

    2. Select Click an element in the page to inspect.

    3. Click the image frame and manually change its height in Firebug.

virtuemart_product_image_dimentions_changing_8


    1. Right click on the name of the .css file in Firebug and select Copy location.virtuemart_product_image_dimentions_changing_9

      It should be a virtuemart.css located in the templates/theme_###/css/ folder on your FTP, butsometimes a different file/location depending on your particular template design.


    2.  Open an empty file and right click to paste the location. Look for the same .css on your FTP  file and open it to make the changes.

    3. Copy the whole line where the height was changed from Firebug  and change the same line in .css with it.

    4. Save the changes made to the .css file.

virtuemart_product_image_dimentions_changing_10


    1. Refresh the product page again. The frame for the new image should now look correctly.

virtuemart_product_image_dimentions_changing_111



How to change product image dimensions in VirtueMart

No comments:

Post a Comment