Question

Best way to get first Product Image for Woocommerce for Instagram, Pinterest and Twitter Posts

  • 11 May 2020
  • 1 reply
  • 117 views

Hi Community!

I am trying to get the first available image for a Woocommerce product for Zaps that are triggered by product updated.

The issue I am having is that there does not seem to be a solid way to get the image I need.
If there is only one image for the product then Image Src will give you what you need. However more than one image it gets more complicated and my success is limited.

Does anyone have a code example or other method that will work that they could help me with?
 

Dean 
Datalynk UK


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +8

Hi @Datalynk ,

Thanks for reaching out! I see you are working with Nikki in Support on achieving this workflow, which is great as she can look at your Task History to identify some possible solutions.

If you have any additional questions, just let us know and we’ll be happy to help!