Fix coupon 'Excluded Categories' restriction evaluation

This commit is contained in:
Jason Kytros 2017-12-22 11:21:47 +02:00
parent 2f1c00b773
commit a21ada68cd
1 changed files with 0 additions and 3 deletions

View File

@ -817,9 +817,6 @@ class WC_Discounts {
$categories = array(); $categories = array();
foreach ( $this->items as $item ) { foreach ( $this->items as $item ) {
if ( $coupon->get_exclude_sale_items() && $item->product && $item->product->is_on_sale() ) {
continue;
}
$product_cats = wc_get_product_cat_ids( $item->product->get_id() ); $product_cats = wc_get_product_cat_ids( $item->product->get_id() );