CyberStore Documentation
ConvertLegacyPromotion Method


Dovetail.Ecommerce.BusinessLogic.Promotion Namespace > Code Class : ConvertLegacyPromotion Method
The promo code.
Convert legacy promotion.
Syntax
'Declaration
 
Public Shared Function ConvertLegacyPromotion( _
   ByVal promoCode As String _
) As Code
'Usage
 
Dim promoCode As String
Dim value As Code
 
value = Code.ConvertLegacyPromotion(promoCode)
public static Code ConvertLegacyPromotion( 
   string promoCode
)

Parameters

promoCode
The promo code.

Return Value

The legacy converted promotion.
Remarks
The ConvertLegacyPromotion method loads the legacy Dovetail.Ecommerce.Base.Module.XPGiftCertificate object by matching the promoCode supplied to the certificate's Dovetail.Ecommerce.Base.Module.XPGiftCertificate.Number . If found, the method will then convert the object to a Deal as the Incentive , set the Text value and return the Code
See Also

Reference

Code Class
Code Members