XML : Sort Latest Products by Date Available Opencart

I used this Free extension in OC 1.5.5.1 to sort the latest products by the date available in the product listing.

However the code for the latest module doesn't seem to have changed much in 2.0.2.0 but this extension doesn't work, can any help with tweaks to make it work with the new version of Opencart?

  <?xml version="1.0" encoding="UTF-8"?>  <modification>      <id>Sort Latest products by data available</id>      <version>1.0.0</version>      <vqmver>2.4.1</vqmver>      <author></author>        <file name="catalog/model/catalog/product.php">          <operation error="skip">              <search position="replace" index="1"><![CDATA['p.date_added']]></search>              <add><![CDATA['p.date_added','p.date_available']]></add>          </operation>      </file>      <file name="catalog/controller/module/latest.php">          <operation error="skip">              <search position="replace"><![CDATA['sort'  => 'p.date_added',]]></search>              <add><![CDATA['sort'  => 'p.date_available',]]></add>          </operation>      </file>  </modification>    

No comments:

Post a Comment