Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default SQL Code to Empty All Product Images?

    I need to empty all product images can someone provide me with an empty code. I do not want to remove products_image from the table just empty all the images assigned. Thank you!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL Code to Empty All Product Images?

    Why ?
    .

    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.

  3. #3
    Join Date
    Jan 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: SQL Code to Empty All Product Images?

    Hi,

    Need help i can't load pictures keep on getting this error message --

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpdtKEK9' to '/home/xclusive/public_html/images/1.jpeg' in /home/xclusive/public_html/admin/includes/classes/upload.php on line 112


    can anyone help please.thanks

  4. #4
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: SQL Code to Empty All Product Images?

    Quote Originally Posted by xclusive supplies View Post
    Hi,

    Need help i can't load pictures keep on getting this error message --

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpdtKEK9' to '/home/xclusive/public_html/images/1.jpeg' in /home/xclusive/public_html/admin/includes/classes/upload.php on line 112


    can anyone help please.thanks
    Please start your own thread so you can get further assistance. Your issue has nothing to do with the thread.


    Quote Originally Posted by DrByte View Post
    Why ?
    Hello DrByte, I use a program to upload all my products at once and I accidently assigned the wrong images to the products. There is 40,000 plus products. Some of the products do not have images. So it is not showing the "no image" picture" when I accidently assigned an image for them. Some the images files do not exist. I want to remove all the assigned images (datatable: products-->products_images) Empty that part and then upload the correct image names to the products.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL Code to Empty All Product Images?

    SQL:
    Code:
    update products set products_image = '';
    BEWARE: That's a destructive command, and is irreversible. Be sure to make backups 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.

 

 

Similar Threads

  1. v139h SQL code to populate a wholesale column as a percentage of the product price.
    By ilmarchez in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Jul 2015, 10:57 PM
  2. Replies: 3
    Last Post: 17 Oct 2012, 02:13 AM
  3. Additional Product Images - Add title below all images
    By sports guy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Dec 2011, 05:54 AM
  4. Product Select SQL Code
    By gregger in forum General Questions
    Replies: 2
    Last Post: 30 Jul 2010, 11:50 AM
  5. Product Images Problem.? All images are Large?
    By jeffhardy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Apr 2009, 10:50 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR