This module is pretty and simple SamsonCMS application for catalog management of e-commerce web-sites.
Product module accommodates two basic SamsonCMS applications - material and structure.
Using ui-functions CMS administrator can modify catalog structure, move products from one category to another, make CRUD actions for categories and sub-categories.
Feel free to extend this application by your custom extensions.
This is done using SamsonPHP configuration system
All available configuration fields are:
class ProductConfig extends \samson\core\Config
{
/** @var int Identifier of catalog root structure */
public $catalogID = __CATALOG_ROOT_STRUCTURE;
/** @var array Collection of system structures identifiers. These categories will be ignored in all application actions */
public $systemStructureIDs = array(__SYSTEM_STRUCTURE_ID_1, __SYSTEM_STRUCTURE_ID_2, __SYSTEM_STRUCTURE_ID_3);
/** @var bool Flag of application visibility. Use it as true if you extend current module by custom application */
public $hide = false;
}
Take a look on the example of SamsonCMS e-commerce web-site structure.
__CATALOG_ROOT_STRUCTURE
__CATALOG_CATEGORY
__CATALOG_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_CATEGORY
__CATALOG_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
__CATALOG_SUB_SUB_CATEGORY
In this example you must set $catalogID
in configuration equal to __CATALOG_ROOT_STRUCTURE
identifier.