Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Jul 2005
    Posts
    31
    Plugin Contributions
    0

    Default Re: Product images:" no_picture.gif"

    Quote Originally Posted by 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

  2. #12
    Join Date
    Jul 2005
    Posts
    31
    Plugin Contributions
    0

    Default Removing the default "no_picture.gif"

    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

  3. #13
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Removing the default "no_picture.gif"

    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.

  4. #14
    Join Date
    Mar 2004
    Posts
    8
    Plugin Contributions
    0

    Default Re: Removing the default "no_picture.gif"

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

  5. #15
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Product images:" no_picture.gif"

    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:

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

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

    Default Re: Product images:" no_picture.gif"

    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!

  7. #17
    Join Date
    Jul 2005
    Posts
    31
    Plugin Contributions
    0

    Default Re: Product images:" no_picture.gif"

    Quote Originally Posted 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:

    Code:
    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

  8. #18
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Product images:" no_picture.gif"

    Quote Originally Posted by 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.

  9. #19
    Join Date
    Jul 2005
    Posts
    31
    Plugin Contributions
    0

    Default Re: Product images:" no_picture.gif"

    Quote Originally Posted by 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

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Change no_picture.gif
    By gamenet in forum General Questions
    Replies: 6
    Last Post: 13 Feb 2014, 07:36 PM
  2. v150 How do I edit Product Listing "Price", "Qty." and Product Info Move "details"?
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Jan 2013, 01:02 AM
  3. no no_picture.gif
    By sjk1000 in forum General Questions
    Replies: 9
    Last Post: 30 Oct 2008, 04:05 PM
  4. Remove "Product Image" "Item Name" and "Price"...
    By rebekah in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2008, 06:08 PM
  5. For images, does "base" = "small"? And a question about alternates.
    By molywerks in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Feb 2008, 02:49 PM

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