This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A helper that provides quick access to common Merchello currency and operations. | |
/// </summary> | |
public static class CurrencyContext | |
{ | |
/// <summary> | |
/// Merchello's <see cref="IStoreSettingService"/>. | |
/// </summary> | |
/// <remarks> | |
/// This is lazy to prevent problems with application bootstrapping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public namespace MyNamespace | |
{ | |
/// <summary> | |
/// Handles the Umbraco Application "Starting" and "Started" event and initiates the Merchello startup | |
/// </summary> | |
public class UmbracoApplicationEventHandler : ApplicationEventHandler | |
{ | |
/// <summary> | |
/// The Umbraco Application Starting event. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Umbraco examine is an extensible indexer and search engine. | |
This configuration file can be extended to create your own index sets. | |
Index/Search providers can be defined in the UmbracoSettings.config | |
More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com | |
--> | |
<ExamineLuceneIndexSets> | |
<!-- The internal index set used by Umbraco back-office - DO NOT REMOVE --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Umbraco examine is an extensible indexer and search engine. | |
This configuration file can be extended to add your own search/index providers. | |
Index sets can be defined in the ExamineIndex.config if you're using the standard provider model. | |
More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com | |
--> | |
<Examine> | |
<ExamineIndexProviders> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding the shipmethod is typically done in the back office through the UI. | |
// Interested in the use case to dynamically add theses? | |
var key = Constants.ProviderKeys.Shipping.FixedRateShippingProviderKey; | |
var defaultCatalogKey = Constants.DefaultKeys.Warehouse.DefaultWarehouseCatalogKey; | |
// this would have to be done through the back office as it uses an internal service | |
var us = MerchelloContext.Current.Services.StoreSettingService.GetCountryByCode("US"); | |
var usCountry = new ShipCountry(defaultCatalogKey, us); | |
((ServiceContext)MerchelloContext.Current.Services).ShipCountryService.Save(usCountry); |