Hi adolphemattos! Your code was very helpful for me thanks! Can you please help me? I need to use Category Name and Feature Value variables in a Product description. I added code to ProductController.php as described here for CMS page (thanks vekia)
My code in ProductController.php:
if (isset($this->product)){
$this->product->description=str_replace("{MY_VARIABLE}",($this->category->name),"{$this->product->description}");
}
It work good and now I can put {MY_VARIABLE} to product description (backend html editor) and it will show default category name.
As for Feature Values, I made everything as you described in your previous post, now I can put {$features_by_key.3.value} to .tpl and it will show feature value with needed id. But how I can put Feature Variable to html Product Description? Will it possible to do it by same way as I did it for Category name? If yes, could you please help me to create new code to put it to ProductController.php?
PS. I'm not coder and tried to play with your code and with no luck, now it make me crazy... please help me if you can )