Forums / Setting Up Categories, Products, Attributes / Delete product or category without deleting image

Delete product or category without deleting image

Locked

Started by jeffey on 15 Mar 2007, 10:29 PM · Views: 1,624

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
15 Mar 2007, 10:29 PM
#1
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Delete product or category without deleting image

Latest versions of Zen and Easy Populate.

Little background: I'm tweaking my database (which I change in and upload from Filemaker) and uploading after changes.

In this case I changed the top level category of a number of items in Filmaker and once I uploaded I noticed that it didn't CHANGE the items but ADDED the same items AGAIN with the new category. Then I had to go through deleting the duplicates (which, as an aside, showed as linked products because there is no master category-that's how I found the problem).

3 Questions, all related:
FIRST QUESTION/ISSUE:
Doesn't Zen make these changes based on the model number (my product number) which would tell it that it is the same product? If not, can I do that somewhere?

Essentially I want to make any changes offline in Filemaker and always have those reflected in Zen after uploading them.

SECOND QUESTON/ISSUE:
Is there a place to delete multiple items at the same time or do I have to hit delete/confirm with every item? With the issue above I ended up deleting whole categories rather than individually deleting the duplicated items. Faster while I'm testing but could be an issue when I'm live.

THIRD QUESTION/ISSUE
Last, I'm still testing but have about 4000 pictures I copied over from the working old school site and it took some time. As I deleted the items that were duplicated the pictures associated were deleted as well. I knew it would happen but I've been trying to find a place to stop that and tell Zen to delete the item/category but not the associated picture(s)

In this case I wanted the pictures to remain since the items were still there due to the duplication mentioned above.

Hope it's clear...probably not! Let me know.

Still having fun!

16 Mar 2007, 6:13 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Delete product or category without deleting image

The module for deleting products calls the function zen_remove_product which removes the image if it is not used by another product ...

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!

16 Mar 2007, 6:48 PM
#3
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Delete product or category without deleting image

Hey again Linda!,
Didn't seem to work. The products I had to delete were duplicates save for the top level category (listed as invalid, these items showed as linked items even though I didn't specify). They shared the save image.

When I deleted those the associated pictures were also deleted even though they were used by the duplicate/good version of the product.

No place to toggle the zen_remove_product feature easily? It would come in handy when I have to delete entire categories because of a change to the category (and not the products) in the offline database.

Thanks for staying on my shoulder! I'd better set up a comfy chair for you.

P.S. got but haven't tried your fix for the "expected" date issue. I'll post result when I get to it.

17 Mar 2007, 2:53 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Delete product or category without deleting image

You are sure all of your files are v1.3.7?

You don't have any add-ons that might have changed this?

Let me go test a few more conditions ... :unsure:

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!

17 Mar 2007, 2:58 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Delete product or category without deleting image

Can you give an example of an image name and directory that you are using?

I still cannot repeat this in the main image directory:
/images

nor in a subdirectory for it ...

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!

17 Mar 2007, 3:58 AM
#6
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Delete product or category without deleting image

You know Linda, let's drop this one. I did so much that day that I'm not sure I can even replicate it now or if it will occur again (shouldn't).

I guess you answered my big question with this one that you can't preserve the associated pictures when you delete an item. Eventually after testing I will delete everything and load again which means I have to reload the 1000's of pictures again.

WAIT....i'll just rename the folder in FTP before then, that should work in these situations....DUH.

Just 'cause you asked, I've put my product images in /images/pictures (didn't know back then if /images would be cleeared with a future update).

You rule!

17 Mar 2007, 4:55 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Delete product or category without deleting image

You could if you comment out the delete when not used by another Product ...

However, if you lose track you end up with 1000s of images on your server and never figure out how to clean up the mess ... :eek:

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!

17 Mar 2007, 5:03 AM
#8
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Delete product or category without deleting image

Think I'll try it next time I wipe ALL of the categories/items at their top level. Worst case is a little more loading time.

Good thing is I'm with a hosting service where I could never reach capacity so I don't have to worry about that aspect.

Cleaning house is the least of my worries!

1:00 am again! Got a lot done though but I better stop at a clean break.

Enjoyed talking with you and thanks for all the help today.

I was surprised to see I posted less than 10 questions, seems like 100's! (certain is does to you!!)

Sign off and feed the cat!