Need to show Magento Base Image on each items in Placed Orders

  • 12 August 2021
  • 3 replies

Badge +2

Once placed orders in magento 2 are synced with Klaviyo, ordered product image is always showing as first image assigned in magento store. How we can show the product image in klaviyo which isselected as Base image in magento.


Best answer by Dov 13 August 2021, 16:15

View original

3 replies

Userlevel 7
Badge +61

Hello @stephenk,

Thank you for sharing this with the Klaviyo Community.

You’ll want to look into adjusting the custom media root URL within Klaviyo. This setting allows you to change the default path for your site images. This can be found if you navigate to Integrations > Magento 2 > Advanced Options. After the custom media root URL is updated, click Connect to Magento 2.

I hope this helps!

Badge +2

Hi @Dov 

Thanks for the reply.

Actually my problem is, magento product has 3 images and 2nd image is set as BASE image It is the most relevant image for that product. But when the order is placed with that product, after sync with klaviyo it shows the 1st image as a product image in klaviyo Not the BASE image.
We need to display BASE image always for product images.

How this can be achieved?

I have tried overriding klaviyo/magento2-extension/Model/Reclaim.php → _getImages() function and reorder the images with BASE image as 1st image. But it did not success. 

Userlevel 7
Badge +61

Hello @stephenk,

Ok thank you for that clarification.

In the Klaviyo extension code, we pull all the images for the product and capture only the first non-disabled image for the event. Therefore, I recommend disabling the first image in Magento and then we should pull the 2nd, base image as the default image in Klaviyo.

Let me know if you are still having any trouble after this!