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?
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?
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
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...
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.
They are following the naming convention establishedYou would think that an image handler would support this, and add a unique identifier to the file name in order to prevent this issue.
Zen-Venom Get Bitten
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...
Bookmarks