Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/voucherify2 #2

Draft
wants to merge 89 commits into
base: main
Choose a base branch
from
Draft

Feat/voucherify2 #2

wants to merge 89 commits into from

Conversation

marcin-slezak
Copy link
Collaborator

@marcin-slezak marcin-slezak commented Nov 23, 2023

Background

Integrating Composable UI with Voucherify using strategy suggested by Orium team:

Our approach involves two separate PRs. The first PR will update the core aspects of our Composable UI, specifically the Next.js application, the commerce-generic package, and the UI components. This includes refining Types and functions to support discounts and coupon codes, designed to remain general and not Voucherify-specific. In other words, no need for a wrapper, we can simply update the commerce-generic package directly with enhanced types and functions.

The second PR introduces the Voucherify package + documentation. This includes functions for cart operations to be used in the commerce-generic package (addItem, updateItem, removeItem, create, addCoupon, removeCoupon). The installation steps would involve calling your functions before returning the cart in each cart operation, so about 5 lines of code + the import of your package. The installation could be facilitated with a script if you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants