View Single Post
  #1  
Old 01-03-2011, 11:13 AM
 
Ayla Ayla is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 9
 

Question Add variable to homepage

I'm totally new to X-Cart but have a great deal of PHP/HTML experience.

I am trying to write some custom code to display products on the homepage (there are very few products in this store) and I have set up the debug window to show includes AND variables... but I don't seem to have access to the $products variable from the homepage.

How can I add the products array variable to the homepage so I can loop through them?

Or rather where can you set which var's are available on each page? (in case there are other pages I need to tweak)

Many thanks!
__________________
// Ayla

X-Cart 4.4.1
Reply With Quote