Click or drag to resize
MultiBuyDiscountSKUInfoProviderAddMultiBuyDiscountToProduct Method

Note: This API is now obsolete.

Creates MultiBuyDiscountSKUInfo binding.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IMultiBuyDiscountSKUInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MultiBuyDiscountSKUInfo.Provider.")]
public static void AddMultiBuyDiscountToProduct(
	int multiBuyDiscountId,
	int skuId
)

Parameters

multiBuyDiscountId
Type: SystemInt32
Multi buy discount ID
skuId
Type: SystemInt32
Product ID
Remarks
Adding the MultiBuyDiscountSKUInfo does not affect other existing info objects like MultiBuyDiscountDepartmentInfo or MultiBuyDiscountBrandInfo or MultiBuyDiscountCollectionInfo This could lead to extended discount application than needed.
See Also