I have a plugin for Tienda that pulls image from a directory, creates them as a product, appends some attributes, then writes them to the database tables and uploads the file images.
Unfortunately the script is creating them in a non-filename/numerical order - and as a result when they are displayed in the shop they're not in the correct sequence.
The photos are wedding galleries so may contain 200 or 300 images - so manually reordering in the Tienda backend is not an option.
I need someone to identify just where the script determines which order to select files from the folder and operate on them - and make sure this is in filename order (filenames all have a sequential numberical suffix).
The script has 500 lines of code, is well commented and structured - I this is probably a piece of cake. Even I can tell that most of it has nothing to do with the killer section...
I think it might be in here or close by:
function _checkFolderImg($files = '', $path)
$imgExt = array("jpg", "jpeg", "gif", "png");
$found = false;
$found = true;
Many thanks fanyone who can help.
3 freelancers are bidding on average £8/hour for this job
Hi, We are interested in this project and wish to pursue this project. We have extensive experience on required skills. Please check my PM for further details. Thanks, I A Rizvi