Drupal views custom template array issue I have made a view named services which fetches the fields of content type services, fields name : services_text and services_image.
I have made a custom tpl named views-view--services.tpl.php with my own structure and want to access fields like $row['services_text'] in for each, but it comes out as undefined index, as i can figure it out, by using var_dump, that this tpl is not getting any row rather plain html string for output so I even tried with views-view-unformatted.tpl.php, but still no use. 

Kindly help.
Use views-view-fields--.tpl.php and render the field with your custom markup 

For example:

&lt;div class="product-item"&gt;
    &lt;div class="row clearfix"&gt;
      &lt;div class="product-image"&gt;&lt;?php print $fields['field_images']-&gt;content; ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row clearfix text-center"&gt;
      &lt;div class="product-attributes"&gt;&lt;?php print $fields['title']-&gt;content; ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row clearfix text-center"&gt;
      &lt;div class="product-attributes"&gt;&lt;?php print $fields['title_1']-&gt;content; ?&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row clearfix  text-center"&gt;
      &lt;div class="product-attributes price"&gt;&lt;?php print $fields['another_field']-&gt;content; ?&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;