开发者

Magento attributes - Disable HTML stripout

开发者 https://www.devze.com 2023-03-07 00:17 出处:网络
When setting up new attributes in Magento is it possible to disable the stripping out of html tags in the attribute?

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();?>
0

精彩评论

暂无评论...
验证码 换一张
取 消