# Check if a product has a Discount Table

```php
	global $product;
	$has_discount_table = false;
	if (class_exists('\Wdr\App\Controllers\ManageDiscount')) {
		$bulk_discounts_ranges = wp_unslash(Wdr\App\Controllers\ManageDiscount::$calculator->getDefaultLayoutMessagesByRules($product, false));
		if (!empty($bulk_discounts_ranges)) {
			$has_discount_table = true;
		}
	}
	// Here you can get the discount table status by the value of $has_discount_table variable
```
