Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  6. #6
    Join Date
    Aug 2006
    Posts
    254
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. v139h When deleting a product, do the unique attributes also delete?
    By beyre in forum General Questions
    Replies: 3
    Last Post: 3 Jul 2013, 05:38 PM
  2. Category/Product in Row Without Image
    By vishalon in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 25 Feb 2010, 04:41 AM
  3. Delete Sub category image from product page
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Mar 2009, 05:02 PM
  4. Q- Image of product will delete when i delete the product ?
    By kimsonvu in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 2 Feb 2009, 05:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg