Hey guys,
Quick question, I have modified the products->view file to enable a CSS based gallery for my products. However when a product ahs more than one variant, it will show the images in the variant's image list rather than the parents product. How can i call the main product's image when a variant is present? I'm currently using thise code:
foreach($this->element->images as $image){
echo '<img src='.$this->lement->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" />';
}
This works great when there are no variants but shows the variant's images rather than the primary product's images if a variant exists.