Monday, 26 August 2013

Parse error: syntax error, unexpected $end when loading any page where this portion of the script is called

Parse error: syntax error, unexpected $end when loading any page where
this portion of the script is called

This is part of an xml file that gets parsed modifying sections of the
page as it loads. The modified version is cached and displayed by the
virtual engine so the actual template files don't get modified.
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation error="skip">
<search position="before"><![CDATA[
<?php if ($price) ?>
]]></search>
<add trim="true"><![CDATA[
<?php if ($call_price < 1) ?>
]]></add>
</operation >
<operation error="skip">
<search position="before" index="1"><![CDATA[
<?php if ($options) { ?>
]]></search>
<add trim="true"><![CDATA[
<?php } else { ?>
<?php if ($call_price) { ?>
<div class="description" style="border-top:none; margin-top:0px;">
<?php echo $text_call_price; ?>
</div>
<?php } ?>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search position="replace"><![CDATA[
<input type="button" value="<?php echo $button_cart; ?>"
id="button-cart" class="button" />
]]></search>
<add trim="true"><![CDATA[
<?php if ($disable_button < 1) { ?>
<input type="button" value="<?php echo $button_cart; ?>"
id="button-cart" class="button" />
<?php } else { ?>
<input type="button" value="<?php echo $button_cart; ?>"
id="button-cart" class="button" style="background-image:none;
background-color:#CCC;" disabled="disabled" />
<?php } ?>
]]></add>
</operation>
</file>

No comments:

Post a Comment