View Single Post
  #1  
Old 05-06-2016, 06:04 AM
 
Eyeglasses Expert Eyeglasses Expert is offline
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Can not find my customer module

http://www.lensesexpert.com/

I plan to add an extra box at left bar.

1. I have created MySidebar.php with the follow code:
Code:
<?php namespace XLite\Module\Henry\SidebarMenu\View; /** * @ListChild (list="sidebar.single", zone="customer", weight="500") * @ListChild (list="sidebar.first", zone="customer", weight="500") */ class MySidebar extends \XLite\View\SideBarBox { protected function getHead() { return 'My header'; } protected function getDir() { return 'modules/Henry/SidebarMenu/menu'; } }

and put this file under class/XLite/Module/Tony/SidebarMenu/ View/ folder

2. I have created body.tpl with the following text:
Code:
Hellow world!

and put this file under
/skins/default/en/modules/Henry/SidebarMenu/menu/

3. I also have created Main.php, and put it under: XLite/Module/Henry/SidebarMenu/
Code:
<?php namespace XLite\Module\Henry\SidebarMenu; abstract class Main extends \XLite\Module\AModule { /** * Author name * * @return string */ public static function getAuthorName() { return 'Henry'; } /** * Module name * * @return string */ public static function getModuleName() { return 'SidebarMenu'; } /** * Get module major version * * @return string */ public static function getMajorVersion() { return '5.2'; } /** * Module version * * @return string */ public static function getMinorVersion() { return 0; } /** * Module description * * @return string */ public static function getDescription() { return 'Add an extra bloc at left sidebar'; } }
4.I have re-deployed the cart via admin. But I still can not find my customer module: Henry



i learned from: http://kb.x-cart.com/display/XDD/Creating+sidebar+menu+in+customer+area
http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
Reply With Quote