I extended the Auction Type enumerator using a class, to include a auction enumerator.
public class EnumProductType : ProductTypeBase
{
public const int Auction = 172;
}
/// <summary>
/// Where you use the ProductTypeEnum to define an auction,
/// use a cast "var productType = (ProductType)EnumProductType.Auction;"
/// </summary>
public class ProductTypeBase
{
public const int SimpleProduct = (int) ProductType.SimpleProduct;
public const int GroupedProduct = (int) ProductType.GroupedProduct;
}
This enumerator needs to be available when the the plug-in is installed, based on this product type "flag", the admin and client page/s then will be rendered with extra information related to an auction. If I use a Theme every time a new NOP version comes out, then possibly these will need to be changed, which is bad for maintainability and custom themes. Has anyone tried to Inherit off an Existing Custom theme and override page / partials in NOPCommerce. I.e.: website X has a custom layout, they install the plug-in, the plug-in uses a theme to show additional Auction features but use an existing CSS etc. Can I override the current theme, and the use that theme to render as a Base theme (does this make sense)? One will need to obviously store the current theme name to do this.
The administration section of the Auctions is pretty much handled as is the installation of the Plug-in Core. I would gladly show screens shots if I could attached them.
Sending emails from a Plug-in. Does one really need to create your own message sending utility class implementing IQueuedEmailService. How have others approached this?
I have a task which monitors auctions end them sends notifications etc... Is there anything I should know about installing a task from a plug-in?
What recommendations do you guys have?