This commit is contained in:
Roman Pyrih
2025-06-23 12:58:47 +02:00
parent edab0cabb1
commit 9a6c7c9a3b
3 changed files with 9 additions and 2 deletions

View File

@@ -553,6 +553,7 @@ class PdProductAttributesList extends Module
$context->shop->id, $context->shop->id,
$r['id_product_attribute'] $r['id_product_attribute']
); );
$return[$r['id_product_attribute']]['available_date'] = $product->available_date;
} }
@@ -675,6 +676,7 @@ class PdProductAttributesList extends Module
true true
), ),
'quantity' => StockAvailable::getQuantityAvailableByProduct($id_product, 0, $id_shop), 'quantity' => StockAvailable::getQuantityAvailableByProduct($id_product, 0, $id_shop),
'available_date' => $product->available_date,
]; ];
} }

View File

@@ -4,7 +4,7 @@
{if $block_heading} {if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3> <h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if} {/if}
<table id="pdproductattributeslist_table" class="table table-striped table-bordered table-labeled tablesorter" width="100%"> <table id="pdproductattributeslist_table" class="2 table table-striped table-bordered table-labeled tablesorter" width="100%">
<thead> <thead>
<tr> <tr>
<th class="product_image sorter-false filter-false">{l s='Image' mod='pdproductattributeslist'}</th> <th class="product_image sorter-false filter-false">{l s='Image' mod='pdproductattributeslist'}</th>
@@ -73,6 +73,11 @@
<td data-column="{l s='Quantity on stock' mod='pdproductattributeslist'}" class="option_price _price"> <td data-column="{l s='Quantity on stock' mod='pdproductattributeslist'}" class="option_price _price">
<b>{if $combination.quantity <= 10 }{$combination.quantity}{else}>10{/if}</b> {l s='pcs' mod='pdproductattributeslist'} <b>{if $combination.quantity <= 10 }{$combination.quantity}{else}>10{/if}</b> {l s='pcs' mod='pdproductattributeslist'}
{if $combination.quantity == 0}
<br/>
<span class="available_data">{$combination.available_date}</span>
{/if}
</td> </td>

View File

@@ -4,7 +4,7 @@
{if $block_heading} {if $block_heading}
<h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3> <h3 class="idTabHrefShort page-product-heading">{l s='Select product combination' mod='pdproductattributeslist'}</h3>
{/if} {/if}
<table id="pdproductattributeslist_table" class="table table-striped table-bordered table-labeled tablesorter" width="100%"> <table id="pdproductattributeslist_table" class="1 table table-striped table-bordered table-labeled tablesorter" width="100%">
<thead> <thead>
<tr> <tr>