get_id() ) ) { return RoleBasedPricingRule::build( $product->get_id(), $role ); } // Check also for parent level if ( TierPricingTablePlugin::isVariationProductSupported( $product ) ) { if ( RoleBasedPriceManager::roleHasRules( $role, $product->get_parent_id() ) ) { return RoleBasedPricingRule::build( $product->get_parent_id(), $role ); } } } } return null; } }