Hi ...
How can I stop the random of the images.
I want to get only the first one of each item.
Best Regards
Goran
// third query
$query_news3 = "SELECT
`m`.`file_path` AS `image`,
`m`.`file_ordering` AS `ordering`,
`content`.`product_id` AS `id`
FROM
#__hikashop_product AS content
LEFT JOIN
#__hikashop_file AS `m`
ON
`m`.`file_ref_id` = `content`.`product_id`
WHERE
(".$sql_where2.")
AND
`m`.`file_type` LIKE 'product'
ORDER BY
`content`.`product_id` ASC,
`m`.`file_ordering` DESC
";
// third query
$query_news3 = "SELECT
`m`.`file_path` AS `image`,
`m`.`file_ordering` AS `ordering`,
`content`.`product_id` AS `id`
FROM
#__hikashop_product AS content
LEFT JOIN
#__hikashop_file AS `m`
ON
`m`.`file_ref_id` = `content`.`product_id`
WHERE
(".$sql_where2.")
AND
`m`.`file_type` LIKE 'product'
ORDER BY
`content`.`product_id` ASC,
`m`.`file_ordering` ASC
";