Post by fisher05 » Wed Dec 16, 2015 3:55 am

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>

Fisher05


User avatar
New member

Posts

Joined
Wed May 22, 2013 1:30 am

Post by paddys_1 » Mon Oct 16, 2017 4:47 pm

There is an OC Mod that changes the sort order to show items by the date added, so the most recent are displayed first

Image


User avatar
New member

Posts

Joined
Wed Jul 16, 2014 6:04 am
Who is online

Users browsing this forum: Bing [Bot] and 10 guests