View Single Post
  #2  
Old March 11th, 2011, 08:35 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

This is the variable you have access to:

$product->compset_status

It's value corresponds to:

= 2 -- master product
= 1 -- compset member
= 0 -- not a part of any compset

You can use it within a product loop ([product.each ... [product.end]) like this:

PHP Code:
<?php if ($product->compset_status == 1) { ?>
<a href="[product.link]" class="dfbutton dforange dfmedium">Compare Prices</a>
<?php } else { ?>
<a href="[product.link]" class="dfbutton dforange dfmedium">Details</a>
<?php ?>
Eric