title: In Prestashop, how to get category of last product added?
body: <p>I don't have that much experience with Prestashop, php, and Smarty.
  How do I get the category of lastProductAdded?
  I am trying to make the "continue shopping" button redirect to the category of the last product added.</p>
  
  <p><code>&lt;a href="{$link-&gt;getCategoryLink($lastProductAdded.category-&gt;id)|escape:'htmlall':'UTF-8'}" class="button_large" title="{l s='Continue shopping'}"&gt;&amp;laquo; {l s='Continue shopping'}&lt;/a&gt;</code></p>
  
  <p>The following code doesn't seem to work, giving category id of 0 for some reason. (I have no idea whether it makes sense either)
  Any help would be much appreciated. Thank you!</p>
  
  <p>(The variable lastProductAdded and function getCategoryLink are already defined in-built)</p>