__( '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}', 'tier-pricing-table' ), 'placeholders' => array( 'tp_ys_price', 'tp_ys_total_price', 'tp_ys_percentage_discount', ), 'type' => TPTTextTemplate::FIELD_TYPE, ), array( 'title' => __( 'Badge style', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_style', 'type' => 'select', 'default' => 'text', 'options' => array( 'text' => __( 'Text', 'tier-pricing-table' ), 'pill' => __( 'Pill', 'tier-pricing-table' ), 'outline' => __( 'Outlined', 'tier-pricing-table' ), ), ), array( 'title' => __( 'Badge position', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_position', 'type' => 'select', 'default' => 'price', 'options' => array( 'price' => __( 'Under the price', 'tier-pricing-table' ), 'before_add_to_cart' => __( 'Above the add-to-cart button', 'tier-pricing-table' ), 'after_table' => __( 'After the pricing layout', 'tier-pricing-table' ), ), ), array( 'title' => __( 'Badge colour', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'you_save_text_color', 'type' => 'color', 'css' => 'width:6em;', 'default' => '', 'desc' => __( 'Leave empty to follow the active tier colour.', 'tier-pricing-table' ), ), ); } }