I tried OCMOD now, it is quite easy if you know which files you need to change and how you want to change them. You can find the official documentation here and a good regular expression tester here .
If you click Extensions / Modifications / Add in admin, you can simply paste your XML, select Activated , Save and then Update modifications, then click Log to check the log messages, then check the modified files under the system/modifications directory.
Something to remember is to remove your modification and add it as a new one when changing it, it seems that just updating is not enough to reload the XML.
Here is an example module that I made to remove the wishlist buttons
<?xml version="1.0" encoding="utf-8"?> <modification> <name>Remove wishlist buttons</name> <code>cjohanssonremovewishlistbutons</code> <version>1.0</version> <author>Christian Johansson</author> <link></link> <file path="catalog/view/theme/default/template/product/product.tpl"> <operation> <search trim="true"> <![CDATA[<button type="button" data-toggle="tooltip" class="btn btn-default" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product_id; ?>');"><i style="color:<?php echo html_entity_decode($config->get('ekometcss_css_wishlist_color'), ENT_QUOTES, 'UTF-8'); ?>;" <i class="<?php global $config; echo $config->get('ekometcss_custom_icons_wishlist') ? 'fa fa-' . $config->get('ekometcss_custom_icons_wishlist') : 'fa fa-star'; ?>"></i></button>]]> </search> <add position="replace"> <![CDATA[]]> </add> </operation> </file> <file path="catalog/view/theme/default/template/module/*.tpl"> <operation> <search trim="true"> <![CDATA[<button style="width: 80%;" type="button" class="cat-cart"]]> </search> <add position="replace"> <![CDATA[<button style="width: 100%;" type="button" class="cat-cart"]]> </add> </operation> <operation> <search trim="true"> <![CDATA[<button style="width: 20%;" type="button" class="cat-wishlist" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i style="color:<?php echo html_entity_decode($config->get('ekometcss_css_wishlist_color'), ENT_QUOTES, 'UTF-8'); ?>;" <i class="<?php global $config; echo $config->get('ekometcss_custom_icons_wishlist') ? 'fa fa-' . $config->get('ekometcss_custom_icons_wishlist') : 'fa fa-star'; ?>"></i></button>]]> </search> <add position="replace"> <![CDATA[]]> </add> </operation> </file> <file path="catalog/view/theme/default/template/product/category.tpl"> <operation> <search trim="true"> <![CDATA[<button style="width: 80%;" type="button" class="cat-cart"]]> </search> <add position="replace"> <![CDATA[<button style="width: 100%;" type="button" class="cat-cart"]]> </add> </operation> <operation> <search trim="true"> <![CDATA[<button style="width: 20%;" type="button" class="cat-wishlist" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i style="color:<?php echo html_entity_decode($config->get('ekometcss_css_wishlist_color'), ENT_QUOTES, 'UTF-8'); ?>;" <i class="<?php global $config; echo $config->get('ekometcss_custom_icons_wishlist') ? 'fa fa-' . $config->get('ekometcss_custom_icons_wishlist') : 'fa fa-star'; ?>"></i></button>]]> </search> <add position="replace"> <![CDATA[]]> </add> </operation> </file> </modification>
source share