Friday, November 20, 2009

Add one image to just one product (For John Egg)

Add an image to only a single product in the view page:
Possible solution:
Add a new 'yes/no' attribute for the products, lets call it 'use_alternative_image'
Edit the product you want the image for and set the attribute to "Yes";
In the view.phtml file, you just have to do this:

<?php if ($_product->getUseAlternativeImage()) : ?>
 <img src="{Your image src}" />
<?php endif; ?> 

This way you can set this image to one ore more products (or none).

No comments:

Post a Comment