diff --git a/src/Controller/ProductCategoriesController.php b/src/Controller/ProductCategoriesController.php index 848f7a6..8a2a168 100644 --- a/src/Controller/ProductCategoriesController.php +++ b/src/Controller/ProductCategoriesController.php @@ -53,7 +53,13 @@ class ProductCategoriesController extends AppController */ public function view($id = null) { - $productCategory = $this->getTable()->get($id, contain: ['ProductCatalogs', 'ParentProductCategories', 'ChildProductCategories']); + $productCategory = $this->getTable()->get($id, contain: [ + 'ProductCatalogs', + 'ParentProductCategories', + 'ChildProductCategories', + 'ProductCategoryAttributes', + 'ProductCategoryAttributes.ProductCategoryAttributeOptions', + ]); $this->set(compact('productCategory')); } diff --git a/templates/ProductCategories/view.php b/templates/ProductCategories/view.php index 7574586..e2c4669 100644 --- a/templates/ProductCategories/view.php +++ b/templates/ProductCategories/view.php @@ -68,6 +68,35 @@ +