InaneCoding / Piwik-OpenCart-Ecommerce-VQMod

A repository for the Piwik Ecommerce mod for Open Cart using VQmod.
22 stars 17 forks source link

Make VQmod XML file work with different themes #2

Closed kevinb456 closed 11 years ago

kevinb456 commented 11 years ago

Currently the VQmod XML file used to edit the footer template is hard-coded to edit the default template footer file;

<file name="catalog/view/theme/default/template/common/footer.tpl">
        <operation>
            <search position="before" offset="1"><![CDATA[</body>]]></search>
            <add><![CDATA[
<?php echo $piwik_footer_text; ?>
            ]]></add>
        </operation>
</file>

If a custom template is used, this will not make the modifications correctly.

kevinb456 commented 11 years ago

Fixed #2 in commit d98722102cb5caa671cb7804e6753af12d409d76.