Last Fall (November 2014) we developed a fun, interactive, e-commerce website for Tim Sample and The Maine Humor Store. We used WooCommerce because it has so much flexibility for any size business that wants to sell online. In early January, Tim asked us to add downloadable products to his store. NO PROBLEM!
Well, there was one problem – the download didn’t work in Safari. WooCommerce had nothing on this flaw, so I went in search of a possible plugin conflict. I deactivated every plugins and reactivated – one by one – and discovered it was a conflict with our much beloved NextGen Pro plugin. 😐
I looked through other gallery plugins and really found nothing that I like as much. What do to … what to do … so I wrote to NextGen. Within minutes they emailed me back a fix to the bug that they were unaware of and now, that fix will be part of the next update.
In the mean time, if you’re running WooCommerce with NextGen gallery and need the have a downloadable product – here is the code that I added to the functions.php file:
//* NextGen - WooCommerce Download Fix
add_filter('run_ngg_resource_manager', array(&$this, 'check_woocommerce'));
function check_woocommerce($valid_request = TRUE)
{
if ( isset( $_GET['download_file'] ) && isset( $_GET['order'] ) && isset( $_GET['email'] ) ) {
$valid_request = FALSE;
}
return $valid_request;
}
Leave a Reply