Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F773446
in-commerce
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 2, 12:00 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Tue, Feb 4, 12:00 PM (4 m, 15 s)
Engine
blob
Format
Raw Data
Handle
556672
Attached To
rMINC Modules.In-Commerce
in-commerce
View Options
Index: branches/RC/in-commerce/install.php
===================================================================
--- branches/RC/in-commerce/install.php (revision 11942)
+++ branches/RC/in-commerce/install.php (revision 11943)
@@ -1,49 +1,49 @@
<?php
/**
* @version $Id$
* @package In-Commerce
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license Commercial License
* This software is protected by copyright law and international treaties.
* Unauthorized reproduction or unlicensed usage of the code of this program,
* or any portion of it may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law
* See http://www.in-portal.net/license/commercial/ for copyright notices and details.
*/
$module_folder = 'in-commerce';
if (!defined('IS_INSTALL')) {
// separate module install
define('IS_INSTALL', 1);
define('ADMIN', 1);
define('REL_PATH', $module_folder);
define('FULL_PATH', realpath(dirname(__FILE__) . '/..') );
include_once(FULL_PATH . '/core/kernel/startup.php');
require_once FULL_PATH . '/core/install/install_toolkit.php';
$toolkit = new kInstallToolkit();
}
else {
// install, using installation wizard
$toolkit =& $this->toolkit;
/* @var $toolkit kInstallToolkit */
}
$application =& kApplication::Instance();
$application->Init();
- $category =& $toolkit->createModuleCategory('Products', 'Product Catalog', '/in-commerce/designs/section');
+ $category =& $toolkit->createModuleCategory('Products', 'Product Catalog', '/in-commerce/designs/section', 'in-commerce/img/menu_products.gif');
$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql');
$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{ProductCatId}', $category->GetID());
$toolkit->ImportLanguage('/' . $module_folder . '/install/english');
$toolkit->SetModuleRootCategory($module_folder, $category->GetID());
$toolkit->linkCustomFields($module_folder, 'p', 11); // to create Custom Fields for Products
$toolkit->linkCustomFields('KERNEL', 'u', 6); // to create shipping related Custom Fields for Users
$toolkit->linkCustomFields('KERNEL', 'c', 1); // to create ItemTemplate custom field
$toolkit->setModuleItemTemplate($category, 'p', 'in-commerce/designs/detail');
$toolkit->finalizeModuleInstall($module_folder, true);
\ No newline at end of file
Event Timeline
Log In to Comment