Ürün modelini kategori sayfasında göstermeye çalışıyorum. Ben /catalog/controller/product/category.php içinde 'model'=> $result['model']
ekledikkategori görüntüleniyor. Opencart
$data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
'price' => $price,
'special' => $special,
'tax' => $tax,
'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1,
'rating' => $result['rating'],
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url),
'model' => $result['model']
);
ürünler foreach
<?php if (!empty($product['model'])) { ?>
<h5 class="model"> <?php echo $product['model']; ?></h5>
<?php } ?>
ama hiçbir şey aşağıdaki kodla da ben düzenledim category.tpl kategori sayfasında gösterir.
Başka ne yapmalıyım?
deneyin ayarı 'model' .tpl dosyası en az doğru ben fiyat, isim yerini –
görüntülemek mümkün olduğunu test etmek ve her iki durumda da ben –
Agis Soleas, print_r deneyin tanımsız endeks hata var sonuçlar) category.php dosyasında ve modelin sonucu verilip verilmediğini kontrol edin? –