Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $autocomplete = $this->getAutocomplete();
- $helper = $this->helper('mageworx_searchsuiteautocomplete');
- $uenc = array('uenc'=>Mage::helper('core')->urlEncode($helper-
- >getHttpRefferer()));
- $highlightRef = ($helper->isHighlightingEnabled())?'?ref=1':'';
- $productResultFields = $helper->getProductResultFields();
- $product = $this->getProduct();
- $url = $product->getProductUrl().$highlightRef;
- ?>
- <div class="autocomplete-item">
- <?php if(in_array('product_image', $productResultFields)):?>
- <div class="item-img">
- <a href="<?php echo $url?>">
- <?php echo $_img = '<img src="'.$autocomplete-
- >getProductImageUrl($product).'"title="'.$product->getName().'" />'; ?>
- </a>
- </div>
Add Comment
Please, Sign In to add comment