product attributes increment was missing on form, view product attributes on view product page
This commit is contained in:
@@ -32,5 +32,26 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h4><?= __('Product Attributes') ?></h4>
|
||||
<?php if (!empty($product->product_attributes)) : ?>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<?php foreach ($product->product_attributes as $productAttribute) : ?>
|
||||
<?php if (!$productAttribute->hasValue('product_category_attribute')) {
|
||||
continue;
|
||||
} ?>
|
||||
<tr>
|
||||
<th><?= h($productAttribute->product_category_attribute->name) ?></th>
|
||||
<td>
|
||||
<?= $productAttribute->hasValue('product_category_attribute_option') ? h($productAttribute->product_category_attribute_option->attribute_label) : ''; ?>
|
||||
<?= !$productAttribute->hasValue('product_category_attribute_option') ? h($productAttribute->attribute_value) : ''; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user