Sunnysideup\EcommerceDiscountCoupon\Model\Buyables\DiscountCouponSiteTreeDOD::canBeDiscounted
normally returns TRUE, but returns FALSE when it, or its parent is in the list.
todo: add products in other product categories.
Signature
public function canBeDiscounted(SiteTree
$page )
Parameters
Returns
- bool