Magento Quick View Ajax Loader

less than 1 minute read

“Quick View Ajax Loader” is an extension for the product list page in your Magento online store. Let your customers see the details of the products in your store without leaving the category page.

Compatible with Magento 1.4, Magento 1.5, Magento 1.6

Installation instructions

  • Copy the content of the repo to the Magento installation folder
  • Copy app/design/frontend/default/default/* to the active design folder
  • Copy skin/frontend/default/default/* to the active skin folder
  • Modify your list.phtml image section with the following code:
  • <p class ="product-image">
        <a href="<?php echo $this->getUrl('ajax/product/quickview/id/' . $_product->getId()) ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>" class="ajax">Gyors nézet</a>
        
        <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" class="product-image-img">
            <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(140); ?>" width="140" height="140" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" />
        </a>
    </p>
  • Add this Javascipt before the close "body" tag:
  • <script type="text/javascript" src="<?php echo $this->getSkinUrl('js/productInfo.js') ?>"></script>
    <script type="text/javascript">
    Event.observe(window, 'load', function() {
        new ProductInfo('.ajax', '.product-image', {
            'loader': "<?php echo $this->getSkinUrl('images/ajax_loader.gif')?>",
            'loadingMessage': "<?php echo $this->__('Loading') ?>"
        });
    });
    </script>

    Updated:

    Comments