I want To Add additional step in a plugin to the checkout process to add a gift if the customer meet some rules. I'm new to nopCommerce developpement , can anyone guide me through the right process with the best practice of nopCommerce plugin developpement to achieve this. Thanks
This is a snippet of My Code : 1- we should create our filter attribute that inherits From ActionFilterAttribute public class WelcomeProgramAttribute : ActionFilterAttribute { private readonly IWelcomeGiftCalculationMethod _welcomeGiftCalculationMethod;
public WelcomeProgramAttribute(IWelcomeGiftCalculationMethod welcomeGiftCalculationMethod) { _welcomeGiftCalculationMethod = welcomeGiftCalculationMethod; }