• Resolved supertheman7

    (@supertheman7)


    Okay, so I am using WP e-commerce for digital downloads and it’s working great. But I have about 75 downloadable files at the moment and there are heaps more still to come. The problem comes when I am adding a product. When I go to select which file I want to be the download for that product the list of files is in no such order at all. The names are all over the place! Making it very difficult and time consuming to add products.

    I uploaded the files right into the downloadables directory to save time because it would be much to slow to upload them through the WordPress interface, not sure if this has anything do to with it.

    Also on my local install of WordPress and WP e-commerce the sorting works fine.

    So does anyone know any solutions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter supertheman7

    (@supertheman7)

    Does anyone know how to fix this? It is very important that I get it fixed because we are going to have over 2000 downloads. My thinking is that it is a problem with the host. I’m with HostMonster at the moment.

    Thread Starter supertheman7

    (@supertheman7)

    Ok I found a fix.

    In “form-display.functions.php”, which is located in wp-content/wp-e-commerce/wpsc-includes/, there is a bunch of code that gets the file names and such. Anyway, on about line 120 there is some code that looks like this:

    if(count($dirlist) > 0) {
    	$wpsc_uploaded_file_cache = $dirlist;
    }

    It needs to be replaced with this:

    if(count($dirlist) > 0) {
    	sort($dirlist);
    	$wpsc_uploaded_file_cache = $dirlist;
    }

    Hope this is helpful for someone else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP e-Commerce] Can’t sort downloads when adding Product’s’ is closed to new replies.