public BpostShippingManagerComputationMethod( BpostShippingManagerSettings settings, ISettingService settingService, ILocalizationService localizationService, IStoreContext storeContext, IWorkContext workContext) { _settings = settings; _settingService = settingService; _localizationService = localizationService; _storeContext = storeContext; _workContext = workContext; }
public override void Install() { var pluginSettings = new BpostShippingManagerSettings { AccountId = "111111", PassPhrase = "MySecretPassPhrase", ButtonCssClass = "button-1", Standardprice = 4 }; _settingService.SaveSetting(pluginSettings); this.AddOrUpdatePluginLocaleResource("MakeIT.Nop.Shipping.Bpost.ShippingManager.ShippingOptionTitle", "Verzenden met Bpost"); this.AddOrUpdatePluginLocaleResource("MakeIT.Nop.Shipping.Bpost.ShippingManager.ButtonCaption", "Kies uw verzendmethode..."); this.AddOrUpdatePluginLocaleResource("MakeIT.Nop.Shipping.Bpost.ShippingManager.DeliveryMethod.Pugo", "Gekozen aflevermethode: In een afhaalpunt"); this.AddOrUpdatePluginLocaleResource("MakeIT.Nop.Shipping.Bpost.ShippingManager.DeliveryMethod.Regular", "Gekozen aflevermethode: Thuis of op kantoor"); this.AddOrUpdatePluginLocaleResource("MakeIT.Nop.Shipping.Bpost.ShippingManager.DeliveryMethod.ParcelsDepot", "Gekozen aflevermethode: Pakjesautomaat"); base.Install(); }