Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Gift certificate purchasing

Gift certificate purchasing


This feature allows customers to purchase electronic gift certificates.

Key classes and files

  • GiftCertificateServiceImpl - Provide services to save, update, remove and find gift certificates.
  • GiftCertificateFormBeanImpl - Form backing bean representing a gift certificate.
  • create.vm - Velocity template for ordering gift certificate.
  • GiftCertificateRecipientEmail.html.vm - Velocity templates for sending html email to recipient with gift certificate code.
  • GiftCertificateRecipientEmail.txt.vm - Velocity templates for sending text email to recipient with gift certificate code.
  • GiftCertificateImpl - Represents a gift certificate.

How it works

As of Elastic Path Commerce 6.2, gift certificates are handled the same way as standard products (a product type named GIFT_CERTIFICATES), but with some product personalization.