Forums / Bug Reports / no_picture.gif gets deleted with items

no_picture.gif gets deleted with items

Locked

Started by finlander on 29 Oct 2010, 10:51 PM · Views: 1,379

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Oct 2010, 10:51 PM
#1
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

no_picture.gif gets deleted with items

Seems like a bug to me. You decide :)

I created about 300 items using Easy Populate. Several things weren't right, so I deleted them all. When I created another list using Easy Populate, the no_picture.gif placeholder was gone. I checked for it in the root of images and it was gone. Poof.

It was there and in use on the first list of 300, so the only thing I can figure is that it somehow got deleted when I deleted the 300 listings. I had a backup, but wanted to report this in case it's not a designed behavior.

Jim

30 Oct 2010, 6:25 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: no_picture.gif gets deleted with items

Not a ZenCart bug!!

As Easy Populate is a 3rd party addon and not part of the distributed code base

Zen-Venom Get Bitten

30 Oct 2010, 8:50 AM
#3
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: no_picture.gif gets deleted with items

I'm aware of that, but the deletion of the products was done w/o the aid of EP, and if the gif is more of a Zen Cart item than an EP item, then it may be closer to being a bug w/ Zen Cart, as a gif is being deleted simply because products using the gif are being deleted. The gif is then not there for the next product that comes along that needs a no_pic placeholder -- it ends up being a miniscule hyperbar-looking thing/area.

Granted, maybe EP is responsible for all this behavior, but if that's the case, then EP is breaking a core design of Zen -- the placeholder gif availability.

30 Oct 2010, 9:22 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: no_picture.gif gets deleted with items

Did you specify "no_picture.gif" for your product images? If so, then Zen Cart is going to treat that as though you intentionally gave that image name for your products, and thus is going to follow your instructions to delete it when you delete the products using it.

Simple solution: if you have no image for a product, leave the image field blank. Then Zen Cart won't delete something you don't want it to delete.

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

30 Oct 2010, 9:30 PM
#5
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: no_picture.gif gets deleted with items

totally makes sense, thanks.