You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the standard product image folder contains too many images, image auto-detection can take a long time. The situation gets a lot better when the images are divided into multiple folders. To guarantee an even distribution, we can't simply create folders that represent the first character(s) of the image names because since product images start with product codes to allow auto-detection it is very likely that the first character(s) are the same for many images. Therefore, it is better to create a hash from the product code and use the hash's first character(s).
A function to take all images that are located directly in the standard product image folder and distribute them in three levels of 16 subfolders each could look like this (the example shows a quick draft as an API resource):
In the function ls_shop_generalHelper::getImagesFromStandardFolder we only have to extend the standard product image path using the hashed product code like this:
If the standard product image folder contains too many images, image auto-detection can take a long time. The situation gets a lot better when the images are divided into multiple folders. To guarantee an even distribution, we can't simply create folders that represent the first character(s) of the image names because since product images start with product codes to allow auto-detection it is very likely that the first character(s) are the same for many images. Therefore, it is better to create a hash from the product code and use the hash's first character(s).
A function to take all images that are located directly in the standard product image folder and distribute them in three levels of 16 subfolders each could look like this (the example shows a quick draft as an API resource):
In the function
ls_shop_generalHelper::getImagesFromStandardFolder
we only have to extend the standard product image path using the hashed product code like this:The text was updated successfully, but these errors were encountered: