GiftCertificate
GiftCertificate lets a shopper enter a promotion code to apply toward an order. The legacy source places this control in the Payment Methods Selection step of checkout.
Configuration
Add the control to the payment-method selection step in the site’s page configuration. The legacy source supports the following display-text properties.
| Property | Default | Valid values or format | Effect |
|---|---|---|---|
CertificateNumberTextString | Not specified | Gets the certificate number text. | |
LabelString | Not specified | Sets the certificate number label. |
SitePages.config example
The following example loads GiftCertificate.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: CertificateNumberText, Label.
<Control src="GiftCertificate.ascx" />
Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.
Inherited properties
GiftCertificate inherits shared visibility and shopper-access conditions from CyberStoreBaseControl.
Validate the control
- Add the control to the payment-method selection step.
- Confirm that the configured label and certificate number text are displayed.
- Apply a valid promotion code and verify its effect on the order.
- Confirm that an invalid or unavailable code is handled appropriately for the configured payment flow.