Closed

Tienda php plugin - minor customisation

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;

$i=0;

while($i<= count($files)):

if(in_array(strtolower(JFile::getExt($path.$files[$i])), $imgExt))

{

$found = true;

break;

}

$i++;

endwhile;

return $found;

Many thanks fanyone who can help.

Robin

Skills: PHP, Software Architecture

See more: return path, php directory software, jpeg or png, php plugin, killer, cake shop, cake php, php file array, photos database software, structured database, php wedding, shop php script, php script path, directory files count, wedding directory script, png php, php correct, php help function, might plugin, numberical, php array file, png order, tell path, images customisation, code product images php

About the Employer:
( 0 reviews ) United Kingdom

Project ID: #1245378

3 freelancers are bidding on average £8/hour for this job

dotsaravanan

Please have a look at PMB. Thank You

£7 GBP / hour
(9 Reviews)
5.2
aasfalcon

Can be done.

£10 GBP / hour
(7 Reviews)
4.8
webanalytics

Kindly have a look at our PMB.

£5 GBP / hour
(0 Reviews)
3.2
fksolutions

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

£10 GBP / hour
(1 Review)
0.0