Skip to content

Commit e5256dc

Browse files
authored
Merge pull request #182 from craftcms/feature/6.1-support-2025-07-API-version
[6.1] Added support for API version `2025-07`
2 parents 61c9d25 + 771b1e7 commit e5256dc

File tree

6 files changed

+578
-495
lines changed

6 files changed

+578
-495
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44

5+
- Shopify for Craft now supports version `2025-07` of Shopify’s GraphQL Admin API.
56
- Fixed a PHP error that could occur with missing environment variables. ([#178](https://github.com/craftcms/shopify/issues/178))
67

78
## 6.0.5 - 2025-09-09

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Follow [Shopify’s directions](https://help.shopify.com/en/manual/apps/custom-a
5555
- `read_product_listings`
5656
- `read_inventory`
5757

58-
Additionally (at the bottom of this screen), the **Webhook subscriptions****Event version** should be `2024-10`.
58+
Additionally (at the bottom of this screen), the **Webhook subscriptions****Event version** should be `2025-07`.
5959

6060
3. **Storefront API access scopes**: The following scopes are required for the plugin to function correctly:
6161

@@ -81,7 +81,7 @@ At this point, you should have the following Shopify-specific values:
8181
# ...
8282
8383
SHOPIFY_ADMIN_ACCESS_TOKEN="..."
84-
SHOPIFY_API_VERSION="2024-10"
84+
SHOPIFY_API_VERSION="2025-07"
8585
SHOPIFY_API_KEY="..."
8686
SHOPIFY_API_SECRET_KEY="..."
8787
SHOPIFY_HOSTNAME="my-storefront.myshopify.com"
@@ -179,7 +179,7 @@ Going forward, your products are automatically kept in sync via [webhooks](#set-
179179

180180
### Native Attributes
181181

182-
In addition to the standard element attributes like `id`, `title`, and `status`, each Shopify product element contains direct accessors for these canonical Shopify [Product attributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Product):
182+
In addition to the standard element attributes like `id`, `title`, and `status`, each Shopify product element contains direct accessors for these canonical Shopify [Product attributes](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/Product):
183183

184184
| Attribute | Description | Type |
185185
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ---------- |
@@ -515,13 +515,13 @@ Products behave just like any other element, in Twig. Once you’ve loaded a pro
515515
### Variants and Pricing
516516

517517
Products don’t have a price, despite what the Shopify UI might imply—instead, every product has at least one
518-
[Variant](https://shopify.dev/api/admin-rest/2024-10/resources/product-variant#resource-object).
518+
[Variant](https://shopify.dev/api/admin-rest/2025-07/resources/product-variant#resource-object).
519519

520520
You can get an array of variant objects for a product by accessing `product.variants` or calling [`product.getVariants()`](#productgetvariants). The product element also provides convenience methods for getting the [default](#productgetdefaultvariant) and [cheapest](#productgetcheapestvariant) variants, but you can filter them however you like with Craft’s [`collect()`](https://craftcms.com/docs/5.x/reference/twig/functions.html#collect) Twig function.
521521

522522
Unlike products, variants in Craft…
523523

524-
- …are represented (mostly) as [the API](https://shopify.dev/api/admin-rest/2024-10/resources/product-variant#resource-object) returns them;
524+
- …are represented (mostly) as [the API](https://shopify.dev/api/admin-rest/2025-07/resources/product-variant#resource-object) returns them;
525525
- …the `metafields` property is accessible in addition to the API’s returned properties;
526526
- …use Shopify’s convention of underscores in property names instead of exposing [camel-cased equivalents](#native-attributes);
527527
- …are plain associative arrays;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": "^8.2",
2424
"carnage/php-graphql-client": "^1.14",
2525
"craftcms/cms": "^5.0.0-beta.10||^4.15.0",
26-
"shopify/shopify-api": "^5.2.0"
26+
"shopify/shopify-api": "^5.11.0"
2727
},
2828
"require-dev": {
2929
"craftcms/feed-me": "^6.6.1||^5.9.0",

0 commit comments

Comments
 (0)