Had the problem with not being able to order the slideshow images. So I did a little digging. This works on ver 1.5.0 - this solution is working on my site,
http://www.prairiepassions.net, where I am able to keep the welcome banner the first banner the customer sees.
in
/catalog/model/design/banner.php
Code: Select all
<?php
class ModelDesignBanner extends Model {
public function getBanner($banner_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "banner_image bi LEFT JOIN " . DB_PREFIX . "banner_image_description bid ON (bi.banner_image_id = bid.banner_image_id) WHERE bi.banner_id = '" . (int)$banner_id . "' AND bid.language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY image ASC");
return $query->rows;
}
}
?>
I added the ORDER BY image ASC at the end of the long line.
I suspect that this will get overwritten with each system upgrade?
The way I order my images is to start by tens... 10_img.jpg, 20_img.jpg, 30_img.jpg etc. Then if I want I can add a file in the middle, say 15_img.jpg, without having to rename all the files.
I suspect this could also be made to sort by the banner description that is in the backend, allowing for easier control of the slideshow, but I find this easy and logical enough.