__( 'Show savings badge on product page', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_enabled', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Show the difference between the regular price and a discounted price. You can also show it via the [tiered_price_you_save] shortcode.', 'tier-pricing-table' ), ), array( 'title' => __( 'Include WooCommerce sale discount in total savings', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_consider_sale_price', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'If a product is already on sale, add that existing discount to the tiered pricing savings so the customer sees one large total saved.', 'tier-pricing-table' ), ), array( 'title' => __( 'Show badge for standard products (non-tiered)', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_non_tiered', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'no', 'desc' => __( 'Display the savings badge for regular WooCommerce sale products even if they don\'t have tiered pricing rules.', 'tier-pricing-table' ), ), array( 'title' => __( 'Badge text template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_template', 'default' => __( 'You save {tp_ys_total_price} ({tp_ys_percentage_discount}%)', 'tier-pricing-table' ), 'placeholders' => array( 'tp_ys_price', 'tp_ys_total_price', 'tp_ys_percentage_discount', ), 'type' => TPTTextTemplate::FIELD_TYPE, ), array( 'title' => __( 'Badge text color', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_text_color', 'type' => 'color', 'css' => 'width:6em;', 'default' => '#FF0000', ), ); } }