Code: Select all
<modification>
<name><![CDATA[<font color="#0000"><b>Ecomteck - Sold Items - Number Bought The Product</font>]]></name>
<version>2.3.0</version>
<link>http://ecomteck.com</link>
<author>ecomteck@gmail.com</author>
<code>ec_sold_items</code>
<file path="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace"><![CDATA[<?php if ($price) { ?>]]></search>
<add><![CDATA[
<?php if(isset($sold_items)) { ?>
<div class="ec_block_sold_items">
<div><?php echo sprintf($language->get("text_sold_items"), $sold_items); ?></div>
</div>
<?php } ?>
<?php if ($price) { ?>
]]></add>
</operation>
</file>
</modification>