Witam, mam taką funkcje która działa poprawnie, dla każdego z produktów zwraca tylko jego dane: function hookdisplayList($params){ $product=new Product($params['id_product']); $combinations=$product->getAttributeCombinations($this->context->language->id); $this->smarty->assign('combo',$combinations); return $this->display(__FILE__, 'podglad.tpl'); } Gdy zamienię to na function convertPrice($params, $smarty){ $product=new Product($params['id_product']); $combinations=$product->getAttributeCombinations($this->context->language->id); $this->smarty->assign('combo',$combinations); return $this->display(__FILE__, 'podglad.tpl'); } to funkcja już nie działa poprawnie, w każdym produkcie są zwracane dane tylko produktu o id 1, otrzymuje komunikat undefined index id_product, próbowałem dodać $id_product = (int)Tools::getValue('id_product'); bez skutku. Nie wiem co blokuje id produktu, lub jak je pobrać w inny sposób.