Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Adding Stock Info On Compact List View Rate Topic   - - - - -

 
  • victorb
  • Senior Member
  • Members
  • Join Date: 29-Oct 12
  • 165 posts

Posted 21 July 2018 - 04:55 AM #1

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

 

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18498 posts

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • victorb
  • Senior Member
  • Members
  • Join Date: 29-Oct 12
  • 165 posts

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!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18498 posts

Posted 24 July 2018 - 06:06 AM #4

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.