# merchant/1.6/inc/modules/frequently-bought-together/admin/options.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 1.6. 106 lines.

- Page: https://pluginprobe.com/plugins/merchant/1.6/code/inc/modules/frequently-bought-together/admin/options.php
- Raw: https://pluginprobe.com/plugins/merchant/1.6/raw/inc/modules/frequently-bought-together/admin/options.php
- Modified: 2023-11-29T20:09:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/merchant/1.6/code/inc/modules/frequently-bought-together/admin/options.php#L10-L20`.

```php
<?php

/**
 * Frequently Bought Together Options.
 *
 * @package Merchant
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

// Settings
Merchant_Admin_Options::create( array(
	'title'  => esc_html__( 'Settings', 'merchant' ),
	'module' => Merchant_Frequently_Bought_Together::MODULE_ID,
	'fields' => array(
		array(
			'id'      => 'single_product_placement',
			'type'    => 'select',
			'title'   => esc_html__( 'Placement on product page', 'merchant' ),
			'options' => array(
				'after-summary' => esc_html__( 'After product summary', 'merchant' ),
				'after-tabs'    => esc_html__( 'After product tabs', 'merchant' ),
				'bottom'        => esc_html__( 'At the bottom', 'merchant' ),
			),
			'default' => 'after-summary'
		),
	),
) );

// Text Formatting Settings
Merchant_Admin_Options::create( array(
	'title'  => esc_html__( 'Text Formatting Settings', 'merchant' ),
	'module' => Merchant_Frequently_Bought_Together::MODULE_ID,
	'fields' => array(
		array(
			'id'      => 'title',
			'type'    => 'text',
			'title'   => esc_html__( 'Title', 'merchant' ),
			'default' => esc_html__( 'Frequently Bought Together', 'merchant' ),
		),

		array(
			'id'      => 'price_label',
			'type'    => 'text',
			'title'   => esc_html__( 'Price label', 'merchant' ),
			'default' => esc_html__( 'Bundle price', 'merchant' ),
		),

		array(
			'id'      => 'save_label',
			'type'    => 'text',
			'title'   => esc_html__( 'You save label', 'merchant' ),
			'default' => esc_html__( 'You save: {amount}', 'merchant' ),
		),

		array(
			'id'      => 'button_text',
			'type'    => 'text',
			'title'   => esc_html__( 'Button text', 'merchant' ),
			'default' => esc_html__( 'Add to cart', 'merchant' ),
		),
	)
) );

// Style Settings
Merchant_Admin_Options::create( array(
	'module' => Merchant_Frequently_Bought_Together::MODULE_ID,
	'title'  => esc_html__( 'Style Settings', 'merchant' ),
	'fields' => array(

		array(
			'id'      => 'plus_bg_color',
			'type'    => 'color',
			'title'   => esc_html__( 'Plus sign background color', 'merchant' ),
			'default' => '#212121'
		),

		array(
			'id'      => 'plus_text_color',
			'type'    => 'color',
			'title'   => esc_html__( 'Plus sign text color', 'merchant' ),
			'default' => '#fff'
		),

		array(
			'id'      => 'bundle_border_color',
			'type'    => 'color',
			'title'   => esc_html__( 'Bundle border color', 'merchant' ),
			'default' => '#f9f9f9'
		),

		array(
			'id'      => 'bundle_border_radius',
			'type'    => 'range',
			'title'   => esc_html__( 'Bundle border radius', 'merchant' ),
			'min'     => 0,
			'max'     => 100,
			'step'    => 1,
			'unit'    => 'px',
			'default' => 5
		),
	),
) );

```
