Ejemplo n.º 1
0
 /**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 function get_settings_fields()
 {
     $pages_array = $this->get_post_type('page');
     $slider_array = $this->get_post_type('dokan_slider');
     $settings_fields = array('dokan_general' => array('admin_access' => array('name' => 'admin_access', 'label' => __('Admin area access', 'dokan'), 'desc' => __('Disable sellers and customers from accessing wp-admin area', 'dokan'), 'type' => 'checkbox', 'default' => 'on')), 'dokan_selling' => array('new_seller_enable_selling' => array('name' => 'new_seller_enable_selling', 'label' => __('New Seller Enable Selling', 'dokan'), 'desc' => __('Make selling status enable for new registred seller', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'seller_percentage' => array('name' => 'seller_percentage', 'label' => __('Seller Percentage', 'dokan'), 'desc' => __('How much amount (%) a seller will get from each order', 'dokan'), 'default' => '90', 'type' => 'text'), 'order_status_change' => array('name' => 'order_status_change', 'label' => __('Order Status Change', 'dokan'), 'desc' => __('Seller can change order status', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'withdraw_methods' => array('name' => 'withdraw_methods', 'label' => __('Withdraw Methods', 'dokan'), 'desc' => __('Withdraw methods for sellers', 'dokan'), 'type' => 'multicheck', 'default' => array('paypal' => 'paypal'), 'options' => dokan_withdraw_get_methods()), 'withdraw_limit' => array('name' => 'withdraw_limit', 'label' => __('Minimum Withdraw Limit', 'dokan'), 'desc' => __('Minimum balance required to make a withdraw request', 'dokan'), 'default' => '50', 'type' => 'text')), 'dokan_pages' => array('dashboard' => array('name' => 'dashboard', 'label' => __('Dashboard', 'dokan'), 'type' => 'select', 'options' => $pages_array), 'my_orders' => array('name' => 'my_orders', 'label' => __('My Orders', 'dokan'), 'type' => 'select', 'options' => $pages_array)));
     return apply_filters('dokan_settings_fields', $settings_fields);
 }
Ejemplo n.º 2
0
 /**
  * Returns all the settings fields
  *
  * @since 1.0
  *
  * @return array settings fields
  */
 function get_settings_fields()
 {
     $pages_array = self::get_post_type('page');
     $slider_array = self::get_post_type('dokan_slider');
     $settings_fields = array('dokan_general' => array('admin_access' => array('name' => 'admin_access', 'label' => __('Admin area access', 'dokan'), 'desc' => __('Disable sellers and customers from accessing wp-admin area', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'custom_store_url' => array('name' => 'custom_store_url', 'label' => __('Seller Store URL', 'dokan'), 'desc' => sprintf(__('Define seller store URL (%s<strong>[this-text]</strong>/[seller-name])', 'dokan'), site_url('/')), 'default' => 'store', 'type' => 'text'), 'seller_enable_terms_and_conditions' => array('name' => 'seller_enable_terms_and_conditions', 'label' => __('Terms and Conditions', 'dokan'), 'desc' => __('Enable terms and conditions for seller store', 'dokan'), 'type' => 'checkbox', 'default' => 'off')), 'dokan_selling' => array('new_seller_enable_selling' => array('name' => 'new_seller_enable_selling', 'label' => __('New Seller Enable Selling', 'dokan'), 'desc' => __('Make selling status enable for new registred seller', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'seller_percentage' => array('name' => 'seller_percentage', 'label' => __('Seller Commission %', 'dokan'), 'desc' => __('How much amount (%) a seller will get from each order', 'dokan'), 'default' => '90', 'type' => 'text'), 'order_status_change' => array('name' => 'order_status_change', 'label' => __('Order Status Change', 'dokan'), 'desc' => __('Seller can change order status', 'dokan'), 'type' => 'checkbox', 'default' => 'on')), 'dokan_withdraw' => array('withdraw_methods' => array('name' => 'withdraw_methods', 'label' => __('Withdraw Methods', 'dokan'), 'desc' => __('Withdraw methods for sellers', 'dokan'), 'type' => 'multicheck', 'default' => array('paypal' => 'paypal'), 'options' => dokan_withdraw_get_methods()), 'withdraw_limit' => array('name' => 'withdraw_limit', 'label' => __('Minimum Withdraw Limit', 'dokan'), 'desc' => __('Minimum balance required to make a withdraw request', 'dokan'), 'default' => '50', 'type' => 'text')), 'dokan_pages' => array('dashboard' => array('name' => 'dashboard', 'label' => __('Dashboard', 'dokan'), 'type' => 'select', 'options' => $pages_array), 'my_orders' => array('name' => 'my_orders', 'label' => __('My Orders', 'dokan'), 'type' => 'select', 'options' => $pages_array)));
     return apply_filters('dokan_settings_fields', $settings_fields);
 }
Ejemplo n.º 3
0
 /**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 function get_settings_fields()
 {
     $pages_array = $this->get_post_type('page');
     $slider_array = $this->get_post_type('dokan_slider');
     $settings_fields = array('dokan_general' => array('admin_access' => array('name' => 'admin_access', 'label' => __('Admin area access', 'dokan'), 'desc' => __('Disable sellers and customers from accessing wp-admin area', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'store_map' => array('name' => 'store_map', 'label' => __('Show Map on Store Page', 'dokan'), 'desc' => __('Enable showing Store location map on store left sidebar', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'contact_seller' => array('name' => 'contact_seller', 'label' => __('Show Contact Form on Store Page', 'dokan'), 'desc' => __('Enable showing contact seller form on store left sidebar', 'dokan'), 'type' => 'checkbox', 'default' => 'on')), 'dokan_selling' => array('new_seller_enable_selling' => array('name' => 'new_seller_enable_selling', 'label' => __('New Seller Enable Selling', 'dokan'), 'desc' => __('Make selling status enable for new registred seller', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'product_status' => array('name' => 'product_status', 'label' => __('New Product Status', 'dokan'), 'desc' => __('Product status when a seller creates a product', 'dokan'), 'type' => 'select', 'default' => 'pending', 'options' => array('publish' => __('Published', 'dokan'), 'pending' => __('Pending Review', 'dokan'))), 'seller_percentage' => array('name' => 'seller_percentage', 'label' => __('Seller Percentage', 'dokan'), 'desc' => __('How much amount (%) a seller will get from each order', 'dokan'), 'default' => '90', 'type' => 'text'), 'order_status_change' => array('name' => 'order_status_change', 'label' => __('Order Status Change', 'dokan'), 'desc' => __('Seller can change order status', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'withdraw_methods' => array('name' => 'withdraw_methods', 'label' => __('Withdraw Methods', 'dokan'), 'desc' => __('Withdraw methods for sellers', 'dokan'), 'type' => 'multicheck', 'default' => array('paypal' => 'paypal'), 'options' => dokan_withdraw_get_methods()), 'withdraw_order_status' => array('name' => 'withdraw_order_status', 'label' => __('Order Status for Withdraw', 'dokan'), 'desc' => __('Order status for which seller can make a withdraw request.', 'dokan'), 'type' => 'multicheck', 'default' => array('wc-completed' => __('Completed', 'dokan'), 'wc-processing' => __('Processing', 'dokan'), 'wc-on-hold' => __('On-hold', 'dokan')), 'options' => array('wc-completed' => __('Completed', 'dokan'), 'wc-processing' => __('Processing', 'dokan'), 'wc-on-hold' => __('On-hold', 'dokan'))), 'withdraw_limit' => array('name' => 'withdraw_limit', 'label' => __('Minimum Withdraw Limit', 'dokan'), 'desc' => __('Minimum balance required to make a withdraw request', 'dokan'), 'default' => '50', 'type' => 'text'), 'review_edit' => array('name' => 'review_edit', 'label' => __('Review Editing', 'dokan'), 'desc' => __('Seller can edit product reviews', 'dokan'), 'type' => 'checkbox', 'default' => 'off')), 'dokan_pages' => array('dashboard' => array('name' => 'dashboard', 'label' => __('Dashboard', 'dokan'), 'type' => 'select', 'options' => $pages_array)));
     return apply_filters('dokan_settings_fields', $settings_fields);
 }
Ejemplo n.º 4
0
 /**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 function get_settings_fields()
 {
     $pages_array = $this->get_post_type('page');
     $slider_array = $this->get_post_type('dokan_slider');
     $settings_fields = array('dokan_general' => array(array('name' => 'admin_access', 'label' => __('Admin area access', 'dokan'), 'desc' => __('Disable sellers and customers from accessing wp-admin area', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'color_skin', 'label' => __('Color Skin', 'dokan'), 'desc' => __('Choose the color skin of the theme', 'dokan'), 'type' => 'select', 'default' => 'orange', 'options' => array('orange.css' => __('Orange', 'dokan'), 'sky.css' => __('Sky', 'dokan'), 'blue.css' => __('Blue', 'dokan'), 'green.css' => __('Green', 'dokan'), 'purple.css' => __('Purple', 'dokan'), 'red.css' => __('Red', 'dokan'), 'pink.css' => __('Pink', 'dokan'))), array('name' => 'footer_text', 'label' => __('Site footer text', 'dokan'), 'desc' => '', 'default' => sprintf(__('&copy; %d. All rights are reserved', 'dokan'), date('Y')), 'type' => 'text')), 'dokan_selling' => array(array('name' => 'product_status', 'label' => __('New Product Status', 'dokan'), 'desc' => __('Product status when a seller creates a product', 'dokan'), 'type' => 'select', 'default' => 'pending', 'options' => array('publish' => __('Published', 'dokan'), 'pending' => __('Pending Review', 'dokan'))), array('name' => 'seller_percentage', 'label' => __('Seller Percentage', 'dokan'), 'desc' => __('How much amount (%) a seller will get from each order', 'dokan'), 'default' => '90', 'type' => 'text'), array('name' => 'order_status_change', 'label' => __('Order Status Change', 'dokan'), 'desc' => __('Seller Could Change Order Status', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'withdraw_methods', 'label' => __('Withdraw Methods', 'dokan'), 'desc' => __('Withdraw methods for sellers', 'dokan'), 'type' => 'multicheck', 'default' => array('paypal' => 'paypal'), 'options' => dokan_withdraw_get_methods()), array('name' => 'withdraw_order_status', 'label' => __('Order Status for Withdraw', 'dokan'), 'desc' => __('Order status for which seller can make a withdraw request.', 'dokan'), 'type' => 'multicheck', 'default' => array('completed' => __('Completed', 'dokan'), 'processing' => __('Processing', 'dokan'), 'on-hold' => __('On-hold', 'dokan')), 'options' => array('completed' => __('Completed', 'dokan'), 'processing' => __('Processing', 'dokan'), 'on-hold' => __('On-hold', 'dokan'))), array('name' => 'withdraw_limit', 'label' => __('Minimum Withdraw Limit', 'dokan'), 'desc' => __('Minimum balance required to make a withdraw request', 'dokan'), 'default' => '50', 'type' => 'text')), 'dokan_home' => array(array('name' => 'show_slider', 'label' => __('Slider', 'dokan'), 'desc' => __('Show Slider', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'slider_id', 'label' => __('Select Slider', 'dokan'), 'desc' => __('Select which slider to show on homepage', 'dokan'), 'type' => 'select', 'options' => $slider_array), array('name' => 'show_featured', 'label' => __('Featured Products', 'dokan'), 'desc' => __('Show Featured Products', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_latest', 'label' => __('Latest Products', 'dokan'), 'desc' => __('Show Latest Products', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_best_selling', 'label' => __('Best Selling Products', 'dokan'), 'desc' => __('Show Best Selling Products', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_top_rated', 'label' => __('Top Rated Products', 'dokan'), 'desc' => __('Show Top Rated Products', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), array('name' => 'show_on_sale', 'label' => __('On Sale Products', 'dokan'), 'desc' => __('Show On Sale Products', 'dokan'), 'type' => 'checkbox', 'default' => 'on')), 'dokan_pages' => array(array('name' => 'dashboard', 'label' => __('Dashboard', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'products', 'label' => __('Products Listing', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'new_product', 'label' => __('Create Product Page', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'orders', 'label' => __('Orders', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'coupons', 'label' => __('Coupons', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'reports', 'label' => __('Reports', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'reviews', 'label' => __('Reviews', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'withdraw', 'label' => __('Withdraw', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'settings', 'label' => __('Settings', 'dokan'), 'type' => 'select', 'options' => $pages_array), array('name' => 'my_orders', 'label' => __('My Orders', 'dokan'), 'type' => 'select', 'options' => $pages_array)));
     return apply_filters('dokan_settings_fields', $settings_fields);
 }
Ejemplo n.º 5
0
 /**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 function get_settings_fields()
 {
     $pages_array = $this->get_post_type('page');
     $slider_array = $this->get_post_type('dokan_slider');
     $settings_fields = array('dokan_general' => array('admin_access' => array('name' => 'admin_access', 'label' => __('Admin area access', 'dokan'), 'desc' => __('Disable sellers and customers from accessing wp-admin area', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'store_map' => array('name' => 'store_map', 'label' => __('Show Map on Store Page', 'dokan'), 'desc' => __('Enable showing Store location map on store left sidebar', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'contact_seller' => array('name' => 'contact_seller', 'label' => __('Show Contact Form on Store Page', 'dokan'), 'desc' => __('Enable showing contact seller form on store left sidebar', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'enable_theme_store_sidebar' => array('name' => 'enable_theme_store_sidebar', 'label' => __('Enable Store Sidebar From Theme', 'dokan'), 'desc' => __('Enable showing Store Sidebar From Your Theme.', 'dokan'), 'type' => 'checkbox', 'default' => 'off'), 'product_add_mail' => array('name' => 'product_add_mail', 'label' => __('Product Mail Notification', 'dokan'), 'desc' => __('Email notification on new product submission', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'store_seo' => array('name' => 'store_seo', 'label' => __('Enable Store SEO', 'dokan'), 'desc' => __('Sellers can manage their Store page SEO', 'dokan'), 'type' => 'checkbox', 'default' => 'on')), 'dokan_selling' => array('seller_enable_terms_and_conditions' => array('name' => 'seller_enable_terms_and_conditions', 'label' => __('Terms and Conditions', 'dokan'), 'desc' => __('Enable terms and conditions for seller store', 'dokan'), 'type' => 'checkbox', 'default' => 'off'), 'new_seller_enable_selling' => array('name' => 'new_seller_enable_selling', 'label' => __('New Seller Enable Selling', 'dokan'), 'desc' => __('Make selling status enable for new registred seller', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'product_style' => array('name' => 'product_style', 'label' => __('Add/Edit Product Style', 'dokan'), 'desc' => __('The style you prefer for seller to add or edit products. ', 'dokan'), 'type' => 'select', 'default' => 'old', 'options' => array('old' => __('Tab View', 'dokan'), 'new' => __('Flat View', 'dokan'))), 'product_category_style' => array('name' => 'product_category_style', 'label' => __('Category Selection', 'dokan'), 'desc' => __('What option do you prefer for seller to select product category? ', 'dokan'), 'type' => 'select', 'default' => 'single', 'options' => array('single' => __('Single', 'dokan'), 'multiple' => __('Multiple', 'dokan'))), 'product_status' => array('name' => 'product_status', 'label' => __('New Product Status', 'dokan'), 'desc' => __('Product status when a seller creates a product', 'dokan'), 'type' => 'select', 'default' => 'pending', 'options' => array('publish' => __('Published', 'dokan'), 'pending' => __('Pending Review', 'dokan'))), 'seller_percentage' => array('name' => 'seller_percentage', 'label' => __('Seller Percentage', 'dokan'), 'desc' => __('How much amount (%) a seller will get from each order', 'dokan'), 'default' => '90', 'type' => 'text'), 'order_status_change' => array('name' => 'order_status_change', 'label' => __('Order Status Change', 'dokan'), 'desc' => __('Seller can change order status', 'dokan'), 'type' => 'checkbox', 'default' => 'on'), 'withdraw_methods' => array('name' => 'withdraw_methods', 'label' => __('Withdraw Methods', 'dokan'), 'desc' => __('Withdraw methods for sellers', 'dokan'), 'type' => 'multicheck', 'default' => array('paypal' => 'paypal'), 'options' => dokan_withdraw_get_methods()), 'withdraw_order_status' => array('name' => 'withdraw_order_status', 'label' => __('Order Status for Withdraw', 'dokan'), 'desc' => __('Order status for which seller can make a withdraw request.', 'dokan'), 'type' => 'multicheck', 'default' => array('wc-completed' => __('Completed', 'dokan'), 'wc-processing' => __('Processing', 'dokan'), 'wc-on-hold' => __('On-hold', 'dokan')), 'options' => array('wc-completed' => __('Completed', 'dokan'), 'wc-processing' => __('Processing', 'dokan'), 'wc-on-hold' => __('On-hold', 'dokan'))), 'withdraw_limit' => array('name' => 'withdraw_limit', 'label' => __('Minimum Withdraw Limit', 'dokan'), 'desc' => __('Minimum balance required to make a withdraw request', 'dokan'), 'default' => '50', 'type' => 'text'), 'withdraw_date_limit' => array('name' => 'withdraw_date_limit', 'label' => __('Withdraw Threshold', 'dokan'), 'desc' => __('Days, ( Make order matured to make a withdraw request) <br> Value "0" will inactive this option', 'dokan'), 'default' => '0', 'type' => 'text'), 'custom_store_url' => array('name' => 'custom_store_url', 'label' => __('Seller Store URL', 'dokan'), 'desc' => sprintf(__('Define seller store URL (%s<strong>[this-text]</strong>/[seller-name])', 'dokan'), site_url('/')), 'default' => 'store', 'type' => 'text'), 'review_edit' => array('name' => 'review_edit', 'label' => __('Review Editing', 'dokan'), 'desc' => __('Seller can edit product reviews', 'dokan'), 'type' => 'checkbox', 'default' => 'off')), 'dokan_pages' => array('dashboard' => array('name' => 'dashboard', 'label' => __('Dashboard', 'dokan'), 'type' => 'select', 'options' => $pages_array), 'my_orders' => array('name' => 'my_orders', 'label' => __('My Orders', 'dokan'), 'type' => 'select', 'options' => $pages_array)));
     return apply_filters('dokan_settings_fields', $settings_fields);
 }