{"id":8548,"date":"2011-06-17T04:42:02","date_gmt":"2011-06-17T08:42:02","guid":{"rendered":"http:\/\/info.template-help.com\/?p=8548"},"modified":"2015-01-26T07:42:15","modified_gmt":"2015-01-26T12:42:15","slug":"how-to-manage-product-images-in-zencart","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-manage-product-images-in-zencart.html","title":{"rendered":"ZenCart. How to manage product images dimensions"},"content":{"rendered":"<p>In this tutorial you will learn how to manage product images dimensions in ZenCart template(s).<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=L7TNna-njI0?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to manage product images dimensions<\/a>\r\n\r\n<p>Small &#8211; Thumbnail images displayed on the home page and product listing pages.<\/p>\r\n<p>Medium \u2013 Displayed on the individual Product Info pages.<\/p>\r\n<p>Large \u2013 The image which is accessed by clicking the \u2018larger image\u2019 link on the Product Info pages. <\/p>\r\n\r\n<ol>\r\n<li><p>You can change the sizes in your admin panel in <strong>Admin > Configuration > Images<\/strong>.<\/p><\/li>\r\n<li><p>Options available to change the thumbnail size are the following:<\/p>\r\n\r\n<ol>\r\n\t<li><p>Small Image Width<\/p><\/li>\r\n    <li><p>Small Image Height<\/p><\/li>\r\n   <li><p>Product Listing Width<\/p><\/li>\r\n   <li><p>Product Listing Height<\/p><\/li>\r\n   <li><p>Product New Listing Width<\/p><\/li>\r\n   <li><p>Product New Listing Height<\/p><\/li>\r\n   <li><p>New Products Width<\/p><\/li>\r\n   <li><p>New Products Height<\/p><\/li>\r\n   <li><p>Featured Products Width<\/p><\/li>\r\n   <li><p>Featured Products Height<\/p><\/li>\r\n   <li><p>Product All Listing Width<\/p><\/li>\r\n  <li><p>Product All Listing Height<\/p><\/li>\r\n\r\n\t\t<\/ol>\r\n\t\t\r\n<p class=\"attention\">IMPORTANT: All width values and all the height values must be same. Specifically, options 1,3,5,7,9 and 11 must be the same. And, 2,4,6,8,10 and 12 must be the same.<\/p>\r\n\t\t\r\n<\/li>\r\n\r\n\r\n<li><p>Change your images size and save changes using <strong>update<\/strong> button:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size1-300x210.jpg\" alt=\"zencart_img_size1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-38525\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size1-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size1-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<\/li>\r\n<li><p>Open the product info page from the front end of your site in the Firefox browser with <a href=\"\/help\/firebug-mozilla-firefox-plugin.html\" target=\"_blank\">Firebug<\/a> installed. Using Firebug you need to determine what height the new image should be and what line in .css should be edited for that.<\/p>\r\n<\/li> \t\r\n\r\n<li><p>Open  the Firebug window  by clicking on its icon at the top right corner of your Firefox browser.<\/p><\/li>\r\n<li><p>Select Click an element in the page to inspect.<\/p><\/li>\r\n<li><p>Click the image frame and manually change its height in Firebug.<\/p><\/li>\r\n\r\n<li><p>Right click on the name of the .css file in Firebug and select Copy location: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size2-300x210.jpg\" alt=\"zencart_img_size2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-38526\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size2-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size2-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/06\/zencart_img_size2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<\/li>\r\n\r\n<li><p>It should be a <strong>stylesheet_main.css<\/strong> located in the<strong> \/includes\/templates\/themeXXX\/css\/<\/strong> folder on your FTP, but sometimes a different file\/location depending on your particular template design.<\/p>\r\n\r\n<\/li>\r\n<li><p>Change image width\/height to fit your needs.<\/p><\/li>\r\n<li><p>Save the changes made to the <strong>.css<\/strong> file and re-upload it to the server.<\/p><\/li>\r\n\r\n<li><p>Refresh the product page again. Your images should have the desired size.<\/p><\/li>\r\n<\/ol>\r\n\r\n<p>Thank you. Now you know how to manage product images dimensions in ZenCart template(s).<\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=L7TNna-njI0?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to manage product images dimensions<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial you will learn how to manage product images dimensions in ZenCart template.<\/p>\n","protected":false},"author":12,"featured_media":43276,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[734],"tags":[1724,804,537,949,2408],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/8548"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=8548"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/8548\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43276"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=8548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=8548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=8548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}