you have a number of places where this is php code that you have put HTML comments around, for example:
<!--?php
do { if(strpos($row_GroupedOptions['ProductOptions'].",",$row_ProductOptions['OptionGroupName'].": ".$row_OptionValues['OptionName'].",")!==false) {$_SESSION['avd_options_for_condtional'][] = $row_OptionValues['OptionName'];
}
?-->
this will not work, you cannot use HTML comments around PHP code.
to comment php code, you must use php comments:
<?php
do { //if(strpos($row_GroupedOptions['ProductOptions'].",",$row_ProductOptions['OptionGroupName'].": ".$row_OptionValues['OptionName'].",")!==false) { $_SESSION['avd_options_for_condtional'][] = $row_OptionValues['OptionName'];
}
?>
I see numerous places where you have done this, you should revert the products update page back to the original form the power store download.