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

Use Cart API with Custom One-Time items (like Checkout Twig tag) #404

Open
rogerdawkins opened this issue Oct 16, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@rogerdawkins
Copy link

Description

When using the Checkout Twig tag it is possible to specify Custom One-Time items instead of using a price ID. This is great, but I need to allow the user to add multiple custom items and ideally I would like to use the Cart API, but it appears that the Cart API only supports price ID's and not custom items.

Is it possible to use the Cart API with custom items? If not, would you consider this in the future?

My alternative options are:

  1. Implement my own Cart facility using Local Storage or similar. Then process the Cart items using the Checkout Twig tag.
  2. Display the items on one page and allow the user to select the required items. Then one pay button which again uses the Checkout Twig tag.
  3. Use the Cart API as is, which requires all items to be added as Stripe products. The reason NOT to do this in our case is that the website has lots of courses and lots of course dates and each would need to be a product in Stripe.

Are there any other suggestions to get custom items working with the Cart API?

Additional info

  • Craft version: 5
  • PHP version: 8.2
  • Database driver & version:
  • Plugin version:
  • Is SCA and Stripe Checkout enabled?:
@andrelopez andrelopez self-assigned this Oct 18, 2024
@andrelopez andrelopez added question Further information is requested enhancement New feature or request labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants