I\'d like to create a custom page in Prestashop 1.5.3 without using CMS.
Unfortunately I can not find any tutorials that are working with 1.5.3.
So far I hav
class CustompageController extends FrontController{
//add js / css required for the custom page
public function setMedia(){
$this->context->controller->addJS(_THEME_JS_DIR_.'custom-page.js');
$this->context->controller->addCSS(_THEME_CSS_DIR_.'custom-page.css');
parent::setMedia();
}
public function initContent(){
//preparingdata for passing to the custom page
$name = 'Gofenice Technologies';
$expert_in = array('Prestashop Development', 'Prestashop Customization', 'Prestashop Custom Module Development', 'Prestashop Page Speed Optimization');
$this->context->smarty->assign(array(
'company_name' => $name,
'expert_in' => $expert_in
));
//data ends-here
//pass data to template file
$this->setTemplate(_PS_THEME_DIR_.'custom-page.tpl');
//show left/ right columns - will be true and shown by default
$this->display_column_left = false;
$this->display_column_right = false;
//call parent initcontent - this is for loading the site's default header, footer, left and right columns
parent::initContent();
}
}
A template for our new custom page - themes/site-current-theme/custom-page.tpl
{$company_name}
{l s='Expert In'}
{foreach from=$expert_in item=skill}
- {$skill}
{/foreach}
creating custom front page in prestashop