That is a considerable chunk of code, and could not just be dropped into the line as shown above. Look in /includes/templates/template_default/templates/tpl_product_info_display.php to find the section that builds the price/add. It incrementally puts together bits of code; you can probably transfer the section to a point above the "text" line, accumulating the output in a variable like
$add_code .= ...
and then insert
. $add_code
in the text output.
A caution: the code in tpl_product_info_display.php may depend on some variables being loaded with current database query info, and may not work properly in another file. If that is the case, you will have to get that info from the database, which is a whole other subject.


Reply With Quote

