Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Image handler replacing additional images on other products.

    Hi,

    We've noticed that images uploaded using the image handler are being added as secondary images to other products.

    Could it be to do with images having the same file name when they are being uploaded?

  2. #2
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: Image handler replacing additional images on other products.

    Looking more into it.

    Other products main images are being added to random products additional images.

    If we remove the additional image from the products, then it also deletes the main images for the other products. We have no idea why this is happening, but it's causing us a lot of grief

  3. #3
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: Image handler replacing additional images on other products.

    Right, I found out what is happening!!

    The main image file name is "b.jpg"

    So any image that starts with "b" is being added. This seems to be an error with code.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Image handler replacing additional images on other products.

    Quote Originally Posted by joecooper View Post
    Right, I found out what is happening!!

    The main image file name is "b.jpg"

    So any image that starts with "b" is being added. This seems to be an error with code.
    May seem, but not the case.

    See: https://www.zen-cart.com/content.php...e-of-a-product
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: Image handler replacing additional images on other products.

    I know how the original method works, it finds images that starts with the same name in order to add them as additional images. You would think that an image handler would support this, and add a unique identifier to the file name in order to prevent this issue.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Image handler replacing additional images on other products.

    You would think that an image handler would support this, and add a unique identifier to the file name in order to prevent this issue.
    They are following the naming convention established
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Image handler replacing additional images on other products.

    It is also something identified in the documentation.

    There are several methods that can be used to prevent this from happening, between filenaming, folder usage, etc...

    To add, IH4 is undergoing reviision, code improvements are welcome. See the thread on IH4 which also would have been the more appropriate place to address all of this.
    Last edited by mc12345678; 28 May 2015 at 05:17 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Additional images probem with Image Handler 2
    By hookah in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jun 2011, 06:00 PM
  2. Additional images with image handler 2
    By janbiol in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2009, 01:08 PM
  3. Additional images with image handler
    By dothanbydesign in forum General Questions
    Replies: 4
    Last Post: 9 May 2008, 02:40 PM
  4. image handler prob. with additional images
    By shopjackiesjewels in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2006, 12:00 AM

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