first commit
This commit is contained in:
12
web/templates/x/components/block.js-add-to-favorites.tpl
Normal file
12
web/templates/x/components/block.js-add-to-favorites.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{if !$product}
|
||||
{$product = $body.product}
|
||||
{/if}
|
||||
|
||||
{$js_favorites = [
|
||||
'productId' => intval($product.id),
|
||||
'title' => "{$product.title}",
|
||||
'gtmAddToWishlist' => {get_gtm_data encode=true type='ecommerce' method='AddToWishList' data=['products' => [$product], 'listType' => $listType, 'listId' => $listId]}
|
||||
]}
|
||||
<div data-js-favorites-product="{$js_favorites|json_encode}">
|
||||
<a href="{url s=login}" class="cart-signin btn-favorites"><span class="fc icons_heart"></span><span class="text">{$favorties_text|default:"{t}Přidat mezi oblíbené{/t}"}</span></a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user