title: Display pricing and add to cart button in related products Virtuemart 2.0
body: <p>I would like to display the related product pricing and have add to cart button along with each of the related products.</p>
  
  <p>Below is the code snippet from the related products page. The $field does not have any pricing available. How can I show the pricing and "add to cart" button? Thanks in advance</p>
  
  <pre><code>&lt;?php
      foreach ($this-&gt;product-&gt;customfieldsRelatedProducts as $field) {
      ?&gt;&lt;div class="product-field product-field-type-&lt;?php echo $field-&gt;field_type ?&gt;"&gt;
              &lt;span class="product-field-display"&gt;&lt;?php echo $field-&gt;display ?&gt;&lt;/span&gt;
              &lt;span class="product-field-desc"&gt;&lt;?php echo jText::_($field-&gt;custom_field_desc) ?&gt;&lt;/span&gt;
  
          &lt;/div&gt;
      &lt;?php } ?&gt; 
  </code></pre>