-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update Shopify plugin to use GraphQL Admin API #130
Update Shopify plugin to use GraphQL Admin API #130
Conversation
# Conflicts: # src/controllers/WebhooksController.php
…pril-1-2025 # Conflicts: # composer.lock
…5' of github.com:craftcms/shopify into feature/pt-2335-shopify-checkout-api-ending-april-1-2025 # Conflicts: # src/models/Settings.php
This matches getSidebarHtml in the product element
if ($this->clearData === BulkOperationRecord::CLEAR_DATA_ALL) { | ||
ShopifyData::updateAll(['stale' => true]); | ||
} elseif ($this->clearData !== BulkOperationRecord::CLEAR_DATA_NONE) { | ||
Plugin::getInstance()->getProducts()->markShopifyDataStaleByShopifyId($this->clearData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is $this->clearData
a Shopify ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct it is either all
, none
or gid string. Documented it here: https://github.com/craftcms/shopify/pull/130/files#diff-962e5c9a236307f7191b2c5ef28ed371cdb54b1e187cec390760ef8e79196468R39-R45
…pril-1-2025 # Conflicts: # CHANGELOG-WIP.md
Description
UPGRADE.md
contains notes on the upgrade from 5.x to 6.xRelated issues
#127