Alejandro, I am having trouble hiding the Amazon buttons when there is no ASIN number entered - i have 2 buttons for separate code/asin fields (1 for CDs and 1 for MP3s)... I am wondering if reworking this along the lines of what Mark has done in the post here would be better than what i have been trying to get to work below - seems like the below is the best/easiest approach but for the review items i have where there is no ASIN entered it is not pulling up the thumbnail images for the review item...
<patTemplate:tmpl name="com_content" type="simplecondition" requiredvars="jr_asin,jr_mpasin" varscope="jreviewcontent">
<!-- com_content.html store template -->
<div id="jr_com_content">
<patTemplate:link src="user_reviews_header" />
<div id="content_images" style="float:left;">
<patTemplate:link src="com_content_introimage" />
<div class="image_zoom">Click to see larger images</div>
<patTemplate:link src="com_content_images" />
</div>
<div class="content_fields">
<div>
{CUSTOMFIELDS}
</div>
<div class="clear"></div>
<div class="content_affiliate">
<a href="
http://www.amazon.com/gp/product/<patTemplate:var name="jr_asin" modifier="strip_tags" modifierType="php" />?ie=UTF8&tag=t0ca-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=<patTemplate:var name="jr_asin" modifier="strip_tags" modifierType="php" />">
<img border="0" alt="buy the CD" src="{TEMPLATE}/custom_images/buy-from-tan.gif" />
</a>
</div>
<div class="content_affiliate">
<a href="
http://www.amazon.com/gp/product/<patTemplate:var name="jr_mpasin" modifier="strip_tags" modifierType="php" />?ie=UTF8&tag=t0ca-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=<patTemplate:var name="jr_mpasin" modifier="strip_tags" modifierType="php" />">
<img border="0" alt="buy as MP3s" src="{TEMPLATE}/custom_images/buy-from-tan02.gif" />
</a>
</div>
</div>
<div style="clear:both;"><br /></div>
{INTROTEXT}<div style="clear:both;"><br />{FULLTEXT}</div>
</div>
</patTemplate:tmpl>