<?php

    if ( ! class_exists( 'Redux' ) ) {  return;  }
	
    $opt_name_ionic_ecommerce = "ionic_ecommerce_app_settings"; 
    
    $args_ionic_array = array(
        'opt_name'             => $opt_name_ionic_ecommerce,
        'display_name'         => 'Ionic Ecommerce',
        'display_version'      => '3.0',
        'menu_type'            => 'menu',
        'allow_sub_menu'       => true,
        'menu_title'           => __( 'Ionic Ecommerce', 'Ionic Ecommerce' ),
        'page_title'           => __( 'Ionic Ecommerce', 'Ionic Ecommerce' ),
        'google_api_key'       => '',
        'google_update_weekly' => false,
        'async_typography'     => true,
        'admin_bar'            => true,
        'admin_bar_icon'       => 'dashicons-portfolio',
        'admin_bar_priority'   => 50,
        'global_variable'      => '',
        'dev_mode'             => false,
        'update_notice'        => true,
        'customizer'           => true,
        'page_priority'        => 61,
        'page_parent'          => 'themes.php',
        'page_permissions'     => 'manage_options',
        'menu_icon'            => '',
        'last_tab'             => '',
        'page_icon'            => 'icon-themes',
        'page_slug'            => 'ionic-ecommerce',
        'save_defaults'        => true,
        'default_show'         => false,
        'default_mark'         => '',
        'show_import_export'   => false,
        'transient_time'       => 60 * MINUTE_IN_SECONDS,
        'output'               => true,
        'output_tag'           => false,
        'database'             => '',
        'use_cdn'              => true,
        'hints'                => array(
            'icon'          => 'el el-question-sign',
            'icon_position' => 'right',
            'icon_color'    => 'white',
            'icon_size'     => 'normal',
            'tip_style'     => array(
                'color'   => 'light',
                'shadow'  => true,
                'rounded' => false,
                'style'   => '',
            ),
            'tip_position'  => array(
                'my' => 'top left',
                'at' => 'bottom right',
            ),
            'tip_effect'    => array(
                'show' => array(
                    'effect'   => 'slide',
                    'duration' => '500',
                    'event'    => 'mouseover',
                ),
                'hide' => array(
                    'effect'   => 'slide',
                    'duration' => '500',
                    'event'    => 'click mouseleave',
                ),
            ),
        )
    );

	
    
    Redux::setArgs( $opt_name_ionic_ecommerce, $args_ionic_array );

   
    	
	
    Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'  => __( 'General Settings', 'Ionic Ecommerce' ),
        'id'     => 'vc_general',
        'icon'   => 'el el-home',
        'fields' => array(
		
             array(
                'id'       => 'cancel_order_button',
                'type'     => 'select',
                'title'    => __( 'Cancel Orders Button', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Cancel Order Button in Order History.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			 array(
                'id'       => 'cancel_order_hours',
                'type'     => 'select',
                'title'    => __( 'Cancel Orders Duration', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose Hours in which user can cancel his order. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '1' => '1 Hour',
                    '2' => '2 Hours',
                    '3' => '3 Hours',
					'4' => '4 Hours',
                    '5' => '5 Hours',
                    '6' => '6 Hours',
					'7' => '7 Hours',
                    '8' => '8 Hours',
                ),
                'default'  => '1'
            ),
			
			array(
                'id'       => 'home_style',
                'type'     => 'select',
                'title'    => __( 'Home Screen Style', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose default home screen style.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '1' => 'Style 1',
                    '2' => 'Style 2',
					'3' => 'Style 3',
                    '4' => 'Style 4',
					'5' => 'Style 5',
					'6' => 'Style 6',
                    '7' => 'Style 7',
					'8' => 'Style 8',
                    '9' => 'Style 9',
					'10' => 'Style 10',
                ),
                'default'  => '1'
            ),
			
			
			array(
                'id'       => 'category_style',
                'type'     => 'select',
                'title'    => __( 'Category Screen Style', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose default category screen style.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '1' => 'Categories 1',
                    '2' => 'Categories 2',
					'3' => 'Categories 3',
                    '4' => 'Categories 4',
					'5' => 'Categories 5',
                ),
                'default'  => '1'
            ),
			
			array(
                'id'       => 'footer_button',
                'type'     => 'select',
                'title'    => __( 'Display Footer Menu', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Show/Hide footer menu in App.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '1' => 'Show',
                    '0' => 'Hide',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'cart_button',
                'type'     => 'select',
                'title'    => __( 'Display Cart Button', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Show/Hide cart button on individual product.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'package_name',
                'type'     => 'text',
                'title'    => __( 'IOS App Share', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter URL to iOS share App.', 'Ionic Ecommerce' ),
                'default'  => 'Package Name',
            ),
			
			array(
                'id'       => 'site_url',
                'type'     => 'text',
                'title'    => __( 'Website URL', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your website URL.', 'Ionic Ecommerce' ),
                'default'  => 'http://domain-name.com/',
            ),		
			
			
			array(
                'id'       => 'new_product_duration',
                'type'     => 'text',
                'title'    => __( 'New Product Duration', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter in days. e.g: 20. New tag will appear in product card for 20 days.', 'Ionic Ecommerce' ),
                'default'  => '20',
            ),
			
			array(
                'id'       => 'filter_max_price',
                'type'     => 'text',
                'title'    => __( 'Product Filter Max Price', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter price of your most expensive item of your store. e.g: 1000.' ),
                'default'  => '1000',
            ),			
			
			array(
                'id'       => 'update_order',
                'type'     => 'text',
				'hidden' => 'true',
                'title'    => __( 'Save Order', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Do not Enter anything' ),
				'validate_callback' => 'callback_function_update_order',
                'default'  => '1',
            ),	
        )
    ) );
	
	
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Checkout Settings', 'Ionic Ecommerce' ),
        'id'         => 'vc_checkout',
        'subsection' => false,
		'icon'   => 'el el-ok-sign',
        'fields'     => array( 

            array(
                'id'       => 'one_page_checkout',
                'type'     => 'select',
                'title'    => __( 'Checkout Type', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( '- When we select Virtual Products / One Page Checkout then billing, shipping and shipping methods screens will be hide.<br />
                        - When we select "Checkout screen in app" the checkout screen will appear in application. <br /> - WooCommerce points & reward plugin not compatible with Checkout screen in app', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Default',
                    '1' => ' For Virtual Products / One Page Checkout',
                    '2' => ' Checkout Screen in App',
                ),
                'default'  => '0'
            ),
			
            array(
                'id'       => 'checkout_process',
                'type'     => 'select',
                'title'    => __( 'Enable Guest Checkout', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
				'desc'     => __('Allows customers to checkout without creating an account.'),
                'options'  => array( 'yes' => 'Yes', 'no' => 'No' ),
                'default'  => 'no',
            ),
			
			array(
                'id'       => 'custom_css_for_checkout',
                'type'     => 'textarea',
                'title'    => __( 'Custom CSS for Checkout Page', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Use for hide header, footer and anything else for checkout page. It will effect only on mobile checkout screen. Desktop website & responsive view will not effect..', 'Ionic Ecommerce' ),
                'validate' => 'no_html',
                'default'  => '.site-header, nav, #secondary, footer {display: none!important;} '
            ),
			
           
        )
    ) );
	
	
	
	
	
	
	
	
	 Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'  => __( 'Contact Page Settings ', 'Ionic Ecommerce' ),
        'id'     => 'vc_contact_info',
        'icon'   => 'el el-phone-alt',
        'fields' => array(            
			
			array(
                'id'       => 'contact_us_email',
                'type'     => 'text',
                'title'    => __( 'Contact Us Email', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'It will use for contact us form in application.', 'Ionic Ecommerce' ),
                'default'  => 'info@domain-name.com',
            ),
			
			array(
                'id'       => 'from_email',
                'type'     => 'text',
                'title'    => __( 'From Email', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'It will use for contact us from mail address in application.', 'Ionic Ecommerce' ),
                'default'  => 'from@domain-name.com',
            ),
			
			array(
                'id'       => 'phone_no',
                'type'     => 'text',
                'title'    => __( 'Phone Number Symbol', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'User will be able to contact to you via this phone number.', 'Ionic Ecommerce' ),
                'default'  => '+92 123 456-789',
            ),
			
			array(
                'id'       => 'address',
                'type'     => 'text',
                'title'    => __( 'Address', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your address.', 'Ionic Ecommerce' ),
                'default'  => '228 Park avs',
            ),
			
			array(
                'id'       => 'city',
                'type'     => 'text',
                'title'    => __( 'City', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your city.' , 'Ionic Ecommerce'),
                'default'  => 'New York',
            ),	
			
			array(
                'id'       => 'state',
                'type'     => 'text',
                'title'    => __( 'state', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your state.', 'Ionic Ecommerce' ),
                'default'  => 'NY',
            ),	
			
			array(
                'id'       => 'Zip',
                'type'     => 'text',
                'title'    => __( 'zip', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your zip.', 'Ionic Ecommerce' ),
                'default'  => '10003',
            ),	
			
			array(
                'id'       => 'Country',
                'type'     => 'text',
                'title'    => __( 'country', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your country.', 'Ionic Ecommerce' ),
                'default'  => 'USA',
            ),
			
			array(
                'id'       => 'Latitude',
                'type'     => 'text',
                'title'    => __( 'latitude', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your latitude for map.', 'Ionic Ecommerce' ),
                'default'  => '40.730610',
            ),
			
			array(
                'id'       => 'Longitude',
                'type'     => 'text',
                'title'    => __( 'longitude', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your longitude for map.', 'Ionic Ecommerce' ),
                'default'  => '-73.935242',
            ),	
			
        )
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Sidebar Menu Links', 'Ionic Ecommerce' ),
        'id'         => 'vc_sidebar_menu',
        'subsection' => false,
		'icon'       => 'el el-link',
        'fields'     => array(

            array(
                'id'       => 'sidebar_menu_icon',
                'type'     => 'select',
                'title'    => __( 'Sidebar Menu Icon', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose sidebar menu icon is default(Ionic icon) or use PNG Image(Custom).', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => ' Default (Ionic)',
                    '1' => ' PNG Image (Custom)',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'wish_list_page',
                'type'     => 'select',
                'title'    => __( 'WishList', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display wishlist page.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'edit_profile_page',
                'type'     => 'select',
                'title'    => __( 'Edit Profile', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Edit Profile page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'shipping_address_page',
                'type'     => 'select',
                'title'    => __( 'Shipping Address', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Shipping Address page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'my_orders_page',
                'type'     => 'select',
                'title'    => __( 'My Orders', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display My Orders page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'contact_us_page',
                'type'     => 'select',
                'title'    => __( 'Contact Us', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Contact Us page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'about_us_page',
                'type'     => 'select',
                'title'    => __( 'About Us', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display About Us page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'bill_ship_info',
                'type'     => 'select',
                'title'    => __( 'Billing Shipping Info', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Billing Shipping Info. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'downloads',
                'type'     => 'select',
                'title'    => __( 'Downloads', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display downloads. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'news_page',
                'type'     => 'select',
                'title'    => __( 'News', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display News page. ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'intro_page',
                'type'     => 'select',
                'title'    => __( 'Introduction', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Introduction page.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'share_app',
                'type'     => 'select',
                'title'    => __( 'ShareApp', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display ShareApp.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'rate_app',
                'type'     => 'select',
                'title'    => __( 'RateApp', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display RateApp.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
			array(
                'id'       => 'setting_page',
                'type'     => 'select',
                'title'    => __( 'Setting', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please choose show to display Setting page.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
           
        )
    ) );
	
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Local Notification', 'Ionic Ecommerce' ),
        'id'         => 'vc_local_notification',
        'subsection' => false,
		'icon'       => 'el el-hand-right',
        'fields'     => array(
		
			array(
                'id'       => 'notification_title',
                'type'     => 'text',
                'title'    => __( 'Title', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'ocal Notification Title.', 'Ionic Ecommerce' ),
                'default'  => 'Ionic Ecommerce',
            ),
			
			array(
                'id'       => 'notification_text',
                'type'     => 'text',
                'title'    => __( 'Detail', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Local Notification Detail.', 'Ionic Ecommerce' ),
                'default'  => 'A bundle of products wating for you!',
            ),

            array(
                'id'       => 'notification_duration',
                'type'     => 'select',
                'title'    => __( 'Notification Duration', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select duration for local notification.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
	 )
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Facbook Login', 'Ionic Ecommerce' ),
        'id'         => 'vc_facebook_login',
        'subsection' => false,
		'icon'  => 'el el-facebook',
        'fields'     => array(			

            array(
                'id'       => 'facebook_login',
                'type'     => 'select',
                'title'    => __( 'Facbook Login', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Select Show Facbook Login.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'Hide',
                    '1' => 'Show',
                ),
                'default'  => '0'
            ),
			
	 )
    ) );
	
		
	
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'App Content Pages ', 'Ionic Ecommerce' ),
        'id'         => 'vc_content_pages',
        'subsection' => false,
		'icon'       => 'el el-font',
        'fields'     => array(
		
						
			array(
                'id'      => 'about_page_id',
                'type'    => 'text',
                'title'   => __( 'About Us Page ID', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please Create about us page for app and put page id here.', 'Ionic Ecommerce' ),
                'default'  => '',
            ),		
			
			
			array(
                'id'      => 'refund_page_id',
                'type'    => 'text',
                'title'   => __( 'Refund Page ID', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please Create refund page for app and put page id here.', 'Ionic Ecommerce' ),
                'default'  => '',
            ),
			
			array(
                'id'      => 'privacy_page_id',
                'type'    => 'text',
                'title'   => __( 'Privacy Page ID', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please Create privacy policy page for app and put page id here.', 'Ionic Ecommerce' ),
                'default'  => '',
            ),
			
			array(
                'id'      => 'terms_page_id',
                'type'    => 'text',
                'title'   => __( 'Terms Page ID', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please Create terms &  condition page for app and put page id here.', 'Ionic Ecommerce' ),
                'default'  => '',
            ),
	 	)
    ) );
	
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'WPML (Multi Language)', 'Ionic Ecommerce' ),
        'id'         => 'vc_wpml',
        'subsection' => false,
		'icon'       => 'el el-time',
        'fields'     => array(
		
		array(
                'id'       => 'wpml_enabled',
                'type'     => 'select',
                'title'    => __( 'Implement WPML in app', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" after installation & activation the WPML Plugin in your wordpress site.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),
	
		)
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Multi Vendor', 'Ionic Ecommerce' ),
        'id'         => 'vc_multi_vendor',
        'subsection' => false,
		'icon'       => 'el el-tags',
        'fields'     => array(
		
		array(
                'id'       => 'mvf_enabled',
                'type'     => 'select',
                'title'    => __( 'Implement Multi Vendor Feature ', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" after installation & activation the "dokan" or "WC Vendor" Plugin in your wordpress site.<br /> - WooCommerce  points & reward plugin not compatible with VC Vendor and dokan plugin ', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Dukan',
					'2' => 'WC Vendor',
                ),
                'default'  => '0'
            ),
	
		)
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'WC Points & Reward', 'Ionic Ecommerce' ),
        'id'         => 'vc_point_reward',
        'subsection' => false,
		'icon'       => 'el el-tint',
        'fields'     => array(
		
		array(
                'id'       => 'wp_point_reward',
                'type'     => 'select',
                'title'    => __( 'Implement Points & Rewards', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" after installation & activation the woocommerce points & rewards Plugin in your wordpress site.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),
	
		)
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Multi Currency', 'Ionic Ecommerce' ),
        'id'         => 'vc_multi_currency',
        'subsection' => false,
		'icon'       => 'el el-usd',
        'fields'     => array(
		
		array(
                'id'       => 'wp_multi_currency',
                'type'     => 'select',
                'title'    => __( 'Implement Multiple currency', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" after installation & activation the WooCommerce Currency Switcher Plugin in your wordpress site.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),
	
		)
    ) );
	
	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'Delivery Tracking', 'Ionic Ecommerce' ),
        'id'         => 'vc_delivery_tracking',
        'subsection' => false,
		'icon'       => 'el el-record',
        'fields'     => array(
		
		array(
                'id'       => 'delivery_tracking',
                'type'     => 'select',
                'title'    => __( 'Enable Delivery Tracking', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" if after installation & activation Woocommerce AfterShip plugin in your wordpress site.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),

		array(
                'id'       => 'tracking_url',
                'type'     => 'text',
                'title'    => __( 'Tracking URL', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your tracking URL.', 'Ionic Ecommerce' ),
                'default'  => 'http://urltracking.com/',
            ),


	
		)
    ) );


	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'GEO Fencing', 'Ionic Ecommerce' ),
        'id'         => 'vc_geo_fencing',
        'subsection' => false,
		'icon'       => 'el el-record',
        'fields'     => array(		
		array(
                'id'       => 'geo_fencing',
                'type'     => 'select',
                'title'    => __( 'Enable GEO Fencing', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please select "Yes" if you enable notification for nearest store available.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),	
		)
    ) );


 	Redux::setSection( $opt_name_ionic_ecommerce, array(
        'title'      => __( 'One Signal Notification', 'Ionic Ecommerce' ),
        'id'         => 'vc_one_signal',
        'subsection' => false,
		'icon'       => 'el el-record',
        'fields'     => array(		
		array(
                'id'       => 'one_signal_notification',
                'type'     => 'select',
                'title'    => __( 'Enable One Signal Notification', 'Ionic Ecommerce' ),
                'subtitle' => __( ' ', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please Enable if you want to send coupon notification.', 'Ionic Ecommerce' ),
                'options'  => array(
                    '0' => 'No',
                    '1' => 'Yes',
                ),
                'default'  => '0'
            ),

			
			array(
                'id'       => 'one_signal_app_id',
                'type'     => 'text',
                'title'    => __( 'One Signal App ID', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your One Signal App ID.', 'Ionic Ecommerce' ),
				'placeholder'=> '02a78165-197f-46f7-929e-8f2bbb1b1253',
                'default'  => '',
            ),

				array(
                'id'       => 'one_signal_app_key',
                'type'     => 'text',
                'title'    => __( 'One Signal App Key', 'Ionic Ecommerce' ),
                'subtitle' => __( '', 'Ionic Ecommerce' ),
                'desc'     => __( 'Please enter your One Signal App Key.', 'Ionic Ecommerce' ),
				'placeholder'=> 'MGJjNDQ1MTYtNDhmOC00ZWYzLWIyMzQtNmI5OWE4ZTA0Mjgx',
                'default'  => '',
            ),

	
		)
    ) );	








 if ( ! function_exists( 'callback_function_update_order' ) ) {
        function callback_function_update_order( $field, $value, $existing_value ) {
            $error   = false;
            $warning = false;

            if ( $value >= 1 ) {
                $value = $existing_value+1;
            } 

            $return['value'] = $value;

           
            return $return;
        }
    }
	
   ?>