Jump to content

cover image at combinations


schnuckelg

Recommended Posts

hi!

for some reasons I like to display the cover image of a product combination (the image that is marked as cover at product basic settings) at the front office. therefore I changed templates/catalog/_partials/miniatures/product.tpl. 

In the block {block name='product_miniature_item'} I changed 

src = "{$product.cover.bySize.home_default.url}" to

src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}". 

This works well if all products fit into one category page. if you have to switch to page 2 this results into an endless loading of page 2.

Does anyone know why, or has anyone an idea why $product.cover.bySize.home_default.url does not show the image that is marked as cover?

 

best regards,

Gerald

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 5 months later...
  • 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...