Example #1
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            _settingService.SaveSetting(CentralTransportSettings.Default());


            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.AccessCode, "Access Code"
                );
            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.AccessCodeHint,
                "Code provided to your company by Central Transport."
                );

            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.CustomerNumber, "Customer Number"
                );
            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.CustomerNumberHint,
                "Central Transport customer account number."
                );

            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.ShipmentClass, "Shipment Class"
                );
            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.ShipmentClassHint,
                "Shipment class to use for rate quotes."
                );

            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.MinimumWeightLimitInLbs,
                "Minimum Weight Limit (in lbs)"
                );
            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.MinimumWeightLimitInLbsHint,
                "Weight limit to start checking for Central Transport weights"
                );

            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.ShippingOptionName,
                "Shipping Option Name"
                );
            _localizationService.AddOrUpdatePluginLocaleResource(
                CentralTransportLocales.ShippingOptionNameHint,
                "Name to show customer for shipping option."
                );

            base.Install();
        }
Example #2
0
 public CentralTransportComputationMethod(
     CentralTransportSettings settings,
     ILocalizationService localizationService,
     ISettingService settingService,
     IWebHelper webHelper,
     IRateQuoteService rateQuoteService,
     IMeasureService measureService,
     IShippingService shippingService
     )
 {
     _settings            = settings;
     _localizationService = localizationService;
     _settingService      = settingService;
     _webHelper           = webHelper;
     _rateQuoteService    = rateQuoteService;
     _measureService      = measureService;
     _shippingService     = shippingService;
 }