Hata Satırı : Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected token "punctuation" of value "." ("operator" expected with value "in") in "__string_template__6d9b8bebd936b37ca511da412d18ed9774dc39e0b0ad96236f872a6e151a0120" at line 8.
8. satırdaki kod : {% for product.images in images %}
Amaç : modullerde carousel içersinde ek resimlerin gösterilmesi
İşlem Yapılan dosya: featured.twig ve featured.php
php dosyasına eklediğim kod.
$resimler_data = $this->model_catalog_product->getProductImages($product_info['product_id']);
$images = array();
foreach ($resimler_data as $resim_data) {
$images[] = array(
'popup1' => $this->model_tool_image->resize($product_info['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_height')),
'thumb1' => $this->model_tool_image->resize($product_info['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_additional_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_additional_height'))
);
}
$data['products'][] = array(
'images' => $images,
Twig dosyasna ekleyip hata veren kod
<script></script>