Viewing 1 replies (of 1 total)
  • Thread Starter anmari

    (@anmari)

    Add following code to line 93 (just above the download_files = ….)

    if (edd_is_bundled_product($id)) { // is it a bundle?
    				$products = edd_get_bundled_products($id);
    				$files = array();
    				$download_files = array();
    				foreach ($products as $p=>$product) {
    					$files = edd_get_download_files( $product );
    					$download_files = array_merge($files, $download_files);
    				}
    			}
    			else 	// its not a bundle
    				$download_files = edd_get_download_files( $id );

Viewing 1 replies (of 1 total)
  • The topic ‘Note: Do not use for Bundles… they have no files’ is closed to new replies.