A preview window not showing an image from a gallery at start

Hi everyone,

I have a marketplace and on the product’s page I have difficulites showing the first image from the gallery in the preview large image. It stays empty/white until a picture from the gallery has been clicked. I’m using custom state but for some reason is not working. Could someone have a look in my workflow and tell me where is my mistake?

In the group which contains the preview image and the gallery repeating group, I set a custom state selected_image_item as an image. Then I created a workflow when this group is clicked to set a state to an element. The element is this same group and custom state is the same selected_image_item and the value is parent group’s product’s gallery’s first item.

The gallery is a repeating group and there is a workflow when an image is clicked to show in the large image preview. However now it stopped working as the state workflow is not working.

Many thanks in advance!

Hey @superremontbg :waving_hand:

Hopefully we can help you out. :blush:

Are you setting the default stat on page is loaded?

Hey J805

I’m not sure what you mean… could you please explain as I’m not that familiar with states.

Best,

Sure, you said here that you are setting a state once you click an image right?

So you need to do the same thing on a ‘Page is loaded’ workflow. Set an image there so it has a default. :blush: