Skip to content

[Feature request]: Preset amount chips on the gift card product page #272

Description

@loevgaard

Describe the proposed solution

Offer a few configurable preset amounts (e.g. 25 / 50 / 100) as one-click choices on the gift card product page, alongside the free-text amount field.

Customers currently have to type an amount into an empty field, which is more friction than picking a common value and gives no hint of what a sensible amount looks like.

Describe alternatives you've considered

Doing it purely in a host application's template override — possible, but every store then reimplements the same thing, and the presets need validating against purchase.minimum_amount / maximum_amount server-side anyway.

Additional context

Deferred during the 1.x rewrite (#269) — see the roadmap in REWRITE.md.

Where it would land:

  • DependencyInjection/Configuration under the existing purchase node, next to minimum_amount / maximum_amount
  • Resources/views/shop/product/show/_gift_card_information.html.twig renders the amount field and the live preview
  • presets must stay consistent with the existing min/max validation in Form/Type/GiftCardInformationType

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions