StoreSettingService
Documentation for Merch's StoreSettingService
The StoreSettingsService manage global store settings, currency, currency formats, country and regional settings.
The StoreSettingService is exposed through the
MerchelloContextvar storeSettingService = MerchelloContext.Current.Services.StoreSettingService;
Class
public interface IStoreSettingService : IService
Public Methods
| Name | Description |
|---|---|
| CreateStoreSettingWithKey | Creates a store setting and persists it to the database |
| Delete | Deletes a IStoreSetting |
| GetAll | Gets a collection of all IStoreSetting |
| GetAllCountries() | Gets a collection of all ICountry |
| GetAllCountries(String[]) | Returns a ICountry collection for all countries excluding codes passed |
| GetAllCurrencies | Gets a collection of all ICurrency |
| GetByKey | Gets a IStoreSetting by it's unique 'Key' |
| GetCountryByCode | Returns the ICountry for the country code passed. |
| GetCurrencyByCode | Gets a ICurrency for the currency code passed |
| GetCurrencyFormat | Returns the currency format |
| GetNextInvoiceNumber | Gets the next usable InvoiceNumber |
| GetNextOrderNumber | Gets the next usable OrderNumber |
| GetNextShipmentNumber | Gets the complete collection of registered type fields |
| GetTypeFields | Gets the complete collection of registered type fields |
| Save | Saves a single IStoreSetting |
Interface on GitHub
Updated less than a minute ago
