Add support for gift cards and store credit with this full-featured plugin created by the Vendure core team.
Changelog
2.0.2 (2024-07-18)
- Update compatibility range to include v3+
2.0.1 (2024-07-11)
- Include changelog in published package
- Fix package name in readme
2.0.0 (2024-07-11)
- Refactor custom alert to match Vendure v2.2 API
- Remove default values for GiftCardTemplate.layout & GiftCard.history (they are not supported by mysql)
- Improve layout of gift card template list
- Improved template editing experience
- Fix layout for portrait-format template images
- Add support for user-defined template elements with placeholders
- Add support for pagination on gift card templates queries
- Add support for multiple gift card configurations
- Implement filtering template list by
configName
- Add link to created gift cards from order detail screen
- Make selected gift card template name available on OrderLine
- Display gift card message in admin ui detail view
BREAKING CHANGE: The plugin now requires a valid license key to be passed to the init()
method.
BREAKING CHANGE: The GiftCard plugin now requires Vendure v2.2+
BREAKING CHANGE: Several Admin API changes to support user-defined template elements on the TemplateLayout type & associated inputs.
BREAKING CHANGE: The giftCardTemplates
query in the Shop API now returns a paginated list rather than an array.
BREAKING CHANGE: The addGiftCardToOrder
mutation in the Shop API now requires a templateId
to be passed
1.0.1 (2024-02-14)
- Fix gift card list resolver
- Fix missing field data in gift card list
1.0.0 (2023-06-21)
- Update UI to Vendure v2
- Add UI alert when there are gift cards due to be sent
- BREAKING CHANGE: The
giftCardTemplates
query no longer just returns an array of Assets (which was wrong anyway). It now returns an array of objects containing anid
, which is the template ID, and animage
, which is the Asset (#20).
1.0.0-next.0 (2023-04-19)
- This version is compatible with Vendure v2.0.0-beta.0 and above
- If you are on Vendure v1.x, use a version < 1.0 of this plugin
- Update UI components to work with Angular v15+
- Fix error when initializing gift card config
0.3.0 (2023-03-23)
- Add
getDeductibleTotal
option - Correctly credit gift card on cancellation of payment
- Implement manual adjustment of gift card balance
- Display remaining balance on gift card list
- BREAKING CHANGE: Add
note
field onGiftCardTransaction
entity. This requires a non-destructive DB migration.
0.2.2 (2023-02-13)
- Fix bad rxjs imports
0.2.1 (2023-02-13)
- Fix bad import
0.2.0 (2023-02-10)
- Add field resolver for
Customer.openGiftCards
to allow a logged-in Customer to see any partially-used gift cards that still have some remaining balance. - Make the
issuedTo
Customer reference optional. This allows the gift card to be issued to a customer who is not yet registered with the online shop. - Add new
gift-card/:giftCardId/template/:templateId
endpoint for on-the-fly rendering of gift card images. - Allow custom fonts to be used in the gift card template image (see docs).
- Gift card templates can be set to private, so they are not available via the Shop API but can still be used by the administrator to issue gift cards.
- Fix issue that allowed credit to be used multiple times in a single order.
- BREAKING CHANGE: Gift card templates can now each have a unique layout rather than sharing the layout across all templates.
- BREAKING CHANGE: The layout algorithm for the gift card image generation has changed: the value and code are now centered. This was needed to correctly accommodate values with differing numbers of digits.
Due to the breaking changes, you’ll need to generate a DB migration, and then set up your gift card templates newly.
0.1.4 (2023-02-08)
- Fix bad import in ui extension
0.1.3 (2023-01-30)
- Fix bug which allowed the same gift card code to be used multiple times
0.1.2 (2023-01-23)
- Fix database transaction issues causing entity-with-id-not-found errors
0.1.1 (2023-01-11)
- Remove unused rxjs v7 operators
- Improve display of notes in UI
- Increase retry limits when rendering to avoid “entity-with-id-not-found” issue
0.1.0 (2022-11-23)
- Add ability to set gift card expiry date (requires DB migration to add columns)
- Improve template image editing controls
Create your first commerce experience with Vendure in less than 2 minutes
Vendure is a registered trademark. Our trademark policy ensures that our brand and products are protected. Feel free to reach out if you have any questions about our trademarks.
Documentation
Newsletter
Get the latest product news and announcements delivered directly to your inbox.