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

@@ -26,13 +26,18 @@
<th><?= __('Id') ?></th>
<td><?= h($productPhoto->id) ?></td>
</tr>
<tr>
<th><?= __('Product Category') ?></th>
<td><?= $productPhoto->hasValue('product_category') ? $this->Html->link($productPhoto->product_category->name, ['controller' => 'ProductCategories', 'action' => 'view', $productPhoto->product_category->internal_id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Product') ?></th>
<td><?= $productPhoto->hasValue('product') ? $this->Html->link($productPhoto->product->name, ['controller' => 'Products', 'action' => 'view', $productPhoto->product->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Product Sku Id') ?></th>
<td><?= h($productPhoto->product_sku_id) ?></td>
<th><?= __('SKU') ?></th>
<td><?= $productPhoto->hasValue('product_sku') ? $this->Html->link($productPhoto->product_sku->sku, ['controller' => 'ProductSkus', 'action' => 'view', $productPhoto->product_sku->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Photo Filename') ?></th>
@@ -54,10 +59,18 @@
<th><?= __('Deleted') ?></th>
<td><?= h($productPhoto->deleted) ?></td>
</tr>
<tr>
<th><?= __('Primary Category Photo') ?></th>
<td><?= $productPhoto->primary_category_photo ? __('Yes') : __('No'); ?></td>
</tr>
<tr>
<th><?= __('Primary Photo') ?></th>
<td><?= $productPhoto->primary_photo ? __('Yes') : __('No'); ?></td>
</tr>
<tr>
<th><?= __('Primary SKU Photo') ?></th>
<td><?= $productPhoto->primary_sku_photo ? __('Yes') : __('No'); ?></td>
</tr>
<tr>
<th><?= __('Enabled') ?></th>
<td><?= $productPhoto->enabled ? __('Yes') : __('No'); ?></td>