Advertisement
NicolaiTeglskovDK

ShopOrama Feed Part

Jun 4th, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 0.40 KB | None | 0 0
  1. <{section name="i" loop=$products}>
  2.     <{assign var="productcat" value=$products[i]->getMainCategory()}>
  3.     <item>
  4.         <g:google_product_category><{if $productcat}>
  5.             <{$productcat->getMetaValue("google_product_category")}>
  6.             <{else}>182
  7.         <{/if}></g:google_product_category>
  8.         <g:product_type><{if $productcat}>
  9.             <{$productcat->getName()|escape}>
  10.             <{else}>missing Category
  11.         <{/if}></g:product_type>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement