Hi,
Can you please teach me how to add stock information also on Compact list view ?!?
Tks
Posted 21 July 2018 - 04:55 AM #1
Hi,
Can you please teach me how to add stock information also on Compact list view ?!?
Tks
Posted 23 July 2018 - 06:45 AM #2
- 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
Posted 23 July 2018 - 01:39 PM #3
- 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!
Posted 24 July 2018 - 06:06 AM #4
You are welcome!
Posted 25 April 2019 - 10:09 AM #5
- 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?
Thanks
Posted 25 April 2019 - 01:13 PM #6
More complex changes are required in this case since stock amount is not stored in session
Posted 05 December 2020 - 05:34 PM #7
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 ) ?
Thanks
Posted 07 December 2020 - 05:11 AM #8
Hi Ecomlabs
It is possible to hide availability Information just for a specific category (default template ) ?
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