I have a parts configurator that I only want to have appear for a certain product SKU. In my catalog/product/view.html file I have included the following code:
<?php
if ($_product->getSku() == '10007-') {
echo $this->getLayout()->createBlock('cms/block')->setBlockId('partfinder_selector')->toHtml();
}
?>
Then, in the xml file for the configurator:
<catalog_product_view>
<reference name="content">
<block type="partfinder/selector" name="partfinder_selector" before="-" template="partfinder/selector.phtml"/>
</reference>
The issue is, with this setup, the configurator appears on all product pages. Do I have something wrong in my code, or is there a better method for what I am trying to accomplish. Any help would be appreciated.