Available since date in product view

Hello guys,

i want to show the available since date in the product feature section of the product views. But i only get the date of today back. Can anybody help me?

I tried to implement the code

<div class="ty-product-feature">
				<div class="ty-product-feature__label">{__("available_since")}:</div>
				<div class="ty-product-feature__value">
					{$product_data.avail_since|date_format:"`$settings.Appearance.date_format`"}
				</div>

in design/themes/vivashop/templates/views/products/components/product_features.tpl

Best regards,
Ronny

Please try to add as a hook, it’s a better solution on long term

add file:
design/themes/[THEME_NAME]/templates/addons/[ADDON_NAME]/hooks/products/brand.post.tpl

with content:

{if $product.avail_since}
<div class="ty-product-feature">
    <div class="ty-product-feature__label">{__("available_since")}:</div>
    <div class="ty-product-feature__value">
        {$product.avail_since|date_format:"`$settings.Appearance.date_format`"}
    </div>
</div>
{/if}

and result should be:

I hope the above is useful to you.

Thank you, that worked. But how can i create a hook, if the real file is affected in design/themes/vivashop/templates/views/products/components/product_features.tpl ?