here is my short guide to solving a common problem with the lack of support for outputting html content in product custom attributes.
Advantages of my approach are:
- No headache
- No plugins
So all we need is just a single file that located /catalog/model/catalog/product.php. Find this code around line 319:
Code: Select all
foreach ($product_attribute_query->rows as $product_attribute) {
$product_attribute_data[] = array(
'attribute_id' => $product_attribute['attribute_id'],
'name' => $product_attribute['name'],
'text' => $product_attribute['text']
);
}
Code: Select all
'text' => html_entity_decode($product_attribute['text'], ENT_QUOTES, 'UTF-8')