so if i create a second store product type (not a content type but store product type) and add product based on that the thumbnail and picture for that product does not load. i suspect because the node--shop-product.tpl.php file does not have any variables in there accounting for whatever you named the image filed for your new store product type. what do i have to do to fix this?
Thu, 12/15/2016 - 15:17
Hi,
You can please customize manager settings of your display product similar to product display default
https://i.imgur.com/6o54MVq.png
thats actually not true. for the image to load you have to edit the node--shop-product.tpl.php file and add a section of code for every different product image:
<?php if (isset($content['product:field_WHATEVER'])):?>
<a href="<?php print $node_url; ?>">
<?php if (isset($content['product:field_WHATEVER']['#items'][1]['uri'])): ?>
<img src="<?php print image_style_url('product_modal',$content['product:field_WHATEVER']['#items'][0]['uri']); ?>" alt="product" class="current">
<img src="<?php print image_style_url('product_modal',$content['product:field_WHATEVER']['#items'][1]['uri']); ?>" alt="product">
<?php else :?>
<img src="<?php print image_style_url('product_modal',$content['product:field_WHATEVER']['#items'][0]['uri']); ?>" alt="product" class="current">
<?php endif; ?>
</a>
<?php endif; ?>
<?php if (isset($content['product:field_WHATEVER'])): ?>
<div class="product-slider-wrapper thumbs-bottom">
<?php print render($content['product:field_image_fusion4x4']); ?>
</div>
<?php endif; ?>