Guest User

Untitled

a guest
Oct 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. $autocomplete = $this->getAutocomplete();
  3. $helper = $this->helper('mageworx_searchsuiteautocomplete');
  4. $uenc = array('uenc'=>Mage::helper('core')->urlEncode($helper-
  5. >getHttpRefferer()));
  6. $highlightRef = ($helper->isHighlightingEnabled())?'?ref=1':'';
  7. $productResultFields = $helper->getProductResultFields();
  8. $product = $this->getProduct();
  9. $url = $product->getProductUrl().$highlightRef;
  10. ?>
  11. <div class="autocomplete-item">
  12. <?php if(in_array('product_image', $productResultFields)):?>
  13. <div class="item-img">
  14. <a href="<?php echo $url?>">
  15. <?php echo $_img = '<img src="'.$autocomplete-
  16. >getProductImageUrl($product).'"title="'.$product->getName().'" />'; ?>
  17. </a>
  18. </div>
Add Comment
Please, Sign In to add comment