roles as $WPRole => $role_data ) {
if ( RoleBasedPriceManager::roleHasRules( $WPRole, $product_id, 'edit' ) ) {
$roleBasedRule = RoleBasedPricingRule::build( $product_id, $WPRole );
$fileManager->includeTemplate( 'addons/role-based-pricing/role.php', array(
'pricing_rule' => $roleBasedRule,
'role' => $WPRole,
'product_id' => $product_id,
'product' => $product,
'loop' => $loop,
) );
$presentRoles[] = $WPRole;
}
}
?>
'advanced',
), ServiceContainer::getInstance()->getSettings()->getLink() );
$settingsLink = sprintf( '%s', esc_url( $settingsLink ),
esc_html__( 'settings', 'tier-pricing-table' ) );
// translators: %s: settings link
echo wp_kses_post( sprintf( __( 'You can disable this feature in the %s if you don\'t need role-based pricing.',
'tier-pricing-table' ), $settingsLink ) );
?>