Closed kragit closed 5 months 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!
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!
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 theget
function, which does not modify the limit returned - API responses would return the default limit of 50./src/services/Api.php - Line 179 function getAll
appears to have a params variable that is set to pull the max limit of 250 and then paginate, but this appears to be only used for Products, not Variants.Steps to reproduce
getVariants()
only returns 50 values.Additional info