Availability Info For All Product List Views

how can I make products availability visible also for "grid" and "compact list" views , not just for "list without option "?

thanks

availability 1.jpg

availability 2.jpg

As for compact list

design/themes/responsive/templates/blocks/list_templates/compact_list.tpl

add

{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount nofilter}

under the following line

{$smarty.capture.$sku nofilter}

AND

design/themes/responsive/templates/blocks/product_list_templates/short_list.tpl

add

show_product_amount=true 

under the following line:

show_discount_label=false

Then clear cache and check

Grid list

design/themes/responsive/templates/blocks/list_templates/grid_list.tpl

add

{assign var=“product_amount” value=“product_amount_$obj_id”}
{$smarty.capture.$product_amount nofilter}
under the following code


{assign var=“old_price” value=“old_price_$obj_id”}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if}

                                        {assign var="price" value="price_`$obj_id`"}
                                        {$smarty.capture.$price nofilter}

                                        {assign var="clean_price" value="clean_price_`$obj_id`"}
                                        {$smarty.capture.$clean_price nofilter}

                                        {assign var="list_discount" value="list_discount_`$obj_id`"}
                                        {$smarty.capture.$list_discount nofilter}
                                    

AND

design/themes/responsive/templates/blocks/product_list_templates/products_multicolumns.tpl

add
show_product_amount=true
under the following line:
but_role=“action”
Then clear cache and check

Grid list

design/themes/responsive/templates/blocks/list_templates/grid_list.tpl

add

{assign var="product_amount" value="product_amount_`$obj_id`"}
{$smarty.capture.$product_amount nofilter}
under the following code
                                     
{assign var="old_price" value="old_price_`$obj_id`"} {if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if}
                                        {assign var="price" value="price_`$obj_id`"}
                                        {$smarty.capture.$price nofilter}

                                        {assign var="clean_price" value="clean_price_`$obj_id`"}
                                        {$smarty.capture.$clean_price nofilter}

                                        {assign var="list_discount" value="list_discount_`$obj_id`"}
                                        {$smarty.capture.$list_discount nofilter}
                                    
AND

design/themes/responsive/templates/blocks/product_list_templates/products_multicolumns.tpl

add
show_product_amount=true 
under the following line:
but_role="action"
Then clear cache and check

Thank you ! Works for me !

How about product code ? can you help me also with this issue ?

many thanks !

product code 1.jpg

product code 2.jpg