Live Demo: https://www.tugasunwear.com/sc-tuga-test#horizontalTab4
Goal: Use existing magento short code (like below) to display a .phtml page in the app/design folder
Code in product attribute textarea:
{{block type="core/template" name="description" template="custom/fabric_care/01.phtml"}}
Code in .phtml file to be rendered:
Imported<br /><br />
<strong>Fabric</strong>:<br />80% Nylon / 20% Spandex<br /><br />
<strong>Care</strong>:<br />Rinse, hand wash, drip dry, do not tumble dry/dry clean/iron, do not dry rolled up
Problem: Magento Short Code is being displayed instead of rendering the code in the .phtml page it is linking to.
Other Info: This attribute is a custom addition into the "Neighborhood" theme by Peerforest - who no longer provides support through themeforest on this theme. I wanted change it to a dropdown from a textarea, but that does not work properly.
This is the code rendering this custom attribute:
<?php $_product = $this->getProduct(); ?>
<?php if($_product->getCustomtext()): ?>
<?php echo $_product->getCustomtext() ?>
<?php endif; ?>
This is the layout.xml rendering the custom attribute:
<action method="addTab" translate="title" module="catalog">
<alias>customtext</alias>
<title>Fabric & Care</title>
<block>catalog/product_view</block>
<template>catalog/product/view/customtext.phtml</template>
</action>
I also added this code change to the output.php file copied to my local code folder (as suggested by this post):
if ($attribute->getFrontendInput() != 'price') {
if($attributeName != 'customtext') {
$attributeHtml = $this->escapeHtml($attributeHtml);
}
}
If there is more info needed, please let me know. Hopefully this isn't an impossible task.

