Biz Connection FREE TRIAL + $75 GOOGLE ADWORD - FREE VOUCHER for YOU!

Create a module – ZenCart

1)
/includes/languages/english/my_module_name.php
must have at least two lines
define(‘NAVBAR_TITLE_1′, ‘Module Name’);
define(‘HEADING_TITLE’, ‘Module Name more details’);

2)
/includes/modules/pages/my_module_name
Folder which must contain at least this file:
/includes/modules/pages/my_module_name/header.php

// This should be first line of the script:
$zco_notifier->notify(‘NOTIFY_HEADER_START_MY_MODULE_NAME‘);

require(DIR_WS_MODULES . zen_get_module_directory(‘require_languages.php’));

// This should be last line of the script:
$zco_notifier->notify(‘NOTIFY_HEADER_END_MY_MODULE_NAME‘);

3)
/includes/templates/YOUR_TEMPLATE/templates/my_module_default.php

Here is the form (data extracted processed) in /includes/modules/pages/my_module_name/header.php or /includes/modules/pages/my_module_name.php

4)
/includes/filenames/php
Must contain :

define(‘FILENAME_MY_MODULE_NAME‘, ‘my_module_name‘);
define(‘FILENAME_DEFINE_MY_MODULE_NAME‘, ‘define_my_module_name‘);

The second is for define page area and it is not compolsory.

Related articles

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment