How to theme a block with product list I'm trying to create a template for a block that I created at Views. So this View (block) has some filters in it, and if I use the default template layout lists my products as it should. My problem is that when I use a custom template, I don't know how to access to those products variables inside that block. I tried to find that variable using get_defined_vars() but was impossible because it display a huge list of vars, and yes, products are there, in an array called 'rendered_content', but I can't figure out the path to that variable in the huge list that is printed.

Please, help this desperate soul.
use devel module for better debugging option.Devel module provides dpm() which will make the array structure easy to see.When you know the exact array key where your content lies, its better to check the output with that key instead of dumping the complete vars.

so better you first do dpm(get_defined_vars());after installing devel module it will return the same what you are seeing now but in a well structure way, when you figure out the next better key of output holding the data,use dpm() on the returned array with useful key