Jump to content

Product Image error


bbtil

Recommended Posts

Something just to the left of "Click to Enlarge", which is the alt attribute in:

<img src="" alt="Click to enlarge">

So, let's find the template to content.product.php

Actual HTML:

<a href="" id="image_166" class="colorbox gallery" rel="gallery"><img src="" alt="Click to enlarge"></a>
<a href="/images/cache/Parts/shoes11.500.png" id="image_289" class="colorbox gallery" rel="gallery"><img src="/images/cache/Parts/shoes11.50.png" alt="Click to enlarge"></a>
<a href="/images/cache/Parts/raw.500.png" id="image_290" class="colorbox gallery" rel="gallery"><img src="/images/cache/Parts/raw.50.png" alt="Click to enlarge"></a>

Template:

{foreach from=$GALLERY item=image}
<a href="{$image.large}" id="image_{$image.id}" class="colorbox gallery" rel="gallery"><img src="{$image.gallery}" alt="{$LANG.catalogue.click_enlarge}" /></a>
{/foreach}

Part of JSON array:
"image_165":{
  "id":"165",
  "product_id":"5",
  "file_id":"105",
  "main_img":"1",
  "type":"1",
  "disabled":"0",
  "filepath":"Parts\/",
  "filename":"shoes.jpg",
  "filesize":"14061",
  "mimetype":"image\/jpeg",
  "md5hash":"3949bd3fc8f6946f9d8d1241e858ffc1",
  "description":"",
  "source":"\/images\/source\/Parts\/shoes.jpg",
  "thumbnail":"\/images\/cache\/Parts\/shoes.138.jpg",
  "category":"\/images\/cache\/Parts\/shoes.580.jpg",
  "subcategory":"\/images\/cache\/Parts\/shoes.70.jpg",
  "gallery":"\/images\/cache\/Parts\/shoes.50.jpg",
  "normal":"\/images\/cache\/Parts\/shoes.270.jpg",
  "enlarge":"\/images\/cache\/Parts\/shoes.600.jpg",
  "tiny":"\/images\/cache\/Parts\/shoes.30.jpg",
  "small":"\/images\/cache\/Parts\/shoes.138.jpg",
  "medium":"\/images\/cache\/Parts\/shoes.270.jpg",
  "large":"\/images\/cache\/Parts\/shoes.500.jpg",
  "xlarge":"\/images\/cache\/Parts\/shoes.1800.jpg"
},

"image_166":{
  "id":"166",
  "product_id":"5",
  "file_id":"4",
  "main_img":"0",
  "type":"1",
  "disabled":"0",
  "filepath":"Paintball_Guns\/Shocktech\/",
  "filename":"trigp.png",
  "filesize":"0",
  "mimetype":"",
  "md5hash":"ce891e3a86026d6b2b471aac0670be4e",
  "description":"",
  "source":"",
  "thumbnail":"",
  "category":"",
  "subcategory":"",
  "gallery":"",
  "normal":"",
  "enlarge":"",
  "tiny":"",
  "small":"",
  "medium":"",
  "large":"",
  "xlarge":""
},

It seems the image as recorded in the CubeCart_filemanager database table, record file_id=4, trigp.png, isn't in /images/source/Paintball_Guns/Shocktech/, or isn't a PNG type file.

Link to comment
Share on other sites

At least, add the /Shocktech/ folder within /Paintball_Guns/, then put a copy of trigp.png in /Shocktech/.

Funny Story: I was wildly mouse dragging-dropping files from and to various folders, only to discover a few days later, I had accidentally moved a folder (and its subfolders) into a neighboring folder.

So, if you know that at one time you had a /Paint_Guns/ folder, start looking for it in other folders.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...