Jump to content

Resolved - 5.1.4 Master Image NAME on Add Product Images tab?


Dirty Butter

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...