Adding Stock Info On Compact List View

Hi,

Can you please teach me how to add stock information also on Compact list view ?!?

https://prnt.sc/k950ga

https://prnt.sc/k950qv

Tks

- design/themes/THEME/templates/blocks/product_list_templates/short_list.tpl

add

show_product_amount=true 

- design/themes/THEME/templates/blocks/list_templates/compact_list.tpl

add

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

to the required place

- clear cache

- check the result

- design/themes/THEME/templates/blocks/product_list_templates/short_list.tpl

add

show_product_amount=true 

- design/themes/THEME/templates/blocks/list_templates/compact_list.tpl

add

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

to the required place

- clear cache

- check the result

Thank you eComLabs!

You are welcome!

- design/themes/THEME/templates/blocks/product_list_templates/short_list.tpl

add

show_product_amount=true 

- design/themes/THEME/templates/blocks/list_templates/compact_list.tpl

add

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

to the required place

- clear cache

- check the result

Hello,

It is possible to add stock information also on cart page?

http://prntscr.com/ngnutq

https://prnt.sc/ngnvyq

Thanks

More complex changes are required in this case since stock amount is not stored in session

More complex changes are required in this case since stock amount is not stored in session

Hi Ecomlabs

It is possible to hide availability Information just for a specific category (default template ) ?

https://prnt.sc/vwg6gv

https://prnt.sc/vwgart

Thanks

Hi Ecomlabs

It is possible to hide availability Information just for a specific category (default template ) ?

https://prnt.sc/vwg6gv

https://prnt.sc/vwgart

Thanks

You can use the following condition

{if $product.main_category != 123}
    ... default code with amount here...
{/if}

where 123 - is the ID of product category. It can be found in the admin panel