转到您的源 > vqmod > xml > & 然后找到并打开“webvet_percentage_to_specials_v6.xml”文件 > & 然后在页面底部的标签上方添加下面的代码</modification>
。> & 然后检查它。
// FILTER PAGE
<file name="catalog/controller/product/results.php">
<operation>
<search position="after"><![CDATA[
'special' => $special,
]]></search>
<add><![CDATA[
'saving' => round((($result['price'] - $result['special'])/$result['price'])*100, 0),
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/result.tpl">
<operation>
<search position="after"><![CDATA[
<span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
]]></search>
<add><![CDATA[
<br /><span style="color: red;">SAVE <?php echo $product['saving']; ?>%</span>
]]></add>
</operation>
</file>