use is_sold_individually in grouped template

This commit is contained in:
Mike Jolley 2012-05-11 10:31:34 +01:00
parent b6b2da9463
commit b38f043fa9
2 changed files with 1 additions and 3 deletions

View File

@ -1313,8 +1313,6 @@ function woocommerce_customer_overview() {
$count++;
endwhile;
foreach ($customers as $customer) :
if (strtotime($customer->user_registered) > $start_date) :
$time = strtotime(date('Ymd', strtotime($customer->user_registered))).'000';

View File

@ -12,7 +12,7 @@ $quantites_required = false;
foreach ( $product->get_children() as $child_id ) {
$child_product = $product->get_child( $child_id );
if ( ! $child_product->is_downloadable() && ! $child_product->is_virtual() && ! $child_product->is_type('external') )
if ( ! $child_product->is_sold_individually() && ! $child_product->is_type('external') )
$quantites_required = true;
$grouped_products[] = array(