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}
+