Ik wil een stukje verplaatjes zo dat ik de Beschikbaarheid: Op voorraad
in de list en grid weergeeft.
Dit stukje komt uit catalog/controller/product /product.php
En moet in catalog/controller/product/category.php
Maar het werkt niet.
Iemand iedeeén
Code: Select all
if ($product_info['quantity'] >= 0) {
$this->data['stock'] = $product_info['stock_status'];
} elseif ($this->config->get('config_stock_display')) {
$this->data['stock'] = $product_info['quantity'];
} else {
$this->data['stock'] = $this->language->get('text_instock');
}