__( 'Enable cart upsells', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_enabled', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'no', 'desc_tip' => false, ), array( 'title' => __( 'Template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_template', 'type' => TPTTextTemplate::FIELD_TYPE, 'placeholders' => array( 'tp_required_quantity', 'tp_next_price', 'tp_next_discount', 'tp_actual_discount', ), 'default' => __( 'Add {tp_required_quantity} more to get {tp_next_price} each', 'tier-pricing-table' ), 'desc_tip' => false, ), array( 'title' => __( 'Quantity link', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_link', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc_tip' => false, 'desc' => __( 'The required quantity in the message is a link: one click sets the cart line to the next tier and updates the cart.', 'tier-pricing-table' ), ), array( 'title' => __( 'Progress bar', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_progress', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'no', 'desc_tip' => false, 'desc' => __( 'Show a bar under the message that fills up as the quantity approaches the next tier.', 'tier-pricing-table' ), ), array( 'title' => __( 'Upsell text color', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_color', 'type' => 'color', 'default' => '#059669', 'css' => 'width:6em;', 'desc_tip' => false, 'desc' => __( 'Note: This feature is not compatible with the Gutenberg Cart/Checkout blocks.', 'tier-pricing-table' ), ), ); } }