Jump to content

How to get path of primary image within selected product color choice?


Recommended Posts

How to get path of primary image within selected product color choice?
For instance, I currently use the cover image, which I get the file path as follows.
{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}
I do this to display the cover image if an attribute combination has no photo/product suggestion.
I want to be able to show the plain attribute phot for the particular selected photo.

I know it's the image first shown when a color is selected from the color selector, but can't seem to get the code line equivalent to $cover.id_image specific to color.
Thanks!

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...