statamic-shopify icon indicating copy to clipboard operation
statamic-shopify copied to clipboard

Please bump support for Shopify API to v2025-04

Open leeuweriq opened this issue 1 year ago • 3 comments

Description

Hi,

The php codebase seems to support the Shopify REST API version up until version 2024-10. Is this package still being maintained? And if so could you please bump support for the rest API to version 2025-04 in both PHP and JS? Thank you :)

Environment

Environment Application Name: JBC Laravel Version: 11.44.2 PHP Version: 8.4.7 Composer Version: 2.8.8 Environment: local Debug Mode: ENABLED URL: jbc-web.test Maintenance Mode: OFF Timezone: UTC Locale: en

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED

Drivers Broadcasting: log Cache: file Database: sqlite Logs: stack / single Mail: postmark Queue: sync Session: file

Statamic Addons: 2 Sites: 2 (English, Dutch) Stache Watcher: Enabled (auto) Static Caching: Disabled Version: 5.55.0 PRO

Statamic Addons statamic-rad-pack/shopify: 5.3.0 statamic/seo-pro: 6.6.5

leeuweriq avatar May 16 '25 11:05 leeuweriq

The API version is a config option - you control it:

See: https://github.com/statamic-rad-pack/shopify/blob/71e9d871c1219b543e68928efdc7e278e6e9b130/src/Tags/Shopify.php#L84

and https://github.com/statamic-rad-pack/shopify/blob/71e9d871c1219b543e68928efdc7e278e6e9b130/config/shopify.php#L59

So if you want to use a more recent version you can certainly do that.

ryanmitchell avatar May 16 '25 12:05 ryanmitchell

You’re right — the API version is configurable, and we’ve already bumped it manually. My question was more about whether the package itself takes into account any breaking changes introduced after the 2024-10 REST API version. Just setting a newer version in the config doesn’t necessarily guarantee compatibility if Shopify made any changes to response structures or required parameters, for example.

Also, since Shopify is gradually moving away from the REST API in favor of GraphQL, I’m curious whether you’re planning to support GraphQL in this package in the future? :)

leeuweriq avatar May 16 '25 14:05 leeuweriq

We have already moved the product data calls to graphql and I intend to do the same with categories (and change how webhook works to do a call rather than rely on the data sent by shopify) when I next get a block of time to work on this.

Asides from that it should already work fine - all the calls we are doing are pretty standard.

Happy to review a PR if you get to it first!

ryanmitchell avatar May 16 '25 15:05 ryanmitchell