I am trying to write my first vqmod script. The purpose of the script is to remove the product descriptions from the featured items. I don't see an option for delete or remove, so I just replaced with an empty string. Can this be done? Can the inside apostrophes possibly be illegal? Or is it OK to nest them as I have. I have uploaded the script to the /vqmod/xml folder as an *.xml script, but nothing is happening. Can someone see what I'm doing wrong? Thanks so much in advance!
Code: Select all
<modification
xmlns="https://github.com/vqmod/vqmod"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/vqmod/vqmod https://raw.githubusercontent.com/vqmod/vqmod/master/vqmod.xsd"
>
<id>Delete display from featured items module</id>
<version>1.0.0</version>
<vqmver>2.5.0</vqmver>
<author>Dena</author>
<file name="catalog/view/theme/default/template/module/featured.tpl">
<operation>
<search position="replace"><![CDATA[
$var = '<p><?php echo $product['description']; ?></p>';
]]></search>
<add><![CDATA[
$var = ' ';
]]></add>
</operation>
</file>
</modification>