Jump to content

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

How $Items Is Assigned To The Products Block Tpl File Rate Topic   - - - - -

 

Posted 15 October 2015 - 08:30 AM #1

How $items is assigned to the responsive/templates/block/products/products.tpl

 

Where do we assign items for products tpl file.

where is this file called and how to show only selected products.

 

{include file="blocks/list_templates/products_list.tpl"
products=$items
no_sorting="Y"
obj_prefix="`$block.block_id`000"
no_pagination=true

....

}



 
  • abugasiem
  • Newbie
  • Trial users
  • Join Date: 23-Mar 17
  • 6 posts

Posted 10 April 2017 - 07:12 AM #2

I need the answer for this question too, but I'm sure it's related to the blocks schema.



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

Posted 10 April 2017 - 07:53 AM #3

I need the answer for this question too, but I'm sure it's related to the blocks schema.

 

Right. if the function is not specified, the system uses fn_get_[object_name] function. It should return array the first element of which is assigned to the template as $items variable


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 руб.