toolkit; /* @var $toolkit kInstallToolkit */ } $application =& kApplication::Instance(); $application->Init(); $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);