Beispiel #1
0
 public AbcPickupInStoreViewComponent(
     ILogger logger,
     IStoreContext storeContext,
     IWorkContext workContext,
     IPickStoreModelFactory pickStoreModelFactory,
     IProductService productService,
     IProductAttributeService productAttributeService,
     ICustomerShopService customerShopService,
     IShopService shopService,
     IShoppingCartService shoppingCartService,
     PickupInStoreSettings pickupInStoreSettings,
     StoreLocatorSettings storeLocatorSettings
     )
 {
     _logger                  = logger;
     _storeContext            = storeContext;
     _workContext             = workContext;
     _pickStoreModelFactory   = pickStoreModelFactory;
     _productService          = productService;
     _productAttributeService = productAttributeService;
     _customerShopService     = customerShopService;
     _shopService             = shopService;
     _shoppingCartService     = shoppingCartService;
     _pickupInStoreSettings   = pickupInStoreSettings;
     _storeLocatorSettings    = storeLocatorSettings;
 }
        public async Task <IActionResult> Configure(PickupInStoreModel model)
        {
            await _settingService.SaveSettingAsync(PickupInStoreSettings.FromModel(model));

            _notificationService.SuccessNotification(await _localizationService.GetResourceAsync("Admin.Plugins.Saved"));

            return(Configure());
        }
Beispiel #3
0
 public PickStoreModelFactory(
     ICustomerShopService customerShopService,
     IShopService shopService,
     IShoppingCartService shoppingCartService,
     IWorkContext workContext,
     PickupInStoreSettings pickupInStoreSettings,
     StoreLocatorSettings storeLocatorSettings
     )
 {
     _customerShopService   = customerShopService;
     _shopService           = shopService;
     _shoppingCartService   = shoppingCartService;
     _workContext           = workContext;
     _pickupInStoreSettings = pickupInStoreSettings;
     _storeLocatorSettings  = storeLocatorSettings;
 }
 public PickStoreController(
     IWorkContext workContext,
     IStoreContext storeContext,
     IShopService shopService,
     IProductService productService,
     ICustomerShopService customerShopService,
     IProductAttributeParser productAttributeParser,
     IShoppingCartService shoppingCartService,
     IBackendStockService backendStockService,
     IAttributeUtilities attributeUtilities,
     PickupInStoreSettings pickUpInStoreSettings,
     ISettingService settingService,
     ILocalizationService localizationService,
     ILogger logger,
     StoreLocatorSettings storeLocatorSettings,
     INotificationService notificationService,
     IProductAttributeService productAttributeService
     )
 {
     _workContext            = workContext;
     _storeContext           = storeContext;
     _shopService            = shopService;
     _productService         = productService;
     _customerShopService    = customerShopService;
     _productAttributeParser = productAttributeParser;
     _shoppingCartService    = shoppingCartService;
     _backendStockService    = backendStockService;
     _attributeUtilities     = attributeUtilities;
     _pickupInStoreSettings  = pickUpInStoreSettings;
     _settingService         = settingService;
     _localizationService    = localizationService;
     _logger = logger;
     _storeLocatorSettings    = storeLocatorSettings;
     _notificationService     = notificationService;
     _productAttributeService = productAttributeService;
 }