I am adding images to my site and I want them to appear in a particular order but when I hit save they are all over the place. Sometimes it works ok. I am not sure how they are arranging themselves but they are not in numerical or alphabetical order. It's pissing me off. Anyone seen this before.
Are you're talking about product additional images? You'll need to change:
catalog/model/catalog/product.php
public function getProductImages
to
and they'll sort by image name.
catalog/model/catalog/product.php
public function getProductImages
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_image WHERE product_id = '" . (int)$product_id . "'");
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_image WHERE product_id = '" . (int)$product_id . "' ORDER BY image ASC");
-Ryan
I tried this and i want it sorted by number, like #1 , #2, #3 etc right now i have a1, a2, a3 etc but it runs like a1, a2, a4, a3? which dont make sense.
Who is online
Users browsing this forum: Amazon [Bot] and 29 guests