
I would like to moddify product page in my template... I would like to display additional images with Sort Order more than 100 in other place. Can I somehow get Sort Order value inside the additional images loop? Maybe it is $image['something']?
Code: Select all
public function getProductImages($product_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_image WHERE product_id = '" . (int)$product_id . "'");
return $query->rows;
}
Code: Select all
public function getProductImages($product_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_image WHERE product_id = '" . (int)$product_id . "'ORDER BY image");
return $query->rows;
}
Users browsing this forum: No registered users and 24 guests