Auction Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Hi All, I started building a auction platform a while back and then got involved in other work and then came back to it. It's now quite far down the line and I have a few questions for developers more well versed on the platform. One of the first ones that comes to mind is, what is the best way of Overriding the product default pages, is it a Theme, Custom view engine or embedded resource... Much has been written about this topic but the Auction Plug-in, is quite large piece of work that fits into many of the product pages and it must be seamless. Some pages can be a embedded resource, but  where it comes to the integration with the product Catalog is where it concerns me, front runner is a theme currently.  I can always override or remove existing routes from the NOP Core which will more then likely need to happen for certain pages, but the Core Controller is a little complicated to manipulate from what I can see in terms of private properties and non-virtual methods

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?
10 years ago
Seank wrote:


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'll take the low hanging fruit here. Unless you need to change how it works, you can just use the default service as is. Just make sure your class has a constructor reference for Autofac to target and you're golden.

I've used the direct email service (SendEmail or EmailSender, am not in front of my project at the moment)
8 years ago
Seank, hi!
Can I see the source code? I'm newbie, I want to do an auction.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.