Jump to content

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

Which Controller File Sends The $Product Variable Used In The Scroller Lists On The Home Page? Rate Topic   - - - - -

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 26 May 2020 - 08:15 AM #1

Hi, so I want to add something to the $product variable that is used by simple_list.tpl in the scroller blocks that I use on the home page before it assigns it to the tpl file. 

 

I've been able to change the $products variable before that grid_list.tpl uses in the products.search and categories.view modes because I know where to look for it. In the case where I'm stumped, it's the homepage so I don't know which file to look into. Does anyone know which php file does this?

 



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

Posted 26 May 2020 - 01:37 PM #2

Use hooks in the fn_get_products function (app/functions/fn.catalog.php)


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • bebopboy
  • Advanced Member
  • Trial users
  • Join Date: 04-Feb 20
  • 114 posts

Posted 27 May 2020 - 02:01 AM #3

That worked, thanks!