default product type id on categories table
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
<th><?= $this->Paginator->sort('product_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('attribute_type_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('enabled') ?></th>
|
||||
<th><?= 'Options' ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -29,6 +30,15 @@
|
||||
<td><?= $productCategoryVariant->hasValue('product') ? $this->Html->link($productCategoryVariant->product->name, ['controller' => 'Products', 'action' => 'view', $productCategoryVariant->product->id]) : '' ?></td>
|
||||
<td><?= $this->Number->format($productCategoryVariant->attribute_type_id) ?></td>
|
||||
<td><?= h($productCategoryVariant->enabled) ?></td>
|
||||
<td>
|
||||
<small>
|
||||
<?php
|
||||
$cnt = isset($productCategoryVariant->product_category_variant_options) && $productCategoryVariant->product_category_variant_options ? count($productCategoryVariant->product_category_variant_options) : 0;
|
||||
foreach ($productCategoryVariant->product_category_variant_options as $index => $productCategoryVariantOption) : ?>
|
||||
<?= h($productCategoryVariantOption->variant_value); ?><?= $index < ($cnt -1) ? ', ' : ''; ?>
|
||||
<?php endforeach; ?>
|
||||
</small>
|
||||
</td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['action' => 'view', $productCategoryVariant->id]) ?>
|
||||
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $productCategoryVariant->id]) ?>
|
||||
|
||||
@@ -26,5 +26,6 @@ echo $this->Form->control('parent_id', [
|
||||
'empty' => true,
|
||||
'id' => 'product_category_parent_id',
|
||||
]);
|
||||
echo $this->Form->control('default_product_type_id');
|
||||
echo $this->Form->control('enabled');
|
||||
?>
|
||||
Reference in New Issue
Block a user