Thanks so much for your help Ryan, I really appreciate your time, but I am still not getting it to work.
I have the following:
Code: Select all
<modification>
<id>Populate Blank Alt Tags</id>
<version>1.0.0</version>
<vqmver>2.1.5</vqmver>
<author>Dave Anderson</author>
<file name="/catalog/controller/product/product.php">
<operation>
<search position="replace"><![CDATA[$this->data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');]]</search>
<add><![CDATA[$this->data['description'] = str_replace('alt=""', 'alt="' . $product_info['name'] . '"', html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8'));"]]
</add>
</operation>
</file>
</modification>
But it is still not working, also it is throwing up errors in vqmod manager:
Warning: simplexml_load_file(): /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/vqmod/xml/populate_blank_alt_tags.xml:19: parser error : CData section not finished $this->data['description'] = html_entity_decode($p in /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/admin/controller/module/vqmod_manager.php on line 129Warning: simplexml_load_file(): in /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/admin/controller/module/vqmod_manager.php on line 129Warning: simplexml_load_file(): ^ in /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/admin/controller/module/vqmod_manager.php on line 129Warning: simplexml_load_file(): /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/vqmod/xml/populate_blank_alt_tags.xml:19: parser error : Premature end of data in tag search line 10 in /hsphere/local/home/fastforwardtime/fastforwardtime.co.uk/admin/controller/module/vqmod_manager.php............ etc
What else is wrong with is.
Thanks again
Dave