1

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>

1 Answers1

0

It seems to me that you haven't closed these if statements:

    <?php if ($price) { ?>
    ...
    <?php if ($call_price < 1) { ?>
Norbert
  • 302
  • 1
  • 9
  • 19