I have one site:
http://on3w.info/brir/
if see in home page , display error:
: Undefined index: stock in /home/onwinfo/public_html/brir/catalog/view/theme/fastor/template/new_elements/product.tpl
This file is send thunb product in list.
if See in categories the my code work fine, just in home module that display error.
Yours help me?
Code ins github:
https://gist.github.com/anonymous/a5cc8 ... 42bbbcc66e
i insert code in controller to this code :
Code: Select all
$stock = $product['stock'];
$products[] = array(
'stock' => $result['quantity'] <= 0 ? $result['stock_status'] : ( $this->config->get('config_stock_display') ? $result['quantity'] : 'In Stock' ),
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'price' => $price,
'special' => $special,
'rating' => $rating,
'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']),
);
}
}