Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="productEntity"
- <{if $product->getProductId()}>
- data-item_id="<{$product->getProductId()}>"
- <{/if}>
- <{if $product->getName()}>
- data-item_name="<{$product->getName()|escape}>"
- <{/if}>
- <{if $webshop->getName()}>
- data-affiliation="<{$webshop->getName()|escape}>"
- <{/if}>
- data-currency="<{$webshop->getCurrency()}>"
- data-index="<{$smarty.section.i.index}>"
- <{if $product->getBrand()}>
- data-item_brand="<{$product->getBrandName()}>"
- <{/if}>
- <{if $product->getMainCategory()}>
- <{assign var="prodmaincat" value=$product->getMainCategory()}>
- <{if $prodmaincat->getParents()}>
- <{assign var="prodmaincatparents" value=$prodmaincat->getParents()}>
- <{assign var="catlevel" value=0}>
- <{section name="parents" loop=$prodmaincatparents max=5}>
- <{math assign="catlevel" equation=x+1 x=$catlevel}>
- <{if $smarty.section.parents.first}>
- data-item_category="<{$prodmaincatparents[parents]->getName()|escape}>"
- <{else}>
- data-item_category<{$catlevel}>="<{$prodmaincatparents[parents]->getName()|escape}>"
- <{/if}>
- <{/section}>
- <{math assign="catlevel" equation=x+1 x=$catlevel}>
- data-item_category<{$catlevel}>="<{$product->getMainCategoryName()|escape}>"
- <{else}>
- data-item_category="<{$product->getMainCategoryName()|escape}>"
- <{/if}>
- <{elseif $product->getCategory()}>
- <{assign var="prodcat" value=$product->getCategory()}>
- <{if $prodcat->getParents()}>
- <{assign var="prodcatparents" value=$prodcat->getParents()}>
- <{assign var="catlevel" value=0}>
- <{section name="parents" loop=$prodcatparents max=5}>
- <{math assign="catlevel" equation=x+1 x=$catlevel}>
- <{if $smarty.section.parents.first}>
- data-item_category="<{$prodcatparents[parents]->getName()|escape}>"
- <{else}>
- data-item_category<{$catlevel}>="<{$prodcatparents[parents]->getName()|escape}>"
- <{/if}>
- <{/section}>
- <{math assign="catlevel" equation=x+1 x=$catlevel}>
- data-item_category<{$catlevel}>="<{$product->getCategoryName()|escape}>"
- <{else}>
- data-item_category="<{$product->getCategoryName()|escape}>"
- <{/if}>
- <{/if}>
- <{if $category}>
- <{if $category->getName()}>
- data-item_list_name="<{$category->getName()|escape}>"
- <{/if}>
- <{if $category->getCategoryId()}>
- data-item_list_id="<{$category->getCategoryId()}>"
- <{/if}>
- <{elseif $landing_page}>
- <{if $landing_page->getName()}>
- data-item_list_name="<{$landing_page->getName()|escape}>"
- <{/if}>
- <{if $landing_page->getLandingPageId()}>
- data-item_list_id="<{$landing_page->getLandingPageId()}>"
- <{/if}>
- <{elseif $inc == "search.html"}>
- data-item_list_name="search"
- <{else}>
- data-item_list_name="fejl-product_inner.html"
- <{/if}>
- <{if $product->getRealPrice()}>
- data-price="<{$product->getRealPrice()|number_format:2:".":""}>"
- <{/if}>
- data-quantity="1"
- >
Add Comment
Please, Sign In to add comment