Re: Center Box New Products Listing on Category with Subcategories Pages are Random
You have to override the modules/new_products.php
Not quite into the zenway, but for what I've seen, if you change
if ($new_products_query != '') $new_products = $db->ExecuteRandomMulti($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);
to
if ($new_products_query != '') $new_products = $db->Execute($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);
And
$new_products->MoveNextRandom();
to
$new_products->MoveNext();
In the query, you make a ORDER BY products_date_added ... Not sure the name of the field.
Or use the sort order, and order by that.
Anyway, it's more or less this way.
But I think that the random makes more sense, because a customer, can see different products
For specific products, perhaps the featured module....or even copy all that related to new products, and make a new module, that would query by the date.
Last edited by mesnitu; 12 Dec 2015 at 11:04 PM.
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
Bookmarks