use is_sold_individually in grouped template
This commit is contained in:
parent
b6b2da9463
commit
b38f043fa9
|
@ -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';
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue