Is there a list (cheatsheet) of the available variables for the default Search Result page?

I am wanting to change the look of it be removing the merchant info and in it's place display the lowest price text. If I removed this from the page, print drupal_render($form); it removed both the merchant and the add to cart button

CommentFileSizeAuthor
#4 price.jpg85.79 KBkrymp

Comments

rfay’s picture

Are you talking about theming? Please mention which .tpl.php you're talking about.

I would love the tpl.php to have a good header block that explained what was available. You'll need to look in hook_preprocess to see what's available (or dsm() it)

krymp’s picture

This is the page I am wanting to change around: amazon_store_search_results.tpl.php

rfay’s picture

Yeah, you can figure it out using the preprocess functions.

krymp’s picture

StatusFileSize
new85.79 KB

Ya I have devel installed and can't figure it out. All I want to do is remove the merchant section and display the price. I am attaching a snap of the area I am talking about. This seem easy enough if there was a set of variables to call from but my lack of knowledge of how it works is limiting me. :(

willvincent’s picture

Status: Active » Closed (fixed)

You can get a list of all available variables at any point in php by calling get_defined_vars().

Add the following in your template, for use with devel:

dpm(get_defined_vars());