__( 'Show tiered pricing automatically', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'display', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Automatically insert the pricing layout on the product page. If disabled, pricing remains dynamic but you must insert the layout manually via shortcode, block, or widget.', 'tier-pricing-table' ), 'desc_tip' => true, ), array( 'title' => __( 'Default visual layout', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'display_type', 'type' => TPTDisplayType::FIELD_TYPE, 'options' => TierPricingTablePlugin::getAvailablePricingLayouts(), 'desc' => __( 'Choose the default visual layout. You can also customize this individually per product.', 'tier-pricing-table' ), 'desc_tip' => true, 'default' => 'table', ), array( 'title' => __( 'Options design style', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'pricing_options_style', 'type' => TPTDisplayType::FIELD_TYPE, 'options' => array( 'default' => __( 'Default', 'tier-pricing-table' ), 'style-1' => __( 'Style #1', 'tier-pricing-table' ), 'style-2' => __( 'Style #2', 'tier-pricing-table' ), 'style-3' => __( 'Style #3', 'tier-pricing-table' ), 'style-4' => __( 'Style #4', 'tier-pricing-table' ), ), 'desc_tip' => true, 'default' => 'default', ), array( 'title' => __( 'Table design style', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'pricing_table_style', 'type' => TPTDisplayType::FIELD_TYPE, 'options' => array( 'default' => __( 'Default', 'tier-pricing-table' ), 'style-1' => __( 'Style #1', 'tier-pricing-table' ), 'style-2' => __( 'Style #2', 'tier-pricing-table' ), 'style-3' => __( 'Style #3', 'tier-pricing-table' ), 'style-4' => __( 'Style #4', 'tier-pricing-table' ), ), 'desc_tip' => true, 'default' => 'default', ), array( 'title' => __( 'Blocks design style', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'pricing_blocks_style', 'type' => TPTDisplayType::FIELD_TYPE, 'options' => array( 'default' => __( 'Default', 'tier-pricing-table' ), 'style-1' => __( 'Style #1', 'tier-pricing-table' ), 'style-2' => __( 'Style #2', 'tier-pricing-table' ), 'style-3' => __( 'Style #3', 'tier-pricing-table' ), 'style-4' => __( 'Style #4', 'tier-pricing-table' ), 'style-5' => __( 'Style #5', 'tier-pricing-table' ), 'style-6' => __( 'Style #6', 'tier-pricing-table' ), ), 'desc_tip' => true, 'default' => 'default', ), array( 'title' => __( 'Enable compact layout', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'compact_layout', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'no', 'desc' => __( 'Apply a space-saving compact design for the selected layout.', 'tier-pricing-table' ), ), array( 'title' => __( 'Layout title', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'table_title', 'type' => 'text', 'default' => '', 'desc_tip' => true, ), array( 'title' => __( 'Layout position', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'position_hook', 'type' => 'select', 'options' => array( 'woocommerce_before_add_to_cart_button' => __( 'Above add to cart button', 'tier-pricing-table' ), 'woocommerce_after_add_to_cart_button' => __( 'Below add to cart button', 'tier-pricing-table' ), 'woocommerce_before_add_to_cart_form' => __( 'Above add to cart form', 'tier-pricing-table' ), 'woocommerce_after_add_to_cart_form' => __( 'Below add to cart form', 'tier-pricing-table' ), 'woocommerce_single_product_summary' => __( 'Above product title', 'tier-pricing-table' ), 'woocommerce_before_single_product_summary' => __( 'Before product summary', 'tier-pricing-table' ), 'woocommerce_after_single_product_summary' => __( 'After product summary', 'tier-pricing-table' ), '____none____' => __( 'I display tiered pricing via shortcode/gutenberg/elementor', 'tier-pricing-table' ), ), 'desc' => __( 'Choose where you what tiered pricing be displayed on the product page.', 'tier-pricing-table' ), 'desc_tip' => true, ), array( 'title' => __( 'Quantity format', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'quantity_type', 'type' => TPTDisplayType::FIELD_TYPE, 'options' => array( 'range' => __( 'Range', 'tier-pricing-table' ), 'static' => __( 'Static values', 'tier-pricing-table' ), ), 'desc' => __( '"Range" displays the quantity range a tier applies to. "Static" displays only the minimum quantity required.', 'tier-pricing-table' ), 'desc_tip' => false, 'default' => 'range', ), array( 'title' => __( 'Active pricing tier color', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'selected_quantity_color', 'type' => 'color', 'css' => 'width:6em;', 'default' => '#3858e9', ), array( 'title' => __( 'Tooltip icon color', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'tooltip_color', 'type' => 'color', 'default' => '#3858e9', 'css' => 'width:6em;', 'desc' => __( 'Color of the icon.', 'tier-pricing-table' ), 'desc_tip' => true, ), array( 'title' => __( 'Tooltip icon size (px)', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'tooltip_size', 'type' => 'number', 'default' => '15', 'css' => 'width:120px;', 'desc' => __( 'Size of the icon.', 'tier-pricing-table' ), 'desc_tip' => true, ), array( 'title' => __( 'Tooltip border', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'tooltip_border', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', ), array( 'title' => __( 'Quantity unit label', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'table_quantity_measurement', 'type' => TPTQuantityMeasurementField::FIELD_TYPE, 'default' => array( 'singular' => '', 'plural' => '', ), 'desc' => __( 'For example: pieces, boxes, bottles, packs, etc. This will be shown next to quantity values. Leave blank to skip adding a unit label.', 'tier-pricing-table' ), ), array( 'title' => __( 'Quantity unit label', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'blocks_quantity_measurement', 'type' => TPTQuantityMeasurementField::FIELD_TYPE, 'default' => array( 'singular' => _n( 'piece', 'pieces', 1, 'tier-pricing-table' ), 'plural' => _n( 'piece', 'pieces', 2, 'tier-pricing-table' ), ), 'desc' => __( 'For example: pieces, boxes, bottles, packs, etc. This will be shown next to quantity values. Leave blank to skip adding a unit label.', 'tier-pricing-table' ), ), array( 'title' => __( 'Table column headers', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'table_columns_titles', 'options' => array( array( 'label' => __( 'Quantity', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'head_quantity_text', 'default' => __( 'Quantity', 'tier-pricing-table' ), ), array( 'label' => __( 'Discount', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'head_discount_text', 'default' => __( 'Discount (%)', 'tier-pricing-table' ), ), array( 'label' => __( 'Price', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'head_price_text', 'default' => __( 'Price', 'tier-pricing-table' ), ), ), 'desc' => __( 'Leave a column title empty to hide that column entirely.', 'tier-pricing-table' ), 'type' => TPTTableColumnsField::FIELD_TYPE, ), array( 'title' => __( 'Show percentage discount', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'show_discount_column', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Show the percentage discount in pricing blocks that offer a discount.', 'tier-pricing-table' ), ), array( 'title' => __( 'Show original price crossed out', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'options_show_original_product_price', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Pricing options will show a crossed-out regular price next to the discounted tier price.', 'tier-pricing-table' ), ), array( 'title' => __( 'Show total calculated price for selected option', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'options_show_total', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'The selected pricing option will dynamically display the total calculated cost.', 'tier-pricing-table' ), 'custom_attributes' => [ 'data-tiered-pricing-premium-option' => true ], ), array( 'title' => __( 'Pricing option text template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'options_option_text', 'default' => __( 'Buy {tp_quantity} pieces and save {tp_rounded_discount}%', 'tier-pricing-table' ), 'placeholders' => array( 'tp_quantity', 'tp_discount', 'tp_rounded_discount', 'tp_base_unit_name', ), 'type' => TPTTextTemplate::FIELD_TYPE, 'desc' => __( 'Use the variables above to build the template for the pricing option.', 'tier-pricing-table' ), ), array( 'title' => __( 'Show base price (no discount) option', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'options_show_default_option', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Display an option for the regular product price (e.g. 1 item) where no tier discount is applied.', 'tier-pricing-table' ), ), array( 'title' => __( 'Base price option template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'options_default_option_text', 'default' => __( 'Buy {tp_quantity} pieces', 'tier-pricing-table' ), 'placeholders' => array( 'tp_quantity', 'tp_base_unit_name', ), 'type' => TPTTextTemplate::FIELD_TYPE, 'desc' => __( 'Customize the template for the base price option.', 'tier-pricing-table' ), ), array( 'title' => __( 'Pricing string template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'plain_text_template', 'default' => __( 'Buy {tp_quantity} pieces for {tp_price} each and save {tp_rounded_discount}%', 'tier-pricing-table' ), 'placeholders' => array( 'tp_quantity', 'tp_discount', 'tp_price', 'tp_rounded_discount', 'tp_base_unit_name', ), 'type' => TPTTextTemplate::FIELD_TYPE, 'desc' => __( 'Use the variables above to build the template for the pricing string.', 'tier-pricing-table' ), ), array( 'title' => __( 'Show first tier pricing string', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'plain_text_show_first_tier', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Show the tier with a regular product price. This is the first pricing tier where no discount is offered.', 'tier-pricing-table' ), ), array( 'title' => __( 'First tier pricing string template', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'plain_text_first_tier_template', 'default' => __( 'Buy {tp_quantity} pieces for {tp_price} each', 'tier-pricing-table' ), 'placeholders' => array( 'tp_quantity', 'tp_price', 'tp_base_unit_name', ), 'type' => TPTTextTemplate::FIELD_TYPE, 'desc' => __( 'Set up the first pricing tier template where a discount is not offered.', 'tier-pricing-table' ), ), array( 'title' => __( 'Make pricing tiers clickable', 'tier-pricing-table' ), 'id' => Settings::SETTINGS_PREFIX . 'clickable_table_rows', 'type' => TPTSwitchOption::FIELD_TYPE, 'default' => 'yes', 'desc' => __( 'Allow customers to click on a pricing tier (table row, block, or option) to automatically select that quantity.', 'tier-pricing-table' ), 'custom_attributes' => [ 'data-tiered-pricing-premium-option' => true ], ), ); } }