getSettings()->getPriorityType(); if ( $prioritySlug === 'default' ) { $realPriority = CalculationLogic::globalRulesOverrideProductLevelRules() ? 'override' : 'prefer-product'; } else { $realPriority = $prioritySlug; } $priorities = array( 'default' => __( 'Global', 'tier-pricing-table' ), 'prefer-product' => __( 'Prefer Product', 'tier-pricing-table' ), 'prefer-role-based-product' => __( 'Prefer Product', 'tier-pricing-table' ), 'override' => __( 'Override', 'tier-pricing-table' ), 'flexible' => __( 'Flexible', 'tier-pricing-table' ), ); if ( ! array_key_exists( $prioritySlug, $priorities ) ) { return; } ?>