I Have a slight problem. I have this code: $item(" #image “).src = itemData.mediaItems[0].src; that i use to change/set the image from my products dataset. Now i want to do the same thing to a regalar dataset (womenclothing) that has my product dataset as an reference field in my new dataset (womenclothing). How do I code to the same itemData.mediaItems[0].src; from the referenced field? I did this : $item(” #image ").src = womenclothing.itemData.mediaItems[0].src; …but it did’nt work.
Just incase anyone else want to know the answer. I solve it by putting
$item(“#productName”).text =itemData.wixStoreImages.name; where the wixStoreimages is the field key for my of the reference field.