#if($advancedsearch) #set($hits = $advancedsearch) $context.putPageValue("hits",$hits) #end
#if($print == true) #foreach($product in $hits) #set($pricestr = "") #if($product.price) #set($price = $product.price) #set($idx = $price.indexOf(".")) #if($idx == -1) #set($pricestr = "$${price}.00") #else #set($len = $price.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr = "$${price}0") #else #set($pricestr = "$${price}") #end #end #end #set($pricestr2 = "") #if($product.futureprice) #set($price2 = $product.futureprice) #set($idx = $price2.indexOf(".")) #if($idx == -1) #set($pricestr2 = "$${price2}.00") #else #set($len = $price2.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr2 = "$${price2}0") #else #set($pricestr2 = "$${price2}") #end #end #end #set($pricestr3 = "") #if($product.xmasprice) #set($price3 = $product.xmasprice) #set($idx = $price3.indexOf(".")) #if($idx == -1) #set($pricestr3 = "$${price3}.00") #else #set($len = $price3.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr3 = "$${price3}0") #else #set($pricestr3 = "$${price3}") #end #end #end #end #else #foreach($product in $hits.getPageOfHits()) #set($pricestr = "") #if($product.price) #set($price = $product.price) #set($idx = $price.indexOf(".")) #if($idx == -1) #set($pricestr = "$${price}.00") #else #set($len = $price.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr = "$${price}0") #else #set($pricestr = "$${price}") #end #end #end #set($pricestr2 = "") #if($product.futureprice) #set($price2 = $product.futureprice) #set($idx = $price2.indexOf(".")) #if($idx == -1) #set($pricestr2 = "$${price2}.00") #else #set($len = $price2.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr2 = "$${price2}0") #else #set($pricestr2 = "$${price2}") #end #end #end #set($pricestr3 = "") #if($product.xmasprice) #set($price3 = $product.xmasprice) #set($idx = $price3.indexOf(".")) #if($idx == -1) #set($pricestr3 = "$${price3}.00") #else #set($len = $price3.length()) #set($diff = $len - $idx) #if ($diff == 2) #set($pricestr3 = "$${price3}0") #else #set($pricestr3 = "$${price3}") #end #end #end #end #end #if($print == true) #else $context.putPageValue("targetdiv","search-results-pages") $context.putPageValue("resultsPage","/${applicationid}/customers/products/detailstablepages.html?oemaxlevel=1&") $pages.include("/${applicationid}/customers/products/pages.html",$context) #end