|
@@ 654-658 (lines=5) @@
|
| 651 |
|
} |
| 652 |
|
|
| 653 |
|
// Category discounts |
| 654 |
|
if ( sizeof( $this->product_categories ) > 0 ) { |
| 655 |
|
if ( sizeof( array_intersect( $product_cats, $this->product_categories ) ) > 0 ) { |
| 656 |
|
$valid = true; |
| 657 |
|
} |
| 658 |
|
} |
| 659 |
|
|
| 660 |
|
if ( ! sizeof( $this->product_ids ) && ! sizeof( $this->product_categories ) ) { |
| 661 |
|
// No product ids - all items discounted |
|
@@ 673-677 (lines=5) @@
|
| 670 |
|
} |
| 671 |
|
|
| 672 |
|
// Specific categories excluded from the discount |
| 673 |
|
if ( sizeof( $this->exclude_product_categories ) > 0 ) { |
| 674 |
|
if ( sizeof( array_intersect( $product_cats, $this->exclude_product_categories ) ) > 0 ) { |
| 675 |
|
$valid = false; |
| 676 |
|
} |
| 677 |
|
} |
| 678 |
|
|
| 679 |
|
// Sale Items excluded from discount |
| 680 |
|
if ( $this->exclude_sale_items == 'yes' ) { |