craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
44 stars 25 forks source link

Variant Sync only imports 50 variants #115

Closed kragit closed 2 weeks ago

kragit commented 1 month ago

Description

It appears only 50 variants are being synced to products. This aligns with the default Shopify API response without a limit parameter.

/src/services/Api.php - Line 153 function getVariantsByProductId appears to use the get function, which does not modify the limit returned - API responses would return the default limit of 50.

Steps to reproduce

  1. Create a Shopify product with more than 50 variants
  2. Observe the Variant list inside the Control Panel and the array returned with getVariants() only returns 50 values.

Additional info

linear[bot] commented 1 month ago

PT-1770 Variant Sync only imports 50 variants

nfourtythree commented 1 month ago

Hi @kragit

Thank you for raising this issue, we have been able to replicate it and therefore will look into getting a fix in place.

Thanks!

nfourtythree commented 2 weeks ago

Hi

Version 5.2.0 of the plugin has now been released with this fix/update included. If you have issues with rate limiting after this update we have added a --throttle option to the command line sync command which will make this initial sync slower but will ensure all data is sync'd into Craft.

Thanks!