title: How to get $this->getAddToCartUrl($product) in magento
body: <p>In my magento application created a phtml page in template/page/ folder..</p>
  
  <p>Here displayed a products...Then there is a need for displaying</p>
  
  <pre><code>$this-&gt;getAddToCartUrl($product)
  </code></pre>
  
  <p>But it return null value...that means no value returned it.....</p>
  
  <p>How can i get it in my phtml page .......</p>
  
  <p>This is the html code:</p>
  
  <pre><code>&lt;input id="url_&lt;?php echo $_iterator;?&gt;" name="url_$_iterator;" type="text" value="&lt;?php echo $this-&gt;getAddToCartUrl($product) ?&gt;"&gt;
  </code></pre>
  
  <p>anyboady have any solution....</p>