Page 1 of 1

Sort Latest By Date Available

Posted: Wed Dec 16, 2015 3:55 am
by fisher05
Is there any reason why this can't work for 2.0.2.0 as well? this free extension was originally for 1.5x but looks to replace the same code - however it does not work for me!, any one got any tweaks on offer that could make this work for the new version?

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
	<id>Sort Latest products by date 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>

Re: Sort Latest By Date Available

Posted: Mon Oct 16, 2017 4:47 pm
by paddys_1
There is an OC Mod that changes the sort order to show items by the date added, so the most recent are displayed first