Jump to content

[Resolved] Image Not Available Place Holder image?


Recommended Posts

It is not coded in the skin.

In CubeCart's GUI class, getProductImage() function, if there are images associated with a product, then ultimately a URL for the main image of the requested size is generated and given to the template.

If no images are associated with the product, the skin's default image (provided with the skin) is used to ultimately generate a URL for the image of the requested size and is given to the template.

In CubeCart's Catalogue class, imagePath() function, is where the source image (the skin's default image if specified) is resized and saved to the /images/cache/ folder, if necessary, and the actual URL is formulated.

Edited by bsmither
Link to comment
Share on other sites

Thanks for that - I've double checked my gui and catalogue class code vs stock between 6.1.5 and a recent 6.1.6 commit and don't see anything causing a change in the default image display. In the 6.1.6 commit I see the placeholder image on the homepage as expected, but when I open that product listing I see the alt text for the image only - NO image at all. With so many changes to images in beta 6.1.6 I don't know where to look for the problem.

Link to comment
Share on other sites

Showing the ALT text means the image was not deliverable: either a 404 or a badly formatted URL. Examining the HTML source within the browser will show this (or use Firebug).

Is this site viewable to the public?

 

Edited by bsmither
Link to comment
Share on other sites

No. the test site is password protected. I'll check with Firebug and see what i can find there.

<a class="open-clearing" href="#" data-thumb-index="0">
<img id="img-preview" src="" alt="2005 Old Navy 10 inch Seated Shaggy Chamois Brown Bear">
</a>

Nothing at all about the homepage image:

<a class="th" href="https://dirtybutter.com/plushtest/2005-old-navy-10-inch-seated-shaggy-chamois-brown-bear.html" title="2005 Old Navy 10 inch Seated Shaggy Chamois Brown Bear">
<img src="https://dirtybutter.com/plushtest/images/cache/skins/blue/images/noimage.200.png" alt="2005 Old Navy 10 inch Seated Shaggy Chamois Brown Bear">
</a>

 

Link to comment
Share on other sites

So, it seems that the core code is not creating a NoImage variant for the 'large' size.

It could be because your "brown" skin's config.xml <images> declarations specify:

<image reference="large" maximum="600" quality="80" default="" /><!-- Doesnt need a default -->

So, I'm thinking that your "brown" skin has been specially created to show a "large" size image on the content.product.php template.

Try editing the config.xml file to:

<image reference="large" maximum="600" quality="80" default="noimage.png" />

 

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...