I have already successfully synced images from Box to Magento, and the image synchronization works without any failures. However, I am currently stuck due to a limitation in the existing setup.
At the moment, NetSuite does not allow writing back the Magento image ID or Box file ID into Box, which makes it difficult to identify and update an image once it has already been synced. Because of this, updating an existing image is not straightforward with the current integration approach.
Issue Details
According to the Magento Media API, when assigning product images, we need to correctly configure the image roles such as:
-
image -
small_image -
thumbnail -
swatch_image
At present, I do not have clarity on:
-
How to properly assign these image types while syncing images
-
How to manage or update these image roles for an already-synced image
Additionally, I am unsure how to implement an effective image update mechanism, especially when the image already exists in Magento but cannot be easily identified from Box or NetSuite due to the lack of a shared reference or ID.
As a result, while initial image synchronization works reliably, updating existing images in Magento is not handled efficiently in the current setup.