Comments on: Sorting the list of downloadable files in WP e-Commerce https://www.leewillis.co.uk/sorting-the-list-of-downloadable-files-in-wp-e-commerce/ Tue, 20 Mar 2012 00:21:34 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Shaun Evans https://www.leewillis.co.uk/sorting-the-list-of-downloadable-files-in-wp-e-commerce/#comment-2528 Tue, 20 Mar 2012 00:21:34 +0000 http://www.leewillis.co.uk/?p=417#comment-2528 Seem to have it working for 3.7.8. I’ve added Lee’s functions to my Theme’s functions.php and in ‘wp-e-commerce > wpsc-includes > form-display-functions.php’ just below the line:

$product_files = get_product_meta($product_id, ‘product_files’);

I’ve added:

$file_list = site_plugin_sort_download_list ($file_list) ;

These are around line 136 on my ‘form-display-functions.php’ but I have a bunch of customizations in there so that line number might not match up with your copy.

Working so far … will let you know if it blows up.

Thanks again, Lee!

Shaun

]]>
By: Lee https://www.leewillis.co.uk/sorting-the-list-of-downloadable-files-in-wp-e-commerce/#comment-2525 Mon, 19 Mar 2012 18:56:37 +0000 http://www.leewillis.co.uk/?p=417#comment-2525 In reply to Shaun Evans.

Not something I’ve looked at I’m afraid, the only sites I look after that this applies to are 3.8 …

]]>
By: Shaun Evans https://www.leewillis.co.uk/sorting-the-list-of-downloadable-files-in-wp-e-commerce/#comment-2520 Mon, 19 Mar 2012 08:47:34 +0000 http://www.leewillis.co.uk/?p=417#comment-2520 Hi Lee …

You must have read my mind as I was just thinking about the same thing! I’m still running 3.7 on the count of a bunch of hacks/customizations. Tried dropping the code in there and it didn’t work … would it be easy to tweak it for us dinosaurs?

Thanks!

Shaun

]]>