Dirty Butter Posted September 13, 2012 Share Posted September 13, 2012 One of the nice additions to 5.1.4 is that there is now a thumbnail of the master image by the Filemanager box in the Images tab for a product listing. Knowing the name of the master image comes in handy when cloning, as I need to remove all existing images that were already selected and replace with them with the correct images for the new cloned product. Also, sometimes I need to replace the original image, because the condition of an item is appreciably different from the one shown. I can discover the name of that master image by looking at the browser's image properties. But it would be nice if the name of that image was written below it. But I couldn't figure out how to do that. Any ideas? Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 13, 2012 Share Posted September 13, 2012 You could try this simple approach: In the admin skin file products.index.php, at about line 410, find: <div class="master_image"> {$LANG.catalogue.image_main}:<br /><br /> <img src="{$PRODUCT.master_image}" id="master_image_preview" /> </div> Change to: <div class="master_image"> {$LANG.catalogue.image_main}:<br /><br /> <img src="{$PRODUCT.master_image}" id="master_image_preview" /><br /> {$PRODUCT.master_image} </div> This will get you the relative URL of the image. It turns out that if there is no image, CC5 sends a transparent pixel. There will be the relative URL for what appears to be nothing. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 13, 2012 Author Share Posted September 13, 2012 Thanks!! Every time I think I'm beginning to understand some of this I ask a stupid question I should have been able to figure out myself. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.