Exemplo n.º 1
0
 public ShipByDronePaymentComputationMethod(ShipByDronePaymentSettings ShipByDronePaymentSettings,
                                            ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                                            ILocalizationService localizationService)
 {
     this._ShipByDronePaymentSettings   = ShipByDronePaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            var settings = new ShipByDronePaymentSettings()
            {
                DescriptionText = "<p>Reserve items at your local store, and pay in store when you pick up your order.<br />Our store location: USA, New York,...</p><p>P.S. You can edit this text from admin panel.</p>"
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.DescriptionText", "Description");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.PaymentMethodDescription", "Pay In Store");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.AdditionalFee.Hint", "The additional fee.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.ShipByDrone.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");


            base.Install();
        }