Thank you. It makes sense. The only problem here is that I am using tabbed product mod and the object output needs to be entered after a certain tab.

I am thinking about some other solution (Joomla mambot like). Let's say the whole product description is a string like xxxxx{php code}yyyyyy. We can first extract a substring {php code} and then make something like:

echo $str1;//$str1 = xxxxx
eval($str2); //$str 2 = php code
echo $str3; //$str3 = yyyyy

In this case, we could easily make a library of different functions to be inserted into prod descr.