Skip to content

Releases: craftcms/shopify

6.0.0-beta.1

27 Feb 10:35
6.0.0-beta.1
d0b66d9
Compare
Choose a tag to compare
6.0.0-beta.1 Pre-release
Pre-release

Important

After updating, go to ShopifyWebhooks and create the missing webhooks.

  • Shopify for Craft now uses the GraphQL Admin API to interact with Shopify.
  • Data syncing is now done via the queue.
  • Added the shopify/data/reset command.
  • Added craft\shopify\Plugin::getBulkOperation().
  • Added craft\shopify\api\BulkDataBatcher.
  • Added craft\shopify\console\controllers\DataController.
  • Added craft\shopify\controllers\Sync.
  • Added craft\shopify\db\ProductQuery::$publishedOnCurrentPublication.
  • Added craft\shopify\db\ProductQuery::$shopifyGid.
  • Added craft\shopify\db\ProductQuery::$withAll.
  • Added craft\shopify\db\ProductQuery::$withImages.
  • Added craft\shopify\db\ProductQuery::$withMetafields.
  • Added craft\shopify\db\ProductQuery::$withVariants.
  • Added craft\shopify\db\ProductQuery::publishedOnCurrentPublication().
  • Added craft\shopify\db\ProductQuery::shopifyGid().
  • Added craft\shopify\db\ProductQuery::withAll().
  • Added craft\shopify\db\ProductQuery::withImages().
  • Added craft\shopify\db\ProductQuery::withMetafields().
  • Added craft\shopify\db\ProductQuery::withVariants().
  • Added craft\shopify\db\Table::DATA.
  • Added craft\shopify\elements\Product::$publishedOnCurrentPublication.
  • Added craft\shopify\elements\Product::$shopifyGid.
  • Added craft\shopify\elements\Product::getData().
  • Added craft\shopify\elements\Product::getDescriptionHtml().
  • Added craft\shopify\elements\Product::setData().
  • Added craft\shopify\elements\Product::setDescriptionHtml().
  • Added craft\shopify\helpers\Product::shopifyPublishedHtml().
  • Added craft\shopify\helpers\Product::shopifyStatusHtml().
  • Added craft\shopify\jobs\ProcessBulkOperationData.
  • Added craft\shopify\models\BulkOperation.
  • Added craft\shopify\records\BulkOperation.
  • Added craft\shopify\records\ShopifyData.
  • Added craft\shopify\services\Api::WEBHOOK_TOPICS.
  • Added craft\shopify\services\Api::createQuery().
  • Added craft\shopify\services\Api::deleteWebhookById().
  • Added craft\shopify\services\Api::getGqlClient().
  • Added craft\shopify\services\Api::getProductGql().
  • Added craft\shopify\services\Api::getShop().
  • Added craft\shopify\services\Api::getShopGql().
  • Added craft\shopify\services\Api::getShopifyDataByType().
  • Added craft\shopify\services\Api::getWebhooks().
  • Added craft\shopify\services\Api::query().
  • Added craft\shopify\services\BulkOperations.
  • Added craft\shopify\services\Products::deleteShopifyDataByShopifyId().
  • Added craft\shopify\services\Products::eagerLoadImagesForProducts().
  • Added craft\shopify\services\Products::eagerLoadMetafieldsForProducts().
  • Added craft\shopify\services\Products::eagerLoadVariantsForProducts().
  • Added craft\shopify\services\Products::normalizeShopifyGid().
  • craft\shopify\events\ShopifyProductSyncEvent::$source now has a type of array.
  • craft\shopify\services\Products::createOrUpdateProduct() no longer has $metafields and $variants arguments.
  • craft\shopify\services\Products::createOrUpdateProduct()’s $product argument now has a type of array.
  • Renamed craft\shopify\handlers\Product to Webhook.
  • Deprecated craft\shopify\elements\Product::getBodyHtml(). getDescriptionHtml() should be used instead.
  • Deprecated craft\shopify\elements\Product::getShopifyStatusHtml(). craft\shopify\helpers\Product::shopifyStatusHtml() should be used instead.
  • Deprecated craft\shopify\elements\Product::setBodyHtml(). setDescriptionHtml() should be used instead.
  • Deprecated craft\shopify\helpers\Metafields.
  • Deprecated craft\shopify\models\Settings::$syncProductMetafields. Metafields are always included when synchronizing product data.
  • Deprecated craft\shopify\models\Settings::$syncVariantMetafields. Metafields are always included when synchronizing variant data.
  • Deprecated craft\shopify\services\Api::get(). query() should be used instead.
  • Deprecated craft\shopify\services\Api::getAll(). query() should be used instead.
  • Deprecated craft\shopify\services\Api::getAllProducts().
  • Deprecated craft\shopify\services\Api::getClient(). getGqlClient() should be used instead.
  • Deprecated craft\shopify\services\Api::getMetafieldsByIdAndOwnerResource().
  • Deprecated craft\shopify\services\Api::getMetafieldsByProductId().
  • Deprecated craft\shopify\services\Api::getMetafieldsByVariantId().
  • Deprecated craft\shopify\services\Api::getProductByShopifyId().
  • Deprecated craft\shopify\services\Api::getProductIdByInventoryItemId().
  • Deprecated craft\shopify\services\Api::getVariantsByProductId().
  • Removed craft\shopify\db\Table::PRODUCTDATA.
  • Removed craft\shopify\elements\Product::$publishedScope.
  • Removed craft\shopify\elements\db\ProductQuery::$publishedScope.
  • Removed craft\shopify\elements\db\ProductQuery::publishedScope().
  • Removed craft\shopify\jobs\UpdateProductMetadata.
  • Removed craft\shopify\records\ProductData.
  • Removed craft\shopify\services\Api::SHOPIFY_API_VERSION.
  • Removed craft\shopify\services\Products::$sleepSeconds.
  • Removed craft\shopify\services\Products::$throttle.

5.4.1

12 Feb 15:27
5.4.1
35e2860
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when updating. (#133)

5.4.0

06 Feb 09:36
5.4.0
2e56f02
Compare
Choose a tag to compare
  • It is now possible to associate Shopify products with elements imported in Feed Me. (#116)
  • Added craft\shopify\feedme\fields\Products.

5.3.1

28 Jan 20:10
5.3.1
9652078
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when trying to create webhooks. (#129)

5.3.0

20 Dec 15:56
5.3.0
d1364ca
Compare
Choose a tag to compare
  • Shopify now requires Craft CMS 4.3.0+ or 5.0.0+.
  • Added the “API Version” setting. (#128, #121)
  • Added support for selecting products in Link fields. (Craft 5 only.)
  • Product syncing now uses presentment prices by default. (#122)
  • Added craft\shopify\linktypes\Product.
  • Added craft\shopify\models\Settings::getApiVersion().
  • Added craft\shopify\models\Settings::setApiVersion().
  • Added craft\shopify\services\Api::getMetaFieldClass().
  • Added craft\shopify\services\Api::getProductClass().
  • Added craft\shopify\services\Api::getSupportedApiVersions().
  • Added craft\shopify\services\Api::getVariantClass().
  • Deprecated craft\shopify\services\Api::SHOPIFY_API_VERSION.
  • Fixed a bug where variant column data could be larger than a MySQL TEXT column.

5.2.0

18 Jun 07:08
5.2.0
c90835c
Compare
Choose a tag to compare
  • shopify/sync commands now support a --throttle option.
  • Fixed a bug where syncing Shopify variants would be limited to 50. (#115)
  • Added craft\shopify\console\controllers\SyncController::$throttle.
  • Added craft\shopify\services\Products::$throttle.
  • Added craft\shopify\services\Products::$sleepSeconds.

5.1.2

26 Aug 03:47
5bffe9e
Compare
Choose a tag to compare
  • Fixed a bug where syncing meta fields would cause Shopify API rate limiting.
  • Fixed a bug where variant meta fields weren’t being unpacked.

5.1.1

15 Apr 14:02
5.1.1
393b44c
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when syncing products with emojis. (#107)
  • Fixed a PHP error that could occur when syncing products. (#105)
  • Fixed a bug where syncing meta fields would cause Shopify API rate limiting.
  • Fixed a bug where variant meta fields weren’t being unpacked.

4.1.2

15 Apr 13:59
4.1.2
fcdd6e6
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when syncing products with emojis. (#107)
  • Fixed a PHP error that could occur when syncing products. (#105)

4.1.1

09 Apr 07:58
4.1.1
4aac71b
Compare
Choose a tag to compare
  • Fixed a bug where syncing meta fields would cause Shopify API rate limiting.
  • Fixed a bug where variant meta fields weren’t being unpacked.