Jump to content

imi

Members
  • Posts

    2
  • Joined

  • Last visited

imi's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Try this in override/controllers/front/IndexController.php. Don't forget to change $this->category->id to your home category id. <?php class IndexController extends IndexControllerCore { public function __construct() { parent::__construct(); } public function setMedia() { parent::setMedia(); if ($this->context->getMobileDevice() == false) { //TODO : check why cluetip css is include without js file $this->addCSS(array( _THEME_CSS_DIR_.'scenes.css' => 'all', _THEME_CSS_DIR_.'category.css' => 'all', _THEME_CSS_DIR_.'product_list.css' => 'all', )); if (Configuration::get('PS_COMPARATOR_MAX_ITEM') > 0) $this->addJS(_THEME_JS_DIR_.'products-comparison.js'); } } public function process() { parent::process(); $this->assignScenes(); } /** * Assign scenes template vars */ protected function assignScenes() { $this->category->id=2; // Scenes (could be externalised to another controler if you need them) $scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false); $this->context->smarty->assign('scenes', $scenes); // Scenes images formats if ($scenes && ($sceneImageTypes = ImageType::getImagesTypes('scenes'))) { foreach ($sceneImageTypes as $sceneImageType) { if ($sceneImageType['name'] == ImageType::getFormatedName('m_scene')) $thumbSceneImageType = $sceneImageType; elseif ($sceneImageType['name'] == ImageType::getFormatedName('scene')) $largeSceneImageType = $sceneImageType; } $this->context->smarty->assign(array( 'thumbSceneImageType' => isset($thumbSceneImageType) ? $thumbSceneImageType : null, 'largeSceneImageType' => isset($largeSceneImageType) ? $largeSceneImageType : null, )); } } } In your index.tpl: {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {/if}
  2. Jag får följande felmeddelande när jag sparar efter att jag matat in E-store ID och secret: "9113: An integration problem has occured between the Store and Klarna. Please contact the Store for more information or choose another payment method." Någon annan som fått det? I och för sig har jag inget giltigt konto att testa med ännu, så kanske felet beror på det. Måste man kontakta Klarna för att få ett testkonto? Prestashop: 1.5.2.0 Klarna: 1.7.2
×
×
  • Create New...