__( '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' => __( 'Buy {tp_required_quantity} more to get {tp_next_price} each',
'tier-pricing-table' ),
'desc_tip' => false,
),
array(
'title' => __( 'Upsell text color', 'tier-pricing-table' ),
'id' => Settings::SETTINGS_PREFIX . 'cart_upsell_color',
'type' => 'color',
'default' => '#3858e9',
'css' => 'width:6em;',
'desc_tip' => false,
'desc' => __( 'Note: This feature is not compatible with the Gutenberg Cart/Checkout blocks.',
'tier-pricing-table' ),
),
);
}
}