You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating products by importing a DFC catalog we never update the image. And we shouldn't update it unless it has changed.
How do we know if it changed or not?
To be completely sure, we would need to download the current image and the given image and compare them. But storing the new image takes just as long.
Most product images are uploaded by users and each version has its own unique id and URL. That is true for OFN and Shopify (our only other known integration at the moment). So if we remember the URL of the image then we can compare that.
What if my other platform keeps the same product image? In that case the referenced image URL needs to contain a version number, hash or timestamp. That can be a query parameter or even a hash anchor. For example:
Description
When updating products by importing a DFC catalog we never update the image. And we shouldn't update it unless it has changed.
How do we know if it changed or not?
To be completely sure, we would need to download the current image and the given image and compare them. But storing the new image takes just as long.
Most product images are uploaded by users and each version has its own unique id and URL. That is true for OFN and Shopify (our only other known integration at the moment). So if we remember the URL of the image then we can compare that.
What if my other platform keeps the same product image? In that case the referenced image URL needs to contain a version number, hash or timestamp. That can be a query parameter or even a hash anchor. For example:
Implementation
ActiveStorage supports metadata.
Then later we can check before assigning:
The text was updated successfully, but these errors were encountered: