Code:
$sProductLineHTML = '<script type="text/javascript">var mpn = "' . $$pProduct{CUSTOMVARS}{MPN} . '";</script>';
However, do you really mean
$sProductLineHTML .=
Note that dot. Which will add the text to $sProductLineHTML, rather than completely replacing it.
Comment