s_Common::get_current_user_email_id();
}
// Settings.
return array(
'realtime_enabled' => array(
'title' => __( 'Realtime Rates', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'checkbox',
'label' => __( 'Enable', 'shiprocket-woocommerce-shipping-calculator' ),
'description' => __( 'Enable Realtime courier rates from Shiprocket', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
'default' => 'no',
),
'email_id' => array(
'title' => __( 'Email Id', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'default' => $logged_in_user_email_id,
'description' => __( 'Required for Shiprocket Account.', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'company_name' => array(
'title' => __( 'Company Name', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'description' => __( 'Required for Shiprocket Account', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'first_name' => array(
'title' => __( 'First Name', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'description' => __( 'Required for Shiprocket Account', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'last_name' => array(
'title' => __( 'Last Name', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'description' => __( 'Required for Shiprocket Account', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'phone' => array(
'title' => __( 'Phone', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'description' => __( 'Required for Shiprocket Account', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'integration_id' => array(
'title' => __( 'Integration Id', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'description' => __( 'Required for the Plugin to Authenticate Shiprocket Account. If your store is not already integrated with Shiprocket', 'shiprocket-woocommerce-shipping-calculator' ),
'placeholder' => __( 'It will be autofilled upon clicking the Signup button.', 'shiprocket-woocommerce-shipping-calculator' ),
'css' => 'pointer-events: none;opacity:0.7;',
),
'shipping_title' => array(
'title' => __( 'Fallback Rate Title', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'default' => 'Shipping Rate',
'description' => __( 'Enter the fallback shipping title that will be applied if none of the Shiprocket couriers are available.', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'fallback_rate' => array(
'title' => __( 'Fallback Shipping Rate', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'default' => '40',
'description' => __( 'Enter the fallback shipping charges that will be applied if none of the Shiprocket couriers are available.', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'shipping_title_flat' => array(
'title' => __( 'Flat Rate Title', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'default' => 'Flat Rate',
'description' => __( 'This name will be displayed when the real-time rates setting is disabled for your account.', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'flat_rate' => array(
'title' => __( 'Flat Shipping Rate', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'text',
'default' => '40',
'description' => __( 'Enter the flat shipping rates that should be applied to each order. When the real-time rates are disabled, flat shipping rates will be displayed.', 'shiprocket-woocommerce-shipping-calculator' ),
'desc_tip' => true,
),
'zone_wise_enabled' => array(
'title' => __( 'Zone Wise Shipping', 'shiprocket-woocommerce-shipping-calculator' ),
'type' => 'checkbox',
'label' => __( 'Enable', 'shiprocket-woocommerce-shipping-calculator' ),
'description' => __( 'Add Shiprocket App Configuration to your shipping zones to support shiprocket shipping once this option is enabled.Note : Create a Default Zone and add Shiprocket App Configuration shipping method to support Shiprocket Shipping by default ', 'shiprocket-woocommerce-shipping-calculator' ),
'default' => 'no',
),
);