View Single Post
  #1  
Old January 19th, 2015, 02:17 PM
yankeestonk yankeestonk is offline
 
Join Date: Jun 2013
Posts: 605
Default product detail page size

Hi Eric,

On my product detail pages I want to make sure that I'm getting the larger size image provided in the datafeed. How can I tell that i have it set to do so. Here is the product detail code I have now. I don't want to set an arbitrary size because I don't want to blow up the image and make it blury. But I want to make sure I don't get the thumbnail if there is a larger image available.

<!-- Detail Heading -->
<h2>Product Details:</h2>
<!-- /Detail Heading -->

<!-- Single Product -->
<div class="sp">
<div class="bdr">
<div class="lc">
<div class="thmb">
<a href="[product.url direct='0']" title="[product.name]" target="_blank" rel="nofollow">
[product.image tag='1']
</a>
</div>
</div>
</div>
<div class="rc">
<h2><a href="[product.url direct='0']" title="[product.name]" target="_blank" rel="nofollow">[product.name]</a></h2>

<?php if ($product->saleprice > 0 && $product->saleprice < $product->price) { ?>
<div class="prc">
<small>
<span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
<span style="font-weight: bold; color:red;">[product.currency mode='sign'][product.saleprice]</span>
</small>
</div>
<?php } else { ?>
<div class="prc">
<small>
[product.currency mode='sign'][product.price]
</small>
</div>
<?php } ?>
<p class="desc"> [product.description]</p>
<div class="logo">[product.merchant_logo]</div>
<div>
[product.each_tag]<?php if($nn>1){echo ', ';}?><a href="[tag.link]"><?php echo str_replace("-"," ",$tag->name);?></a>[/product.each_tag]
</div>

<?php if ($product->saleprice > 0 && $product->saleprice < $product->price) { ?>

<?php } else { ?>


<?php } ?>

<div class="btns btn-detail">
<a href="[product.url]" class="dfbutton dforange dflarge" title="See more details at retailer" target="_blank" rel="nofollow">View Deal at [product.merchant]</a>
</div>
<div class="btns btn-wishlist">
<a href="#" data-id="[product.id]" data-modal="modal_login" class="md-trigger dfbutton dforange dflarge" title="Add this product to wishlist">Add to wishlist</a>
</div>
</div>
<div class="clearingdiv"> </div>
</div>
<!-- /Single Product -->


http://saveongolf.net
store name saveongolfcopy

Last edited by yankeestonk : January 19th, 2015 at 02:18 PM. Reason: add url and store