Jump to content

xav13

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • First Name
    Xavier
  • Last Name
    Arnal

Recent Profile Visitors

131 profile views

xav13's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I found the solution. I haven't create a file xav.php in the root folder of my module 'xav' In this class i have this code : <?php if (!defined('_PS_VERSION_')) exit; class xav extends Module { /* @var boolean error */ protected $_errors = false; public function __construct() { $this->name = 'xav'; $this->tab = 'front_office_features'; $this->version = '1.0'; $this->author = 'Xav13'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('xav'); $this->description = $this->l('Custom page Xav'); $this->confirmUninstall = $this->l('Are you sure you want to delete this module?'); } public function install() { if (!parent::install()) return false; return true; } public function uninstall() { if (!parent::uninstall()) return false; return true; } } Hope this can help.
  2. Thnak for your answer, I have seen all stack overflow post, especially this one but it seems that doesn't really work as expected. I know i can create content by admin panel, but i can only choose my layout for all CMS page content. (not a unique one) Any idea on a method to call a template file directly ? I really would like to mange my file, to include some hooks, extra lib... but i don't know how to call it throught a route with prestashop...
  3. Hello, I use prestashop 1.7 wirh the classic theme. I would like to create a full HTML custom page. I will probably include file 'page.tpl' and put my content in 'page_content' block. I dont' really know wich is the best way to perform this. I found some tutorials and start by creating a new module : I have created about.php file in this path : modules/xav/controllers/front/about.php class XavAboutModuleFrontController extends ModuleFrontController { /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->setTemplate('module:xav/views/templates/front/about.tpl'); } } and about.tpl in this path : modules/xav/views/templates/front/about.tpl I tried to acces to http://localhost/prestashop/module/xav/about but i got a 404 error. Can u help me to create a custom content and manage the route to display this one. Thank you
×
×
  • Create New...