前台-拿掉加入商品最愛和商品比較這2個按鈕-的OCMOD寫法

<?xml version=”1.0″ encoding=”utf-8″?>
<modification>
<name>前台-拿掉加入商品最愛和商品比較這2個按鈕</name>
<code>no_fa_fa-heart_fa-exchange</code>
<version>v1.0.2適用OPENCART2.3.x</version>
<author>suffixbig</author>
<!– #最新商品 –>
<file path=”catalog/view/theme/*/template/extension/module/latest.tpl”>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_wishlist; ?>” onclick=”wishlist.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-heart”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_compare; ?>” onclick=”compare.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-exchange”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
</file>
<!– #推薦商品 –>
<file path=”catalog/view/theme/*/template/extension/module/featured.tpl”>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_wishlist; ?>” onclick=”wishlist.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-heart”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_compare; ?>” onclick=”compare.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-exchange”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
</file>
<!– #商品分類頁 –>
<file path=”catalog/view/theme/*/template/product/category.tpl”>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_wishlist; ?>” onclick=”wishlist.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-heart”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_compare; ?>” onclick=”compare.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-exchange”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
</file>
<!– #頁頭上方-商品備忘 –>
<file path=”catalog/view/theme/*/template/common/header.tpl”>
<operation>
<search><![CDATA[
<li><a href=”<?php echo $wishlist; ?>” id=”wishlist-total” title=”<?php echo $text_wishlist; ?>”><i class=”fa fa-heart”></i> <span class=”hidden-xs hidden-sm hidden-md”><?php echo $text_wishlist; ?></span></a></li>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
<operation>
<search><![CDATA[
<button type=”button” data-toggle=”tooltip” title=”<?php echo $button_compare; ?>” onclick=”compare.add(‘<?php echo $product[‘product_id’]; ?>’);”><i class=”fa fa-exchange”></i></button>
]]></search>
<add position=”replace”><![CDATA[]]></add>
</operation>
</file>
</modification>

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *