When setting up new attributes in Magento is it possible to disable the stripping out of html tags in the attribute?
The reason I ask is that I would like to put some product information in to an attribute but it needs formatting in a specific way, if I try to paste any HTML formatting in the options it strips it out.
I need to be able to select something from a dropdown menu in the admin section then for the frontend to show the formatted text relevent.
Alternatively if there is a way to call a specif开发者_运维技巧ic static block depending on what attribute is selected that would be great.
Problem solved... ended up using this code to call a static block with the same name as a predefined attribute.
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($_product->getAttributeText('availability'))->toHTML();?>
精彩评论