Create a 2.x version leveraging commerce_api (JSON:API)

Created on 9 March 2020, about 5 years ago
Updated 16 May 2024, 11 months ago

Commerce API was just released: https://www.centarro.io/blog/expanding-jsonapi-support-drupal-commerce. This leverages JSON:API and is way more flexible than Cart API. We can now support custom order item fields in Cart Flyout by using JSON:API.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks @mglaman I just thought the same :)

    Until that it might make sense to add information on the module page linking to this issue and pointing out that JSON:API + commerce_api is preferred (but not yet supported) over https://www.drupal.org/project/commerce_cart_api β†’

    I just needed some hours to find out if it's better to use REST or JSON:API with Drupal Commerce. => JSON:API seems to be the better choice but is incompatible with this module.

    An alternative to a 2.x version might be a separate project like commerce_api_cart_flyout or something like that, which shows the hierarchy?

  • πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

    I think a 2.x would be best. Commerce Cart API isn't the "standard", whereas Commerce API is. So 2.x would reflect decisions made. There could be the problem where 2.x also replaces Backbone/Underscore with web components and Commerce API. Those are two big changes. But maybe that's just the way it has to go.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Okay thank you @mglaman :)

Production build 0.71.5 2024