Jump to content

Resolved - noImageSubCategory.png


Big Spender

Recommended Posts

The double slashes really do not cause a problem.

The bug report #134 says it was fixed in CC509. But this problem was only fixed for product images, not category images.

The fix, as seen in CC514, is:

gui.class.php, near line 406 (may be different for your version of CC5):

public function getProductImage

About 14 lines down, find:

if (($files = glob('skins'.......

The next line should read:

return $GLOBALS['storeURL'].'/'.str_replace(array(CC_DS.CC_DS,CC_DS), '/', $files[0]);






Also in catalogue.class.php, near line 721:



public function imagePath



About 18 lines down, find:

if ($files) {



The next line needs to read:


$default_image = str_replace(array(CC_DS.CC_DS,CC_DS), '/', $GLOBALS['storeURL'].'/'.$files[0]);

Link to comment
Share on other sites

  • 3 weeks later...

I can't believe I was that sloppy!

Here's the original statment in CC514 (line 739):

$default_image = str_replace(CC_DS, '/', $GLOBALS['storeURL'].'/'.$files[0]);




Here's the new and improved version:


$default_image = $GLOBALS['storeURL'].'/'.str_replace(array(CC_DS.CC_DS,CC_DS), '/', $files[0]);

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