thinkbuildblog

Adding a fourth image position to the admin for a Magento product

Posted by Joshua O'Connell

When building a Magento site, it sometimes becomes apparent that the three default image positions aren’t enough to get by; some sites will need additional positions. Thankfully, Magento allows for this by being able to add an additional image position using the Attributes feature.

Throughout this tutorial, click any image to enlarge.


Hover on “Catalog,” then “Attributes,” then click “Manage Attributes.”


Click “Add New Attribute” on the right side.


Give your attribute an attribute code (for internal use), set the store level you’re using it for (or Global if you want it everywhere), and then under “Catalog Input Type for Store Owner” choose “Media Image.”  If you’re using it on all product types keep “All Product Types,” but if you’re only using it for a certain type of product (say, a downloadable product), you can specify that here.


On the second tab (Manage Label/Options), give the image position a name that will appear in various places, such as the admin. Then click “Save Attribute” to save the attribute.


To see the image get added  to the products section of the admin, hover on “Catalog,” then “Attributes,” then click “Manage Attribute Sets.”


Click on the attribute set to which you wish to add the new image position.


Drag the new attribute you create from the right over to the “Images” folder in the center.  Then click “Save Attribute Set” on the right side.


When you go to a product in Magento, you’ll now see a fourth image position, as seen above.

To use the module position in your product page, call the image like this:

Replace ‘attribute_code’ with the code you entered during the process; replace 400 and 300 with the height and width you’d like for that image.

Categories: Magento, Tech topics Tags: , , , , , , Leave a comment
  • Tweet This
  • Like This
Joshua O'Connell
About Joshua O'Connell

Josh is Director of Operations at Pixafy. He is a veteran of web development, with almost 15 years of experience working for Pixafy and its predecessor projects, with a primary focus of front-end design and development. Not one to sit still, Josh has also pursued other interests, including journalism and marketing, many times concurrently.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">