Skip to content

Commit

Permalink
Keep product check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jan 2, 2018
1 parent a21ada6 commit da281d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-wc-discounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,9 @@ protected function validate_coupon_excluded_product_categories( $coupon ) {
$categories = array();

foreach ( $this->items as $item ) {
if ( ! $item->product ) {
continue;
}

$product_cats = wc_get_product_cat_ids( $item->product->get_id() );

Expand Down

0 comments on commit da281d2

Please sign in to comment.