Ich habe ProductController.php wie folgt überschreiben, um Hersteller Land anzuzeigen.Hinzufügen von Hersteller Stadt und Land in Prestashop 1.6 auf Produktliste und Produkt Seite
class ProductController extends ProductControllerCore
{
public function initContent()
{
$manufacturer_country = "";
if($this->product->id_manufacturer > 0)
{
$manufacturer = new Manufacturer($this->product->id_manufacturer, $this->context->language->id);
$manufacturer_country = $manufacturer->country;
}
$this->context->smarty->assign('manufacturer_country', $manufacturer_country);
parent::initContent();
}
}
in product.tpl i schrieb {$ manufacturer_country} aber nichts zu drucken. kann mir jemand anleiten, wie man drucken kann auf product.tpl und produkt list.tpl
Ich habe ProductController.php in Project \ override \ controller \ front \ Verzeichnis. Ich lösche Cache. – MUHIUDDIN