From 9a6c7c9a3bc07e4fa759ac8d6863f637de3a30f6 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Mon, 23 Jun 2025 12:58:47 +0200 Subject: [PATCH] Save --- .../pdproductattributeslist/pdproductattributeslist.php | 2 ++ .../hook/hookDisplayCustomAttributesListTable.tpl | 7 ++++++- .../views/templates/hook/hookDisplayProductTabContent.tpl | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/pdproductattributeslist/pdproductattributeslist.php b/modules/pdproductattributeslist/pdproductattributeslist.php index dde76247..fbaac627 100644 --- a/modules/pdproductattributeslist/pdproductattributeslist.php +++ b/modules/pdproductattributeslist/pdproductattributeslist.php @@ -553,6 +553,7 @@ class PdProductAttributesList extends Module $context->shop->id, $r['id_product_attribute'] ); + $return[$r['id_product_attribute']]['available_date'] = $product->available_date; } @@ -675,6 +676,7 @@ class PdProductAttributesList extends Module true ), 'quantity' => StockAvailable::getQuantityAvailableByProduct($id_product, 0, $id_shop), + 'available_date' => $product->available_date, ]; } diff --git a/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl b/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl index 2fd2a41a..1befd3c4 100644 --- a/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl +++ b/modules/pdproductattributeslist/views/templates/hook/hookDisplayCustomAttributesListTable.tpl @@ -4,7 +4,7 @@ {if $block_heading}

{l s='Select product combination' mod='pdproductattributeslist'}

{/if} - +
@@ -73,6 +73,11 @@ diff --git a/modules/pdproductattributeslist/views/templates/hook/hookDisplayProductTabContent.tpl b/modules/pdproductattributeslist/views/templates/hook/hookDisplayProductTabContent.tpl index 86577108..17a64abd 100644 --- a/modules/pdproductattributeslist/views/templates/hook/hookDisplayProductTabContent.tpl +++ b/modules/pdproductattributeslist/views/templates/hook/hookDisplayProductTabContent.tpl @@ -4,7 +4,7 @@ {if $block_heading}

{l s='Select product combination' mod='pdproductattributeslist'}

{/if} -
{l s='Image' mod='pdproductattributeslist'} {if $combination.quantity <= 10 }{$combination.quantity}{else}>10{/if} {l s='pcs' mod='pdproductattributeslist'} + + {if $combination.quantity == 0} +
+ {$combination.available_date} + {/if}
+