 | ShoppingCartServiceTryApplyDiscount Method |
Attempts to apply a discountCode to the shopping cart.
Namespace: Ignition.Commerce.ShoppingAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.28229
Syntaxpublic bool TryApplyDiscount(
string discountCode
)
Public Function TryApplyDiscount (
discountCode As String
) As Boolean
public:
virtual bool TryApplyDiscount(
String^ discountCode
) sealed
abstract TryApplyDiscount :
discountCode : string -> bool
override TryApplyDiscount :
discountCode : string -> bool Parameters
- discountCode String
- Discount code to apply, as represented by a prc_eweb_code
Return Value
BooleanA bool indicating whether the discount was successfully applied.
RemarksNote that discountCode is a NetForum discount code, not a source code
See Also