[-] MO : #PSCFV-2261 Check if the id_product is set

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15194 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
jObregon
2012-05-10 17:08:42 +00:00
parent bad9d94820
commit bbf4d3c1f8

View File

@@ -23,9 +23,10 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)|escape:'htmlall':'UTF-8'}';
var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)|escape:'htmlall':'UTF-8'}';
{if isset($smarty.get.id_product)}
var favorite_products_id_product = '{$smarty.get.id_product|intval}';
{/if}
</script>