public StoresPickupComputationMethod(IMeasureService measureService, IShippingService shippingService, ISettingService settingService, StoresPickupSettings upsSettings, ICountryService countryService, ICurrencyService currencyService, CurrencySettings currencySettings, IOrderTotalCalculationService orderTotalCalculationService, ILogger logger, ILocalizationService localizationService) { this._measureService = measureService; this._shippingService = shippingService; this._settingService = settingService; this._ffSettings = upsSettings; this._countryService = countryService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._orderTotalCalculationService = orderTotalCalculationService; this._logger = logger; this._localizationService = localizationService; }
/// <summary> /// Install plugin /// </summary> public override void Install() { //settings var settings = new StoresPickupSettings() { Tiendas = "" }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.Fields.Stores", "List of stores"); this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.Fields.Stores.Hint", "Your store list separated by semicolon (e.g. store 1; store 2;…)"); this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.Selection", "Pick up on Store: "); this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.NoItems", "No shipment items"); this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.NoAddress", "Shipping address is not set"); this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.StoresPickup.NoCountry", "Shipping country is not set"); base.Install(); }