# shopbuilder/1.1.4/app/Models/GeneralList.php

ShopBuilder – WooCommerce Builder For Elementor, version 1.1.4. 1,304 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/1.1.4/code/app/Models/GeneralList.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/1.1.4/raw/app/Models/GeneralList.php
- Modified: 2023-07-11T10:48:20+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/shopbuilder/1.1.4/code/app/Models/GeneralList.php#L10-L20`.

```php
<?php

namespace RadiusTheme\SB\Models;

// use RadiusTheme\SB\Helpers\Fns;
use RadiusTheme\SB\Elementor\Helper\ControlHelper;
use RadiusTheme\SB\Helpers\Fns;
use RadiusTheme\SB\Models\Base\ListModel;
use RadiusTheme\SB\Traits\SingletonTrait;

defined( 'ABSPATH' ) || exit;

/**
 * General Settings.
 */
class GeneralList extends ListModel {
	/**
	 * Singleton
	 */
	use SingletonTrait;

	/**
	 * List Id
	 *
	 * @var string
	 */
	protected $list_id = 'general';

	/**
	 * Constructor
	 */
	public function __construct() {
		parent::__construct();
		$this->title       = esc_html__( 'Global Settings', 'shopbuilder' );
		$this->description = esc_html__( 'ShopBuilder global settings for various elements.', 'shopbuilder' );
		$this->categories  = [
			'general'       => [
				'title' => esc_html__( 'General', 'shopbuilder' ),
			],

			'checkout' => [
				'title' => esc_html__( 'Checkout Page', 'shopbuilder' ),
			],

		];
	}

	/**
	 * Package
	 *
	 * @return array
	 */
	protected function raw_list() {
		$list = [
            'notification' => apply_filters(
                'rtsb/settings/notification/options',
                [
                    'id'           => 'notification',
                    'category'     => 'general',
                    'title'        => esc_html__( 'Notification Settings', 'shopbuilder' ),
                    'package'      => 'free',
                    'active_field' => [
                        'disable' => true,
                    ],
                    'fields'       => [
                        'notification_position'        => array(
                            'id'      => 'notification_position',
                            'value'   => 'center-center',
                            'type'    => 'select',
                            'label'   => esc_html__( 'Notification Position', 'shopbuilder' ),
                            'options' => array(
                                'center-center'     => esc_html__( 'Center Center', 'shopbuilder' ),
                                'top-right'         => esc_html__( 'Top Right', 'shopbuilder' ),
                                'bottom-right'      => esc_html__( 'Bottom Right', 'shopbuilder' ),
                                'bottom-left'       => esc_html__( 'Bottom Left', 'shopbuilder' ),
                                'top-left'          => esc_html__( 'Top Left', 'shopbuilder' ),
                                'top-full-width'    => esc_html__( 'Top Full Width', 'shopbuilder' ),
                                'bottom-full-width' => esc_html__( 'Bottom Full Width', 'shopbuilder' ),
                                'top-center'        => esc_html__( 'Top center', 'shopbuilder' ),
                                'bottom-center'     => esc_html__( 'Bottom center', 'shopbuilder' ),
                            ),
                        ),

                    ],
                ],
            ),
			'social_share' => apply_filters(
				'rtsb/settings/social_share/options',
				[
					'id'           => 'social_share',
					'category'     => 'general',
					'title'        => esc_html__( 'Social Share Settings', 'shopbuilder' ),
					'package'      => 'free',
					'active_field' => [
						'disable' => true,
					],
					'fields'       => [
						'share_platforms' => [
							'id'          => 'share_platforms',
							'label'       => esc_html__( 'Select Social Sharing Platforms', 'shopbuilder' ),
							'type'        => 'checkbox',
							'orientation' => 'vertical',
							'value'       => [ 'facebook', 'twitter', 'linkedin' ],
							'options'     => Fns::social_share_platforms_list(),
						],
                        'share_platforms_to_product_page' => array(
                            'id'    => 'share_platforms_to_product_page',
                            'type'  => 'switch',
                            'label' => esc_html__( 'Sharing Button in Single Product Page', 'shopbuilder' ),
                            'help'  => esc_html__( 'Enable this option to allow share a product from product page. Woocommerce Supported Sharing plugins added to Hook: woocommerce_share', 'shopbuilder' ),
                        ),
                        /*
                         * TODO : Implement later.
                        'share_icon_show_to_product_page' => array(
                            'id'    => 'share_icon_show_to_product_page',
                            'type'  => 'switch',
                            'label' => esc_html__( 'Sharing Icon in Single Product Page', 'shopbuilder' ),
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.social_share.share_platforms_to_product_page',
                                        'value'    => 'on',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ),
                        */
                        'share_icon_layout'           => array(
                            'type'    => 'select',
                            'value'   => 'share-layout1',
                            'label'   => esc_html__( 'Share Button Layout', 'shopbuilder' ),
                            'options' => [
                                'share-layout1' => esc_html__( 'Layout 1', 'shopbuilder' ),
                                'share-layout2' => esc_html__( 'Layout 2', 'shopbuilder' )
                            ],
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.social_share.share_platforms_to_product_page',
                                        'value'    => 'on',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ),
					],
				],
			),
            'billing_form' => apply_filters(
                'rtsb/settings/billing_form/options',
                [
                    'id'           => 'billing_form',
                    'category'     => 'checkout',
                    'title'        => esc_html__( 'Billing Form Settings', 'shopbuilder' ),
                    'package'      => 'free',
                    'active_field' => [
                        'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ),
                        'help'  => esc_html__( 'Switch on to Billing form settings.', 'shopbuilder' ),
                    ],
                    'fields'       => [
                        'billing_first_name'             => [
                            'id'          => 'billing_first_name',
                            'label'       => esc_html__( 'First name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show First name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'name',
                        ],
                        'billing_first_name_label'       => [
                            'id'         => 'billing_first_name_label',
                            'label'      => esc_html__( 'First name Label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'name',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_first_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_first_name_placeholder' => [
                            'id'         => 'billing_first_name_placeholder',
                            'label'      => esc_html__( 'First name Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_first_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_last_name'              => [
                            'id'          => 'billing_last_name',
                            'label'       => esc_html__( 'Last name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Last name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'name',
                        ],

                        'billing_last_name_label'        => [
                            'id'         => 'billing_last_name_label',
                            'label'      => esc_html__( 'Last name label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'name',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_last_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_last_name_placeholder'  => [
                            'id'         => 'billing_last_name_placeholder',
                            'label'      => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_last_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_company'                => [
                            'id'          => 'billing_company',
                            'label'       => esc_html__( 'Company name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show company name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'company',
                        ],

                        'billing_company_label'          => [
                            'id'         => 'billing_company_label',
                            'label'      => esc_html__( 'Company label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'company',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_company',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_company_placeholder'    => [
                            'id'         => 'billing_company_placeholder',
                            'label'      => esc_html__( 'Billing company Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_company',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_country'                => [
                            'id'          => 'billing_country',
                            'label'       => esc_html__( 'Country', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Country?',
                                    // 'disabled' => true,
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                    // 'disabled' => true,
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'billing_country_label'          => [
                            'id'    => 'billing_country_label',
                            'label' => esc_html__( 'Country label', 'shopbuilder' ),
                            'type'  => 'text',
                            'help'  => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_country',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_address_1'              => [
                            'id'          => 'billing_address_1',
                            'label'       => esc_html__( 'Address 1', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Address field?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'billing_address_1_label'        => [
                            'id'         => 'billing_address_1_label',
                            'label'      => esc_html__( 'Address 1 label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_address_1_placeholder'  => [
                            'id'         => 'billing_address_1_placeholder',
                            'label'      => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_address_2'              => [
                            'id'          => 'billing_address_2',
                            'label'       => esc_html__( 'Address 2', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Address field?',
                                ],
                            ],
                            'help'        => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
                            // 'tab'         => 'country',
                            'dependency'  => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_address_2_label'        => [
                            'id'         => 'billing_address_2_label',
                            'label'      => esc_html__( 'Address 2 label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                    [
                                        'item'     => 'general.billing_form.billing_address_2',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_address_2_placeholder'  => [
                            'id'         => 'billing_address_2_placeholder',
                            'label'      => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                    [
                                        'item'     => 'general.billing_form.billing_address_2',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_city'                   => [
                            'id'          => 'billing_city',
                            'label'       => esc_html__( 'Town / City', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Town / City?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],
                        'billing_city_label'             => [
                            'id'         => 'billing_city_label',
                            'label'      => esc_html__( 'Town / City label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_city',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_city_placeholder'       => [
                            'id'         => 'billing_city_placeholder',
                            'label'      => esc_html__( 'Billing city placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_city',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_state'                  => [
                            'id'          => 'billing_state',
                            'label'       => esc_html__( 'State', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show State?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'billing_state_label'            => [
                            'id'         => 'billing_state_label',
                            'label'      => esc_html__( 'State label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_state',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_postcode'               => [
                            'id'          => 'billing_postcode',
                            'label'       => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Postcode / ZIP?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],
                        'billing_postcode_label'         => [
                            'id'         => 'billing_postcode_label',
                            'label'      => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_postcode',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_postcode_placeholder'   => [
                            'id'         => 'billing_postcode_placeholder',
                            'label'      => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_postcode',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_phone'                  => [
                            'id'          => 'billing_phone',
                            'label'       => esc_html__( 'Phone', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Phone Field?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],
                        'billing_phone_label'            => [
                            'id'         => 'billing_phone_label',
                            'label'      => esc_html__( 'Phone field label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_phone',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_phone_placeholder'      => [
                            'id'         => 'billing_phone_placeholder',
                            'label'      => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_phone',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'billing_email'                  => [
                            'id'          => 'billing_email',
                            'label'       => esc_html__( 'Email address', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Email address Field?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],
                        'billing_email_label'            => [
                            'id'         => 'billing_email_label',
                            'label'      => esc_html__( 'Email address field label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_email',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'billing_email_placeholder'      => [
                            'id'         => 'billing_email_placeholder',
                            'label'      => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.billing_form.billing_email',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                    ],
                    /*
                    // 'tabs'         => [
                    // 	'general'    => [
                    // 		'title' => esc_html__( 'General', 'shopbuilder' ),
                    // 	],
                    // 	'name' => [
                    // 		'title' => esc_html__( 'Name', 'shopbuilder' ),
                    // 	],
                    // 	'company' => [
                    // 		'title' => esc_html__( 'Company', 'shopbuilder' ),
                    // 	],
                    // 	'country' => [
                    // 		'title' => esc_html__( 'Country', 'shopbuilder' ),
                    // 	],
                    // ],
                    */
                ]
            ),
            'shipping_form' => apply_filters(
                'rtsb/module/shipping_form/options',
                [
                    'id'           => 'shipping_form',
                    'category'     => 'checkout',
                    'title'        => esc_html__( 'Shipping Form Settings', 'shopbuilder' ),
                    'package'      => 'free',
                    'active_field' => [
                        'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ),
                        'help'  => esc_html__( 'Switch on to Shipping form settings.', 'shopbuilder' ),
                    ],
                    'fields'       => [
                        'shipping_first_name'             => [
                            'id'          => 'shipping_first_name',
                            'label'       => esc_html__( 'First name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show First name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'name',
                        ],
                        'shipping_first_name_label'       => [
                            'id'         => 'shipping_first_name_label',
                            'label'      => esc_html__( 'First name Label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'name',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_first_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_first_name_placeholder' => [
                            'id'         => 'shipping_first_name_placeholder',
                            'label'      => esc_html__( 'First name Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_first_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_last_name'              => [
                            'id'          => 'shipping_last_name',
                            'label'       => esc_html__( 'Last name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Last name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'name',
                        ],

                        'shipping_last_name_label'        => [
                            'id'         => 'shipping_last_name_label',
                            'label'      => esc_html__( 'Last name label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'name',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_last_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_last_name_placeholder'  => [
                            'id'         => 'shipping_last_name_placeholder',
                            'label'      => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_last_name',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_company'                => [
                            'id'          => 'shipping_company',
                            'label'       => esc_html__( 'Company name', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show company name?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'company',
                        ],

                        'shipping_company_label'          => [
                            'id'         => 'shipping_company_label',
                            'label'      => esc_html__( 'Company label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'company',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_company',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_company_placeholder'    => [
                            'id'         => 'shipping_company_placeholder',
                            'label'      => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_company',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_country'                => [
                            'id'          => 'shipping_country',
                            'label'       => esc_html__( 'Country', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Country?',
                                    // 'disabled' => true,
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                    // 'disabled' => true,
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'shipping_country_label'          => [
                            'id'    => 'shipping_country_label',
                            'label' => esc_html__( 'Country label', 'shopbuilder' ),
                            'type'  => 'text',
                            'help'  => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_country',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_address_1'              => [
                            'id'          => 'shipping_address_1',
                            'label'       => esc_html__( 'Address 1', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Address field?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'shipping_address_1_label'        => [
                            'id'         => 'shipping_address_1_label',
                            'label'      => esc_html__( 'Address 1 label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_address_1_placeholder'  => [
                            'id'         => 'shipping_address_1_placeholder',
                            'label'      => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_address_2'              => [
                            'id'          => 'shipping_address_2',
                            'label'       => esc_html__( 'Address 2', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Address field?',
                                ],
                            ],
                            'help'        => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
                            // 'tab'         => 'country',
                            'dependency'  => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_address_2_label'        => [
                            'id'         => 'shipping_address_2_label',
                            'label'      => esc_html__( 'Address 2 label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_2',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_address_2_placeholder'  => [
                            'id'         => 'shipping_address_2_placeholder',
                            'label'      => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_1',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                    [
                                        'item'     => 'general.shipping_form.shipping_address_2',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                         'shipping_city'                   => [
                         	'id'          => 'shipping_city',
                         	'label'       => esc_html__( 'Town / City', 'shopbuilder' ),
                         	'type'        => 'checkbox',
                         	'orientation' => 'vertical',
                         	'value'       => [ 'show', 'required' ],
                         	'options'     => [
                         		[
                         			'value' => 'show',
                         			'label' => 'Show Town / City?',
                         		],
                         		[
                         			'value' => 'required',
                         			'label' => 'Required Field',
                         		],
                         	],
                         	// 'tab'         => 'country',
                         ],
                         'shipping_city_label'             => [
                         	'id'         => 'shipping_city_label',
                         	'label'      => esc_html__( 'Town / City label', 'shopbuilder' ),
                         	'type'       => 'text',
                         	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                         	// 'tab'   => 'country',
                         	'dependency' => [
                         		'rules' => [
                         			[
                         				'item'     => 'general.shipping_form.shipping_city',
                         				'value'    => 'show',
                         				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                         			],
                         		],
                         	],
                         ],
                         'shipping_city_placeholder'       => [
                         	'id'         => 'shipping_city_placeholder',
                         	'label'      => esc_html__( 'Shipping city placeholder', 'shopbuilder' ),
                         	'type'       => 'text',
                         	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                         	// 'tab'   => 'country',
                         	'dependency' => [
                         		'rules' => [
                         			[
                         				'item'     => 'general.shipping_form.shipping_city',
                         				'value'    => 'show',
                         				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                         			],
                         		],
                         	],
                         ],

                        'shipping_state'                  => [
                            'id'          => 'shipping_state',
                            'label'       => esc_html__( 'State', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show State?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],

                        'shipping_state_label'            => [
                            'id'         => 'shipping_state_label',
                            'label'      => esc_html__( 'State label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_state',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        'shipping_postcode'               => [
                            'id'          => 'shipping_postcode',
                            'label'       => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
                            'type'        => 'checkbox',
                            'orientation' => 'vertical',
                            'value'       => [ 'show', 'required' ],
                            'options'     => [
                                [
                                    'value' => 'show',
                                    'label' => 'Show Postcode / ZIP?',
                                ],
                                [
                                    'value' => 'required',
                                    'label' => 'Required Field',
                                ],
                            ],
                            // 'tab'         => 'country',
                        ],
                        'shipping_postcode_label'         => [
                            'id'         => 'shipping_postcode_label',
                            'label'      => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_postcode',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],
                        'shipping_postcode_placeholder'   => [
                            'id'         => 'shipping_postcode_placeholder',
                            'label'      => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
                            'type'       => 'text',
                            'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                            // 'tab'   => 'country',
                            'dependency' => [
                                'rules' => [
                                    [
                                        'item'     => 'general.shipping_form.shipping_postcode',
                                        'value'    => 'show',
                                        'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                                    ],
                                ],
                            ],
                        ],

                        // 'shipping_phone'                  => [
                        // 	'id'          => 'shipping_phone',
                        // 	'label'       => esc_html__( 'Phone', 'shopbuilder' ),
                        // 	'type'        => 'checkbox',
                        // 	'orientation' => 'vertical',
                        // 	'value'       => [ 'show', 'required' ],
                        // 	'options'     => [
                        // 		[
                        // 			'value' => 'show',
                        // 			'label' => 'Show Phone Field?',
                        // 		],
                        // 		[
                        // 			'value' => 'required',
                        // 			'label' => 'Required Field',
                        // 		],
                        // 	],
                        // 	// 'tab'         => 'country',
                        // ],
                        // 'shipping_phone_label'            => [
                        // 	'id'         => 'shipping_phone_label',
                        // 	'label'      => esc_html__( 'Phone field label', 'shopbuilder' ),
                        // 	'type'       => 'text',
                        // 	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                        // 	// 'tab'   => 'country',
                        // 	'dependency' => [
                        // 		'rules' => [
                        // 			[
                        // 				'item'     => 'general.shipping_form.shipping_phone',
                        // 				'value'    => 'show',
                        // 				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                        // 			],
                        // 		],
                        // 	],
                        // ],
                        // 'shipping_phone_placeholder'      => [
                        // 	'id'         => 'shipping_phone_placeholder',
                        // 	'label'      => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
                        // 	'type'       => 'text',
                        // 	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                        // 	// 'tab'   => 'country',
                        // 	'dependency' => [
                        // 		'rules' => [
                        // 			[
                        // 				'item'     => 'general.shipping_form.shipping_phone',
                        // 				'value'    => 'show',
                        // 				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                        // 			],
                        // 		],
                        // 	],
                        // ],

                        // 'shipping_email'                  => [
                        // 	'id'          => 'shipping_email',
                        // 	'label'       => esc_html__( 'Email address', 'shopbuilder' ),
                        // 	'type'        => 'checkbox',
                        // 	'orientation' => 'vertical',
                        // 	'value'       => [ 'show', 'required' ],
                        // 	'options'     => [
                        // 		[
                        // 			'value' => 'show',
                        // 			'label' => 'Show Email address Field?',
                        // 		],
                        // 		[
                        // 			'value' => 'required',
                        // 			'label' => 'Required Field',
                        // 		],
                        // 	],
                        // 	// 'tab'         => 'country',
                        // ],
                        // 'shipping_email_label'            => [
                        // 	'id'         => 'shipping_email_label',
                        // 	'label'      => esc_html__( 'Email address field label', 'shopbuilder' ),
                        // 	'type'       => 'text',
                        // 	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                        // 	// 'tab'   => 'country',
                        // 	'dependency' => [
                        // 		'rules' => [
                        // 			[
                        // 				'item'     => 'general.shipping_form.shipping_email',
                        // 				'value'    => 'show',
                        // 				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                        // 			],
                        // 		],
                        // 	],
                        // ],
                        // 'shipping_email_placeholder'      => [
                        // 	'id'         => 'shipping_email_placeholder',
                        // 	'label'      => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
                        // 	'type'       => 'text',
                        // 	'help'       => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
                        // 	// 'tab'   => 'country',
                        // 	'dependency' => [
                        // 		'rules' => [
                        // 			[
                        // 				'item'     => 'general.shipping_form.shipping_email',
                        // 				'value'    => 'show',
                        // 				'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
                        // 			],
                        // 		],
                        // 	],
                        // ],
                    ],
                ]
            ),
		];

		return apply_filters( 'rtsb/core/general_settings/raw_list', $list );
	}
}

```
