Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Product images:" no_picture.gif"

Product images:" no_picture.gif"

Locked

Started by tswift42 on 17 Aug 2006, 8:58 PM · Views: 5,038

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
17 Aug 2006, 8:58 PM
#1
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #1 by tswift42

When I upload products, I have images for some but not all products. Where there is no image zen puts in "no_picture.gif" as default. How do I turn this off. But I don't want this to affect the product with images.

Is this possible?

Thanks
Tom

17 Aug 2006, 9:02 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #2 by superprg

In Admin
Configuration->Images->

Product Image - No Image picture

and

Product Image - No Image Status

should do the trick

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Aug 2006, 9:15 PM
#3
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #3 by tswift42

superprg:

In Admin
Configuration->Images->

Product Image - No Image picture

and

Product Image - No Image Status

should do the trick

Yes I thought it would but the picture is still showing up, I removed the no_picture.gif in Admin/configuration/images Status = 0 Product Image (I remove the no_picture.gif)

But the picture is still showing..

Any ideas

Thanks
Tom

17 Aug 2006, 9:20 PM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #4 by superprg

No mate, you are not getting me

Do this
In

Product Image - No Image picture
Use automatic No Image when none is added to product
Default = no_picture.gif

Put Default=none

And let me know what happens

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Aug 2006, 9:34 PM
#5
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #5 by tswift42

superprg:

No mate, you are not getting me

Do this
In

Product Image - No Image picture
Use automatic No Image when none is added to product
Default = no_picture.gif

Put Default=none

And let me know what happens

Yes, I understand, I changed it from no_picture.gif to none (and I tried leaving it blank). And the picture is still displayed..

Also I changed the status from 0 to 1, and 1 to 0 for testing. Picture still displayes

Thanks
Tom

17 Aug 2006, 9:39 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #6 by superprg

Tswift42:

Yes, I understand, I changed it from no_picture.gif to none (and I tried leaving it blank). And the picture is still displayed..

Also I changed the status from 0 to 1, and 1 to 0 for testing. Picture still displayes

Thanks
Tom

Well, It works for me
You are asking for the products for which image column in the database is empty. Right?
I tried with three products here and after making it to none( or some string for which image doesnt exists) it just doesnt shows.. anything the way you want
Can you try going to images folder and renaming this no_picture.gif to something else (though this is not a correct way of doing it but still)

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Aug 2006, 9:47 PM
#7
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #7 by tswift42

superprg:

Well, It works for me
You are asking for the products for which image column in the database is empty. Right? YES
I tried with three products here and after making it to none( or some string for which image doesnt exists) it just doesnt shows.. anything the way you want
Can you try going to images folder and renaming this no_picture.gif to something else (though this is not a correct way of doing it but still)

I can turn off all images No Problem, but to turn of products with no images is the issue. We are working in the same area I have no doubt. I looked at my products in admin/catalog, and under the image area for that product it still says no_picture.gif...

I will try to rename the image and see what happen..Ok, I tried that and in my site it shows a box with a red x (missing image box) where the picture should be.

Thanks

17 Aug 2006, 9:49 PM
#8
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #8 by superprg

Tswift42:

I can turn off all images No Problem, but to turn of products with no images is the issue. We are working in the same area I have no doubt. I looked at my products in admin/catalog, and under the image area for that product it still says no_picture.gif...

I will try to rename the image and see what happen..Ok, I tried that and in my site it shows a box with a red x (missing image box) where the picture should be.

Thanks

<<and under the image area for that product it still says no_picture.gif...>>

Did you press the update after entering the value?
If yes, then it should have been updated!

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Aug 2006, 9:57 PM
#9
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #9 by superprg

Sorry to make things complicated:

Go to the phpmyadmin and execute this query:

SELECT configuration_value FROM zen_configuration where configuration_title='Product Image - No Image picture'

(where zen_configuration=configuration table in your zen cart database please check the name)

If you see the output as no_picture.gif then run this query:

update zen_configuration set configuration_title=' ' where configuration_title='Product Image - No Image picture'

It will do the trick!

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Aug 2006, 11:17 PM
#10
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #10 by tswift42

superprg:

Sorry to make things complicated:

Go to the phpmyadmin and execute this query:

SELECT configuration_value FROM zen_configuration where configuration_title='Product Image - No Image picture'

(where zen_configuration=configuration table in your zen cart database please check the name)

If you see the output as no_picture.gif then run this query:

update zen_configuration set configuration_title=' ' where configuration_title='Product Image - No Image picture'

It will do the trick!

Crazy -

Before I ran the query I did a backup...

Ran query and it is set to No Image Picture

Still the same...

17 Aug 2006, 11:35 PM
#11
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #11 by tswift42

Tswift42:

Crazy -

Before I ran the query I did a backup...

Ran query and it is set to No Image Picture

Still the same...

Ok did a test...

I let the no image section under admin/images "Product Image - No Image picture" left it blank.

What I determined is when I do a product upload and leave the v_products_image
blank in my cvs file it will do it correctly and not display the no_picture.gif.

Thats great and all but, I need to remove the no_picture.gif reference to all the other 3000+ products that I have already uploaded.

any ideas?

THank for your help

Tom

18 Aug 2006, 2:58 AM
#12
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #12 by tswift42

My problem is when I upload my products I did not specify a pic during the up unless there was a picture associated with the product the I would add the file name to my cvs file.

Everything works great. With the exception that the files that have no picture Zen would by default attach "no_picture.gif" on all images that I did not attach a picture in my products.

So to solve this problem is to go to the admin\configuration\images, the 22nd to the last option is (Product Image - No Image Picture) you click on this and edit and take out no_picture.gif in the edit field..Right..Perfect..

Well this function does not work for me. But what it does do is when I upload another cvs file that has no image it does it's job and puts no image in the product list. Great.

But I have 1200 product that are now associated with no_picture.gif, and to save my life I can't get it removed.

I have tried reloading the cvs file with again no image association and the no_picture is showing up under that product.

So to PhPadmin I go, and found the location to the product files. But to remove all this in PhP I would have to do it by hand...

So question, is this a BUG...

And can some one assist me creating a query that would remove everything associated with no-picture.gif...

I would appriciate it very much...

FYI deleting the no_picture.gif from the images folder does not fix the problem. The file association is still there, and it seems hard coded...

TOm

18 Aug 2006, 4:36 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

So ... if there's no picture associated, what do you want Zen Cart to do?
Keep in mind that product images are used in many places:

  • product listings
  • sideboxes
  • product-detail pages
  • shopping cart
  • etc

If there's no picture, what do you want instead?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 4:52 AM
#14
wizardman avatar

wizardman

New Zenner

Join Date:
Mar 2004
Posts:
6
Plugin Contributions:
1

Post #14 by wizardman

Why not replace the no-picture.gif file with a blank gif file with the same name that matches with your background color?

18 Aug 2006, 5:33 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #15 by drbyte

If you're saying that many of your products have "no_picture.gif" IN THE DATABASE as the contents of the products_image field, then you could wipe that out by running the following SQL query via phpMyAdmin:

update products set products_image='' where products_image='no_picture.gif';

Note: that '' is two single quotes...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 5:37 AM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #16 by ajeh

After following DrByte's fix to the products_image field ...

Also set the setting in the Images to not use the no_picture.gif when nothing is set:

Product Image - No Image Status
Use automatic No Image when none is added to product
0= off
1= On

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Aug 2006, 1:16 PM
#17
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #17 by tswift42

DrByte:

If you're saying that many of your products have "no_picture.gif" IN THE DATABASE as the contents of the products_image field, then you could wipe that out by running the following SQL query via phpMyAdmin:

update products set products_image='' where products_image='no_picture.gif';

> 
> Note: that '' is two single quotes...



Byte, in PhpAdmin, I do a search for no_picture.gif and I find the location of the association to products. And in this search it finds the 1200 products that have no_picture.gif.

Now when I run your script will it remove only that information where the no_picture.gif is attached to those products?

Thanks
Tom
18 Aug 2006, 1:27 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #18 by drbyte

Tswift42:

Now when I run your script will it remove only that information where the no_picture.gif is attached to those products?That's the plan.

As always, make a backup first.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Aug 2006, 9:27 PM
#19
tswift42 avatar

tswift42

New Zenner

Join Date:
Jul 2005
Posts:
26
Plugin Contributions:
0

Post #19 by tswift42

DrByte:

That's the plan.

As always, make a backup first.

Thanks for your help, I was able to remove all reference to no_picture.gif with your script ideas...

Thanks to everyone for the quick response

Tom