Permalink

Aktive CMS Klasse für Prestashop

Open classes/FrontController.php Find the function displayHeader() After this ‘logo_image_height’ => Configuration::get(‘SHOP_LOGO_HEIGHT’), ‘priceDisplayPrecision’ => _PS_PRICE_DISPLAY_PRECISION_, ‘content_only’ => (int)Tools::getValue(‘content_only’), Add this line of code ‘cms_class’ =>(int)Tools::getValue(‘id_cms’) Open Header.tpl add in the body tag this line of code {if $page_name ==’cms’} class=”cms{$cms_class}”{/if} like … Weiterlesen

Permalink

Prestashop – Featured Products auf der Startseite anpassen

Standardmäßig listet das “featured products on homepage”-Modul die ersten Produkte der Kategorie Start. Um eine Auflistung nach Name vorzunehmen, muss folgende Änderung in der Datei homefeatured.php vorgenommen werden. in ca. Zeile 99 ‘name’, ‘ASC’ als Sortierkriterium hinzufügen alt: $products = … Weiterlesen