Order by Product ID or Price
I have made the proper edit to this string:
mysql_select_db($database_PowerStoreConnection, $PowerStoreConnection);
$query_WADAProducts = "SELECT *, coalesce((select ps4_productoptions.GroupingID from ps4_productoptions WHERE ps4_productoptions.ProductID = ps4_products.ProductID limit 1),ps4_products.ProductID) AS GroupingID FROM ps4_products WHERE ProductLive = 1 AND (ProductStartDate IS NULL OR ProductStartDate <= CURDATE()) AND (ProductEndDate IS NULL OR ProductEndDate >= CURDATE()) GROUP BY GroupingID ORDER BY ProductName";
which now reads:
mysql_select_db($database_PowerStoreConnection, $PowerStoreConnection);
$query_WADAProducts = "SELECT *, coalesce((select ps4_productoptions.GroupingID from ps4_productoptions WHERE ps4_productoptions.ProductID = ps4_products.ProductID limit 1),ps4_products.ProductID) AS GroupingID FROM ps4_products WHERE ProductLive = 1 AND (ProductStartDate IS NULL OR ProductStartDate <= CURDATE()) AND (ProductEndDate IS NULL OR ProductEndDate >= CURDATE()) GROUP BY GroupingID ORDER BY ProductID";
Yet the products still do not go in the proper order on the page returned for the results.
If ORDER BY ProductID means to select from that table, then why are the results still not showing up.
The file I changed is stored in /webassist/plugins/catalog/
Is this where the file is found? is this the file products_results.php is calling?
Please advise on what was done wrong, my products are all out of whack.
Thanks