Hi,
Is there a way, in the admin section of this module, to only list the items that have their status set as "enabled"?
Also, how can I increase the size of the image displayed in the featured box?
Thank you!
To set it to only show the enabled featured products, change this line
to
In /catalog/model/catalog/product.php
it should be around line 355 under the line
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_featured f LEFT JOIN " . DB_PREFIX . "product p ON (f.product_id=p.product_id) LEFT JOIN " . DB_PREFIX . "product_description pd ON (f.product_id = pd.product_id) LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' LIMIT " . (int)$limit);
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_featured f LEFT JOIN " . DB_PREFIX . "product p ON (f.product_id=p.product_id) LEFT JOIN " . DB_PREFIX . "product_description pd ON (f.product_id = pd.product_id) LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND p.status = 1 LIMIT " . (int)$limit);
it should be around line 355 under the line
Code: Select all
public function getFeaturedProducts($limit) {
Who is online
Users browsing this forum: No registered users and 13 guests