Forums / General Questions / no no_picture.gif

no no_picture.gif

Locked

Started by sjk1000 on 30 Oct 2008, 1:45 PM · Views: 1,838

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
30 Oct 2008, 1:45 PM
#1
sjk1000 avatar

sjk1000

New Zenner

Join Date:
Sep 2008
Posts:
100
Plugin Contributions:
0

no no_picture.gif

Hi All
I can't seem to make the no_picture.gif appear.

Product Image - No Image Status = 1
Product Image = no_picture.gif
Image Required = True

The no_picture.gif image is stored
catalog/includes/templates/mytemplate/images/

I uploaded my products with easy populate and in some cases have image names but no image. I read that the fix for this is to add the line in blue below to html_output:

//auto replace with defined missing image
if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
$src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
}
if (!file_exists($src)) {
$src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
}

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
return false;
}
// if not in current template switch to template_default
if (!file_exists($src)) {
$src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
}

...and still, no no_picture.gif
Any suggestions?
: ), Steve

30 Oct 2008, 1:50 PM
#2
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: no no_picture.gif

Your no_picture.gif should be in your images/ folder for it to work automatically.

JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

30 Oct 2008, 2:06 PM
#3
sjk1000 avatar

sjk1000

New Zenner

Join Date:
Sep 2008
Posts:
100
Plugin Contributions:
0

Re: no no_picture.gif

Hi John
If you mean

/catalog/images

I've put a copy in there too
rrrrrr, Steve

30 Oct 2008, 2:13 PM
#4
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: no no_picture.gif

Give us a link to your site
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

30 Oct 2008, 2:25 PM
#5
sjk1000 avatar

sjk1000

New Zenner

Join Date:
Sep 2008
Posts:
100
Plugin Contributions:
0

Re: no no_picture.gif

It's not live yet, but here's an example. See the Antler island game and Big Brain Academy.
Thanks, Seve

30 Oct 2008, 2:34 PM
#7
sjk1000 avatar

sjk1000

New Zenner

Join Date:
Sep 2008
Posts:
100
Plugin Contributions:
0

Re: no no_picture.gif

Hi Tina
Yep, I expected the extra code I mentioned in my first post to deal with broken images and replace them with the no_picture.gif. Correct me if I'm wrong here
Thanks, Steve

30 Oct 2008, 2:35 PM
#8
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: no no_picture.gif

Nice site!
Your no_image.gif is in the correct location, go in your admin/Catalog/Categories/Product and edit the item that has no image.

Down at the bottom where it shows the file name of the image, what does it say?

I have an item without an image on one of my sites and it says: Image Name: NONE

I use Easy Populate Pro the paid version
When I import with easy populate the image column should be blank for an item with no image. Not sure about your version.

Two choices, either re-import with the image field blank or go to each item and delete the product image from each item.
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

30 Oct 2008, 3:03 PM
#9
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: no no_picture.gif

You fixed it, what did you do?
JOhn ><>

Newest Site: ChargerPros - Stuff4Toys

30 Oct 2008, 3:05 PM
#10
sjk1000 avatar

sjk1000

New Zenner

Join Date:
Sep 2008
Posts:
100
Plugin Contributions:
0

Re: no no_picture.gif

Hi John
The image name was correct at the bottom of the page so I put a Yes in the following:

Delete Image? NOTE: Removes Image from Product, Image is NOT removed from server: No Yes

That got my no_picture.gif displayed. Thanks for that. I was hoping for a neat bit of code to do it automatically but it's a good enough workaround until I get all my images in place
Thanks, Steve