I'm trying to display a different static block for certain types of products. I am able to get this to work with my code bellow, however when switching store views the static block disappears even though it is set for all.
<?php if (isset($p['secCol_2'])) echo $p['secCol_2']; ?>
<?php if ($_product->getAttributeText('colocation') == "No"): ?>
<?php echo $this->getChildHtml('container_product_secondary_2'); ?>
<?php endif; ?>
<?php if ($_product->getAttributeText('colocation') == "Yes"): ?>
<?php echo $this->getChildHtml('container_product_secondary_colocation'); ?>
<?php endif; ?>
For reference, the original code that works on all store views with 1 static block:
<?php if (isset($p['secCol_2'])) echo $p['secCol_2']; ?>
<?php echo $this->getChildHtml('container_product_secondary_2'); ?>
What can I do to the above code so that it works on all store views?
EDIT: With the assistance from the comments I have now figured out that the issue is that the store view is translated. Yes/No is becoming Oui/Non and that is why the blocks are not being displayed.
How do I over come this?