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

This commit is contained in:
jObregon
2012-05-10 17:08:42 +00:00
parent d148f60aef
commit 4dd0e82f16
@@ -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>