Show the products grocycode as a (hidden by default) column on /products (closes #1820)

This commit is contained in:
Bernd Bestel
2022-03-14 22:39:35 +01:00
parent 7ea9984fd3
commit 0ba1a82e01
4 changed files with 9 additions and 0 deletions

View File

@@ -124,6 +124,7 @@
<th class="allow-grouping">{{ $__t('Quantity unit stock') }}</th>
<th class="">{{ $__t('Product group') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif allow-grouping">{{ $__t('Default store') }}</th>
<th class="">{{ $__t('grocycode') }}</th>
@include('components.userfields_thead', array(
'userfields' => $userfields
@@ -206,6 +207,10 @@
{{ $store->name }}
@endif
</td>
<td>
<img data-src="{{ $U('/product/' . $product->id . '/grocycode?size=25') }}"
class="lazy">
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,