Skip to content

Magento_GiftCard

Magento Modules:

  • Magento_GiftCard
  • Magento_GiftCardGraphQl
  • Magento_GiftCardAccount
  • Magento_GiftCardAccountGraphQl
  • Magento_GiftCardImportExport
  • Magento_GiftCardStaging

Adobe Commerce Packages

  • magento/module-gift-card
  • magento/module-gift-card-graph-ql
  • module-gift-card-account
  • module-gift-card-account-graph-ql
  • magento/module-gift-card-import-export
  • magento/module-gift-card-staging

Repository

Note: this repo is only accessible with a Hyvä Enterprise license or as a contributor.

For more details, see: https://www.hyva.io/hyva-enterprise.html.

https://gitlab.hyva.io/hyva-enterprise/commerce/magento2-ee-magento-customer-balance

Features

All points are rated according to priority as P1 (critical), P2 (important), P3 (minor).

  • basic - does not break layout/design

Note: the below features assume assume gift card accounts have been created/sent and are redeemable - configured globally in 'Stores > Configuration' (giftcard/general/is_redeemable) and per gift card account in 'Marketing > Gift Card Accounts' - and one or more gift card products have been created and are purchasable. Testing for the below should cover all gift card types:

  • Virtual
  • Physical
  • Combined

Note: this issue is for features related to the main Hyvä Theme only. See #114 for details on Hyvä Checkout compatibility. All checkout features are also supported using the fallback Luma checkout.

Customer Account Area (all pages)

  • [P1] Add 'Gift Card' to account area navigation menu

Gift Card Balance & Redeem (/giftcard/customer/)

  • [P1] Add text input field to enter gift card code
  • [P1] 'Redeem Gift Card' button
    • If code exists, applies current balance for gift card to account and success message: 'Gift Card "{code}" was redeemed.'
    • If code does not exist, returns error message: 'We cannot redeem this gift card.'
  • [P1] 'Check status and balance' button
    • If code exists, displays gift card code and current balance
    • If code does not exist, returns warning message: 'Please enter a valid gift card code.'

Store Credit Balance (/storecredit/info/)

  • [P2] Display link to redeem gift card (/giftcard/customer/)

Gift Card Product Listing & Search (/catalog/category/view/id/{id}/ & /catalogsearch/result/q={query})

  • [P1] Gift card products display correctly on listing pages (name/image/price etc.)

Gift Card Product Page (/catalog/product/view)

  • [P1] Default product page output works as per other product types
  • [P1] Display gift card amount selection
    • [P1] Display amount dropdown (if set for product)
      • With values populated from those set against the product
    • [P1] Display gift card open amount field (if open amount enabled for product)
      • Adds 'Other Amount...' option if dropdown enabled and field only displays when this option is selected
      • Otherwise displays by default
    • [P1] Display minimum amount under open amount field (if set)
    • [P1] Required field validation for dropdown/open amount (depending on which enabled/selected)
  • [P1] Sender name field
  • [P1] Required field validation
  • [P1] Sender email field
  • [P1] Required field validation
  • [P1] Only displays for virtual/combined gift cards
  • [P1] Recipient name field
  • [P1] Required field validation
  • [P1] Recipient email field
  • [P1] Required field validation
  • [P1] Only displays for virtual/combined gift cards
  • [P1] Gift card adds to cart with selected amounts/sender/recipient options

Minicart

  • [P1] Cart item renderer support (i.e. gift card amounts/options output correctly)

Cart (/checkout/cart/)

Cart Items

  • [P1] Cart item renderer support (i.e. gift card amounts/qtys/options output correctly)
  • [P1] Cart item renderer actions support (edit/remove/move to wish list)

Visual QA

  • [P2] Requisition list 'create new list' section is not hidden with toggle (may be an issue to fix in #79)

image

Redeem / Check Gift Cards

  • [P1] Add text input field to enter gift card code
  • [P1] 'Redeem Gift Card' button
    • If code exists, applies current balance for gift card to account and success message: 'Gift Card "{code}" was added.'
    • If code does not exist, returns error message: 'The gift card code couldn't be added. Verify your information and try again.'
  • [P1] 'Check status and balance' button
    • If code exists, displays gift card code and current balance
    • If code does not exist, returns warning message: 'Please enter a valid gift card code.'
  • [P1] Multiple gift cards can be applied to the cart
  • [P1] Applied gift cards appear in the totals with the gift card code, amount and 'Remove' link
    • One total row per applied gift card
  • [P1] 'Remove' link removes gift card from cart with message: 'Gift Card "{code}" was removed.'

Cart Item Configure (Update Item) (/checkout/cart/configure/id/{id}/product_id/{id}/)

  • [P2] Item qty and options can be modified and cart item updated correctly

Wish List Item Configure (/wishlist/index/configure/id/{id}/product_id/{id}/qty/{qty}/)

  • [P3] Item qty and options can be modified and added to cart successfully

Sales Order View (/sales/order/view/order_id/{id}/) & Print (/sales/order/print/order_id/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift cards/amounts in order totals (where applicable)
    • One row per gift card with code

Sales Order Invoice View (/sales/invoice/view/order_id/{id}/) & Print (/sales/order/printinvoice/{order_id|invoice_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Sales Order Shipment View (/sales/shipment/view/order_id/{id}/) & Print (/sales/order/printShipment/{order_id/shipment_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Sales Order Credit Memo (Refund) View (/sales/creditmemo/view/order_id/{id}/) & Print (/sales/order/printCreditmemo/{order_id/creditmemo_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Guest Order View (/sales/guest/view/) & Print (/sales/guest/print/order_id/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift cards/amounts in order totals (where applicable)
    • One row per gift card with code

Guest Order Invoice View (/sales/guest/invoice/order_id/{id}/) & Print (/sales/guest/printInvoice/{order_id|invoice_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Guest Order Shipment View (/sales/guest/shipment/order_id/{id}/) & Print (/sales/guest/printShipment/{order_id/shipment_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Guest Order Memo (Refund) Detail View (/sales/guest/creditmemo/order_id/{id}/) & Print (/sales/guest/printCreditmemo/{order_id/creditmemo_id}/{id}/)

  • [P2] Show gift card options in item renderers
  • [P2] Show gift card amount in order totals (where applicable)
    • Combined row with total gift card amount (not codes)

Contributors

N/A

Voting

Use 👍 to cast your vote.

Edited by John Hughes
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information