Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

[Points and Rewards] Implement a filter for coupon names #4151

Closed
opr opened this issue Apr 29, 2021 · 0 comments · Fixed by #4166
Closed

[Points and Rewards] Implement a filter for coupon names #4151

opr opened this issue Apr 29, 2021 · 0 comments · Fixed by #4166
Assignees
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: blocks Specific work involving or impacting how blocks behave.

Comments

@opr
Copy link
Contributor

opr commented Apr 29, 2021

As per pbIy4N-1r0-p2#comment-2208 we need a way to allow extensions to filter coupon names, and possibly replace them with something else.

We already have a system in place to do this with the price labels, so implementing one for coupon codes could follow a similar pattern.

The registration API should allow extensions to add functions in the following shape:
( couponName: string ) => string

@opr opr added category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: blocks Specific work involving or impacting how blocks behave. block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. labels Apr 29, 2021
@opr opr self-assigned this Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: blocks Specific work involving or impacting how blocks behave.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant