Dodaj datę dostępności do listy atrybutów produktów
This commit is contained in:
@@ -415,7 +415,7 @@ class PdProductAttributesList extends Module
|
||||
{
|
||||
$sql = 'SELECT pa.`id_product_attribute`, pa.`id_product`, pa.`reference`, pa.`ean13`, pa.`mpn`, pas.`weight` as weight_impact, p.`weight` as weight_base, pa.`minimal_quantity`,
|
||||
ag.`id_attribute_group`, ag.`is_color_group`, agl.`public_name` AS group_name, al.`name` AS attribute_name, al.`name` AS attribute_name_html,
|
||||
a.`id_attribute`, a.`color`
|
||||
a.`id_attribute`, a.`color`, pa.`available_date`
|
||||
|
||||
FROM `'._DB_PREFIX_.'product_attribute` pa
|
||||
INNER JOIN `'._DB_PREFIX_.'product_attribute_shop` pas ON (pas.id_product_attribute = pa.id_product_attribute AND pas.id_shop = '.(int)$id_shop.')
|
||||
@@ -554,7 +554,7 @@ class PdProductAttributesList extends Module
|
||||
$context->shop->id,
|
||||
$r['id_product_attribute']
|
||||
);
|
||||
$return[$r['id_product_attribute']]['available_date'] = $product->available_date;
|
||||
$return[$r['id_product_attribute']]['available_date'] = $r['available_date'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<b>{if $combination.quantity <= 10 }{$combination.quantity}{else}>10{/if}</b>
|
||||
{l s='pcs' mod='pdproductattributeslist'}
|
||||
|
||||
{if $combination.quantity == 0}
|
||||
{if $combination.quantity == 0 && $combination.available_date && $combination.available_date|strtotime > 0}
|
||||
<br />
|
||||
<span class="available_data">{$combination.available_date}</span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user