Change HTML output of a view I have a view which displays products. The fields shown are altered via hook, and I want to add &lt;div&gt; and &lt;h3&gt;, when I find an appropriate field value. (I tried with adding style to the field in the UI, but the logic is somehow convoluted, so I would need to hard-code it.)

I need to encapsulate a complete row inside a &lt;div&gt; when some field has some value. I have tried with views-view-fields.tpl.php and views-view-unformatted.tpl.php, but they seem not to "talk to each other", so I am failing miserably. Maybe should I approach by using views_view_result() and building the HTML myself?
To theme/design the complete row, you need to use Style output template file.

Click on Theme: Information in your view, in pop-up see the last file in Style output section. Copy the name and create file with same name and save this file at sites/all/themes/YOURTHEME/templates.

Then click on Style output, copy the code and paste into the newly created file. In this file, you can add your own HTML display the result.

Hope this helps.

Thanks