more product types (events, subscriptions, digital goods), photos templates index/view

This commit is contained in:
2025-11-03 23:15:31 -08:00
parent 46e8712161
commit 868f9dbcce
4 changed files with 26 additions and 5 deletions

View File

@@ -12,6 +12,7 @@
<thead>
<tr>
<th><?= $this->Paginator->sort('id') ?></th>
<th><?= $this->Paginator->sort('product_category_id') ?></th>
<th><?= $this->Paginator->sort('product_id') ?></th>
<th><?= $this->Paginator->sort('product_sku_id') ?></th>
<th><?= $this->Paginator->sort('photo_filename') ?></th>
@@ -28,8 +29,9 @@
<?php foreach ($productPhotos as $productPhoto): ?>
<tr>
<td><?= h($productPhoto->id) ?></td>
<td><?= $productPhoto->hasValue('product_category') ? $this->Html->link($productPhoto->product_category->name, ['controller' => 'ProductCategories', 'action' => 'view', $productPhoto->product_category->internal_id]) : '' ?></td>
<td><?= $productPhoto->hasValue('product') ? $this->Html->link($productPhoto->product->name, ['controller' => 'Products', 'action' => 'view', $productPhoto->product->id]) : '' ?></td>
<td><?= h($productPhoto->product_sku_id) ?></td>
<td><?= $productPhoto->hasValue('product_sku') ? $this->Html->link($productPhoto->product_sku->sku, ['controller' => 'ProductSkus', 'action' => 'view', $productPhoto->product_sku->id]) : '' ?></td>
<td><?= h($productPhoto->photo_filename) ?></td>
<td><?= h($productPhoto->primary_photo) ?></td>
<td><?= $this->Number->format($productPhoto->photo_position) ?></td>