Skip to content

[8.0] Make shopifyId and shopifyGid consistent across the system #221

Open
nfourtythree wants to merge 6 commits into
8.0from
bugfix/8.0-shopify-id-and-gid-consistency
Open

[8.0] Make shopifyId and shopifyGid consistent across the system #221
nfourtythree wants to merge 6 commits into
8.0from
bugfix/8.0-shopify-id-and-gid-consistency

Conversation

@nfourtythree

Copy link
Copy Markdown
Contributor

Description

The plugin previously used the term "Shopify ID" inconsistently, sometimes referring to the full GID string (gid://shopify/Product/123456789), sometimes the numeric ID at the end of it. This PR makes that distinction explicit and consistent throughout.

  • The shopify_data table's shopifyId column has been renamed to shopifyGid. A new generated shopifyId column containing the numeric ID (the last segment of the GID) has been added.
  • The shopify_bulkoperations table's shopifyId column has been renamed to shopifyGid.
  • craft\shopify\models\Variant::$shopifyId now consistently holds the numeric Shopify ID. The full GID is now available via the new $shopifyGid property.
  • craft\shopify\models\BulkOperation::$shopifyId has been replaced with $shopifyGid.
  • New *ByShopifyGid() methods have been added to Products and BulkOperations services. The old *ByShopifyId() methods are deprecated and now delegate to their GID equivalents.

@nfourtythree nfourtythree self-assigned this Jun 23, 2026
@nfourtythree nfourtythree requested a review from a team as a code owner June 23, 2026 14:21
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.

1 participant