2024-11-24 18:38:29 -08:00
|
|
|
# CakeProducts plugin for CakePHP
|
2024-11-22 09:18:16 +00:00
|
|
|
|
2024-11-24 18:38:29 -08:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).
|
|
|
|
|
|
|
|
|
|
The recommended way to install composer packages is:
|
|
|
|
|
|
|
|
|
|
```
|
2025-03-27 02:11:34 -07:00
|
|
|
composer require hi-powered-dev/cake-products
|
2024-11-24 18:38:29 -08:00
|
|
|
```
|
2025-03-27 02:18:29 -07:00
|
|
|
|
|
|
|
|
## Database Structure
|
|
|
|
|
|
|
|
|
|
Products belong to ProductCategories, ProductCategories is hierarchical and belongs to ProductCatalogs.
|
|
|
|
|
|
|
|
|
|
ProductCategoryAttributes belongs to ProductCategories and attributes are inherited from their parents up the category tree.
|
|
|
|
|
|
|
|
|
|
ProductCategoryAttributes can have many ProductCategoryAttributeOptions (constrained attributes)
|