Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Can not find my customer module

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #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
  #2  
Old 05-06-2016, 04:52 PM
 
Eyeglasses Expert Eyeglasses Expert is offline
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: Can not find my customer module

solved, forgot to enable the module name called SidebarMenu.
Reply With Quote

The following user thanks Eyeglasses Expert for this useful post:
razortw (05-13-2016)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:21 AM.

   

 
X-Cart forums © 2001-2020