C# Class Nop.Plugin.DiscountRules.HasOneProduct.HasOneProductDiscountRequirementRule

Inheritance: Nop.Core.Plugins.BasePlugin, IDiscountRequirementRule
Datei anzeigen Open project: emilianionascu/NopCommerce

Public Methods

Method Description
CheckRequirement ( Nop.Services.Discounts.CheckDiscountRequirementRequest request ) : bool

Check discount requirement

GetConfigurationUrl ( int discountId, int discountRequirementId ) : string

Get URL for rule configuration

HasOneProductDiscountRequirementRule ( ISettingService settingService ) : System
Install ( ) : void
Uninstall ( ) : void

Method Details

CheckRequirement() public method

Check discount requirement
public CheckRequirement ( Nop.Services.Discounts.CheckDiscountRequirementRequest request ) : bool
request Nop.Services.Discounts.CheckDiscountRequirementRequest Object that contains all information required to check the requirement (Current customer, discount, etc)
return bool

GetConfigurationUrl() public method

Get URL for rule configuration
public GetConfigurationUrl ( int discountId, int discountRequirementId ) : string
discountId int Discount identifier
discountRequirementId int Discount requirement identifier (if editing)
return string

HasOneProductDiscountRequirementRule() public method

public HasOneProductDiscountRequirementRule ( ISettingService settingService ) : System
settingService ISettingService
return System

Install() public method

public Install ( ) : void
return void

Uninstall() public method

public Uninstall ( ) : void
return void