title: Product Page Smarty Variable in Prestashop
body: <p>I'm a pretty amateur to PHP and CSS, but I'm trying to edit a Prestashop 'Request a Quote' module I got for a website. Basically, I'm trying to work out if there's a Smarty variable I can use to grab the url of the product page the 'Request a Quote' button is pressed on. There seems to be some variables (I'm assuming it's based on Smarty...?) which grab the product name and description. Here's a sample of the code, showing the data the form grabs;</p>
  
  <pre><code>&lt;p class="required textarea" id="demande"&gt;
              &lt;textarea name="demande" style="width:95%;" rows="12"  {if isset($devis) &amp;&amp; ($devis-&gt;total_devis !=0 || $devis-&gt;reponse)} readonly{/if} &gt;{if isset($desc_prod) &amp;&amp; $desc_prod != null}{$desc_prod|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.demande)}{$smarty.post.demande}{elseif isset($devis)}{$devis-&gt;demande|escape:'htmlall':'UTF-8'}{/if}&lt;/textarea&gt;
  </code></pre>
  
  <p>And here's some of the $desc_prod code;</p>
  
  <pre><code>$desc_prod = null;
              if($id_prod = Tools::getValue('id_product'))
              {
                  $prod = new Product($id_prod);
                  $desc_prod = $prod-&gt;name[$this-&gt;context-&gt;language-&gt;id].' : '.$prod-&gt;description_short[$this-&gt;context-&gt;language-&gt;id];
              }
  </code></pre>
  
  <p>Am I on the right track here? Again, very amateur, self taught largely. Is there a quick and easy way for me to set up this form to grab the product's url when the button is pressed?</p>
  
  <p>Thanks guys! :)</p>