SHARE
TWEET

Added out of stock paragraph to the grid

a guest Oct 12th, 2015 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Magento
  4.  *
  5.  * @category    design
  6.  * @package     meigeetheme_default
  7.  * @copyright   Copyright (c) 2012 MeigeeTeam. (http://www.meigeeteam.com)
  8.  */
  9. ?>
  10. <?php
  11. /**
  12.  * Product list template
  13.  *
  14.  * @see Mage_Catalog_Block_Product_List
  15.  */
  16. ?>
  17. <?php
  18.     $_productCollection=$this->getLoadedProductCollection();
  19.     $_helper = $this->helper('catalog/output');
  20.     $meigee_minimalism_general = MAGE::helper('ThemeOptionsMinimalism')->getThemeOptionsMinimalism('meigee_minimalism_general');
  21.     $fancybox = $meigee_minimalism_general['fancybox'];
  22.     $categoryComplete = Mage::getModel('catalog/category')->load(Mage::getModel('catalog/layer')->getCurrentCategory()->getId());
  23.     if($categoryComplete->getMeigeeGridLayout()) {
  24.         $grid = $categoryComplete->getMeigeeGridLayout();
  25.     } else {
  26.         $grid = $meigee_minimalism_general['productlisting']['grid'];
  27.     }
  28.     $helpImg = $this->helper('ThemeOptionsMinimalism/images');
  29.  
  30.     if($categoryComplete->getQuickview()) {
  31.         $quickview = $categoryComplete->getQuickview();
  32.         if($quickview == 2){$quickview = 0;}
  33.     } else {
  34.         $quickview = $meigee_minimalism_general['productlisting']['quickview'];
  35.     }
  36.     if($categoryComplete->getProductname()) {
  37.         $productname = $categoryComplete->getProductname();
  38.         if($productname == 2){$productname = 0;}
  39.     } else {
  40.         $productname = $meigee_minimalism_general['productlisting']['productname'];
  41.     }
  42.     if($categoryComplete->getProductprice()) {
  43.         $productprice = $categoryComplete->getProductprice();
  44.         if($productprice == 2){$productprice = 0;}
  45.     } else {
  46.         $productprice = $meigee_minimalism_general['productlisting']['productprice'];
  47.     }
  48.     if($categoryComplete->getAddtocart()) {
  49.         $addtocart = $categoryComplete->getAddtocart();
  50.         if($addtocart == 2){$addtocart = 0;}
  51.     } else {
  52.         $addtocart = $meigee_minimalism_general['productlisting']['addtocart'];
  53.     }
  54.     if($categoryComplete->getCompareproducts()) {
  55.         $compareproducts = $categoryComplete->getCompareproducts();
  56.         if($compareproducts == 2){$compareproducts = 0;}
  57.     } else {
  58.         $compareproducts = $meigee_minimalism_general['productlisting']['compareproducts'];
  59.     }
  60.     if($categoryComplete->getWishlist()) {
  61.         $wishlist = $categoryComplete->getWishlist();
  62.         if($wishlist == 2){$wishlist = 0;}
  63.     } else {
  64.         $wishlist = $meigee_minimalism_general['productlisting']['wishlist'];
  65.     }
  66.     $labelsoptions = $meigee_minimalism_general['productlabels'];
  67.     $productOnlyXleft = $meigee_minimalism_general['productlabels']['labelonlyxleft'];
  68.     $labelsType = $meigee_minimalism_general['productlabels']['labelview'];
  69.     $labelsPosition = $meigee_minimalism_general['productlabels']['labelsposition'];
  70. ?>
  71. <?php if(!$_productCollection->count()): ?>
  72. <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
  73. <?php else: ?>
  74. <section class="category-products">
  75.     <?php echo $this->getToolbarHtml() ?><?php if($this->getMode()!='grid'): ?>
  76.     <?php $_iterator = 0; ?>
  77.     <ol class="products-list<?php echo ' '.$labelsType.' '.$labelsPosition; ?>" id="products-list">
  78.     <?php foreach ($_productCollection as $_product): ?>
  79.         <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
  80.         <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?><?php if($labelsoptions['labelsorder'] == 'sale_new'):?> labels-sale-new<?php endif; ?>">
  81.             <?php // Product Image ?>
  82.             <div class="grid_3 alpha">
  83.                 <div class="product-img-box">
  84.                     <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new'); ?>
  85.                     <?php if (!MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new')) : ?>
  86.                     <div class="no-label-new">
  87.                     <?php endif; ?>
  88.                     <?php if($productOnlyXleft and MAGE::helper('ThemeOptionsMinimalism')->getProductOnlyXleft($_product)): ?>
  89.                         <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductOnlyXleft($_product); ?>
  90.                     <?php else: ?>
  91.                         <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'sale'); ?>
  92.                     <?php endif; ?>
  93.                     <?php if (!MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new')) : ?>
  94.                     </div>
  95.                     <?php endif; ?>
  96.                     <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><?php /* Hover Image */ echo $helpImg->getHoverImage($_product, 'small_image', 300, null); ?><img <?php echo $helpImg->getImgSources($_product, 'small_image', 300, null); ?> alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
  97.                     <?php // Fancybox
  98.                     if ($fancybox['fancybox_status'] && $fancybox['fancybox_listing'] == 1): ?>
  99.                         <a class="fancybox category-gallery" title="<?php echo $_productNameStripped; ?>" href="<?php echo $this->helper('catalog/image')->init($_product, 'small_image'); ?>"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('fancybox'); ?></a>
  100.                     <?php endif; // End Fancybox ?>
  101.                     <?php if(Mage::getStoreConfig('ajax/general/enabledpro') and $quickview){ ?>
  102.                     <div class="quick-view-holder">
  103.                         <button type="button" title="<?php echo $this->__('Quick View') ?>" class="button btn-quick-view" onclick="showOptions('<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Quick View') ?></span><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('quickview'); ?></span></button>
  104.                         <a href='<?php echo $this->getUrl('ajax/index/options',array('product_id'=>$_product->getId()));?>' class='ajax-fancybox' id='fancybox<?php echo $_product->getId()?>' style='display:none'>Test</a>
  105.                     </div>
  106.                     <?php } ?>
  107.                 </div>
  108.             </div>
  109.             <?php // Product description ?>
  110.             <div class="<?php
  111.                if(!Mage::getStoreConfig('ajax/general/enabledpro')){
  112.                    switch($this->getLayout()->getBlock('root')->getTemplate()){
  113.                        case 'page/1column.phtml':
  114.                            echo 'grid_9';
  115.                        break;
  116.                        case 'page/3columns.phtml':
  117.                            echo 'grid_3';
  118.                        break;
  119.                        default:
  120.                            echo 'grid_6';
  121.                    }
  122.                }
  123.            ?> omega right-col">
  124.                 <div class="product-shop">
  125.                     <?php if($productname): ?>
  126.                         <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
  127.                     <?php endif; ?>
  128.                     <?php if($_product->getRatingSummary()): ?>
  129.                         <?php echo $this->getReviewsSummaryHtml($_product) ?>
  130.                     <?php endif; ?>
  131.                     <?php if(!$_product->isSaleable()): ?>
  132.                         <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
  133.                     <?php endif; ?>
  134.                     <div class="desc std">
  135.                         <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
  136.                         <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
  137.                     </div>
  138.                     <?php if($productprice): ?>
  139.                         <?php echo $this->getPriceHtml($_product, true) ?>
  140.                     <?php endif; ?>
  141.                     <?php if($_product->isSaleable()): ?>
  142.                         <?php if(Mage::getStoreConfig('ajax/general/enabledpro')){ ?>
  143.                             <?php if ( !($_product->getTypeInstance(true)->hasRequiredOptions($_product) || $_product->isGrouped()) and $addtocart): ?>
  144.                                 <div class="button-holder">
  145.                                     <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocationAjax('<?php echo $this->getAddToCartUrl($_product) ?>','<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
  146.                                     <span id='ajax_loader<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span>
  147.                                 </div>
  148.                             <?php elseif($addtocart): ?>
  149.                                 <div class="button-holder">
  150.                                     <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button" onclick="showOptions('<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
  151.                                     <a href='<?php echo $this->getUrl('ajax/index/options',array('product_id'=>$_product->getId()));?>' class='ajax-fancybox' id='fancybox<?php echo $_product->getId()?>' style='display:none'>Test</a>
  152.                                 </div>
  153.                             <?php endif; ?>
  154.                         <?php }elseif($addtocart){ ?>
  155.                              <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
  156.                         <?php } ?>
  157.                     <?php endif; ?>
  158.                     <?php if(Mage::getStoreConfig('ajax/wishlistcompare/enabledpro')){?>
  159.                      <ul class="add-to-links">
  160.                         <?php if ($this->helper('wishlist')->isAllow()and $wishlist) : ?>
  161.                             <li><a href="#" onclick='ajaxWishlist("<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>","<?php echo $_product->getId()?>");return false;' class="link-wishlist"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('wishlist'); ?><span id='ajax_wishlist_loading<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span></a></li>
  162.                         <?php endif; ?>
  163.                         <?php if($_compareUrl=$this->getAddToCompareUrl($_product) and $compareproducts): ?>
  164.                             <li><span class="separator">|</span> <a href="#" onclick='ajaxCompare("<?php echo $_compareUrl ?>","<?php echo $_product->getId()?>");return false;' class="link-compare"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('compare'); ?><span id='ajax_loading<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span></a></li>
  165.                         <?php endif; ?>
  166.                     </ul>
  167.                     <?php }else{?>
  168.                     <ul class="add-to-links">
  169.                         <?php if ($this->helper('wishlist')->isAllow() and $wishlist) : ?>
  170.                             <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('wishlist'); ?></a></li>
  171.                         <?php endif; ?>
  172.                         <?php if($_compareUrl=$this->getAddToCompareUrl($_product) and $compareproducts): ?>
  173.                             <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('compare'); ?></a></li>
  174.                         <?php endif; ?>
  175.                           </ul>
  176.                     <?php } ?>
  177.                 </div>
  178.             </div>
  179.         </li>
  180.     <?php endforeach; ?>
  181.     </ol>
  182.     <script type="text/javascript">
  183.         decorateList('products-list', 'none-recursive')
  184.         <?php if(Mage::getStoreConfig('ajax/general/enabledpro')): ?>
  185.             mainContainer = jQuery('.main-container');
  186.             rightCol = jQuery('.right-col');
  187.             if(mainContainer.hasClass('col3-layout')){
  188.                 rightCol.addClass('grid_3');
  189.             }else if(mainContainer.hasClass('col1-layout')){
  190.                 rightCol.addClass('grid_9');
  191.             }else{
  192.                 rightCol.addClass('grid_6');
  193.             }
  194.     <?php endif; ?>
  195. </script>
  196.  
  197. <?php else: ?>
  198.  
  199. <?php // Grid Mode ?>
  200.  
  201. <?php $_collectionSize = $_productCollection->count() ?>
  202. <?php $_columnCount = $this->getColumnCount(); ?>
  203.  
  204. <ul class="products-grid <?php echo 'grid-'.$grid.'-columns'; echo ' '.$labelsType.' '.$labelsPosition; ?>">
  205. <?php $i=1; foreach ($_productCollection as $_product): ?>
  206.     <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
  207.         <li class="item<?php if($labelsoptions['labelsorder'] == 'sale_new'):?> labels-sale-new<?php endif; ?>">
  208.             <div class="product-container">
  209.                 <div class="product-img-box">
  210.                     <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new'); ?>
  211.                     <?php if (!MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new')) : ?>
  212.                     <div class="no-label-new">
  213.                     <?php endif; ?>
  214.                     <?php if($productOnlyXleft and MAGE::helper('ThemeOptionsMinimalism')->getProductOnlyXleft($_product)): ?>
  215.                         <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductOnlyXleft($_product); ?>
  216.                     <?php else: ?>
  217.                         <?php echo MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'sale'); ?>
  218.                     <?php endif; ?>
  219.                     <?php if (!MAGE::helper('ThemeOptionsMinimalism')->getProductLabels($_product, 'new')) : ?>
  220.                     </div>
  221.                     <?php endif; ?>
  222.                     <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><?php /* Hover Image */ echo $helpImg->getHoverImage($_product, 'small_image', 300, null); ?><img <?php echo $helpImg->getImgSources($_product, 'small_image', 300, null); ?> alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
  223.                     <?php  // Fancybox
  224.                      if ($fancybox['fancybox_status'] && $fancybox['fancybox_listing'] == 1): ?>
  225.                         <a class="fancybox category-gallery" title="<?php echo $_productNameStripped; ?>" href="<?php echo $this->helper('catalog/image')->init($_product, 'small_image'); ?>"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('fancybox'); ?></a>
  226.                     <?php endif; // End Fancybox ?>
  227.                     <?php if(Mage::getStoreConfig('ajax/general/enabledpro') and $quickview){ ?>
  228.                     <div class="quick-view-holder">
  229.                         <button type="button" title="<?php echo $this->__('Quick View') ?>" class="button btn-quick-view" onclick="showOptions('<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Quick View') ?></span><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('quickview'); ?></span></button>
  230.                         <a href='<?php echo $this->getUrl('ajax/index/options',array('product_id'=>$_product->getId()));?>' class='ajax-fancybox' id='fancybox<?php echo $_product->getId()?>' style='display:none'>Test</a>
  231.                     </div>
  232.                     <?php } ?>
  233.                 </div>
  234.                 <?php if($productname): ?>
  235.                     <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
  236.                 <?php endif; ?>
  237.                 <?php if($productprice): ?>
  238.                     <?php echo $this->getPriceHtml($_product, true) ?>
  239.                 <?php endif; ?>
  240.                 <?php if($_product->isSaleable()): ?>
  241.                     <?php if(Mage::getStoreConfig('ajax/general/enabledpro')){ ?>
  242.                         <?php if ( !($_product->getTypeInstance(true)->hasRequiredOptions($_product) || $_product->isGrouped()) and $addtocart): ?>
  243.                             <div class="button-holder">
  244.                                 <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocationAjax('<?php echo $this->getAddToCartUrl($_product) ?>','<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
  245.                                 <span id='ajax_loader<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span>
  246.                             </div>
  247.                         <?php elseif($addtocart): ?>
  248.                             <div class="button-holder">
  249.                                 <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button" onclick="showOptions('<?php echo $_product->getId()?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
  250.                                 <a href='<?php echo $this->getUrl('ajax/index/options',array('product_id'=>$_product->getId()));?>' class='ajax-fancybox' id='fancybox<?php echo $_product->getId()?>' style='display:none'>Test</a>
  251.                             </div>
  252.                         <?php endif; ?>
  253.                     <?php }elseif($addtocart){ ?>
  254.                          <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
  255.                     <?php } ?>
  256.                 <?php else: ?>
  257.                         <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
  258.                 <?php endif; ?>
  259.                 <?php if(Mage::getStoreConfig('ajax/wishlistcompare/enabledpro')){?>
  260.                  <ul class="add-to-links">
  261.                     <?php if ($this->helper('wishlist')->isAllow()and $wishlist) : ?>
  262.                         <li><a href="#" onclick='ajaxWishlist("<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>","<?php echo $_product->getId()?>");return false;' class="link-wishlist"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('wishlist'); ?><span id='ajax_wishlist_loading<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span></a></li>
  263.                     <?php endif; ?>
  264.                     <?php if($_compareUrl=$this->getAddToCompareUrl($_product) and $compareproducts): ?>
  265.                         <li><span class="separator">|</span> <a href="#" onclick='ajaxCompare("<?php echo $_compareUrl ?>","<?php echo $_product->getId()?>");return false;' class="link-compare"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('compare'); ?><span id='ajax_loading<?php echo $_product->getId()?>' class="ajax-loader-item" style='display:none'><img src='<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>' alt="" /></span></a></li>
  266.                     <?php endif; ?>
  267.                 </ul>
  268.                 <?php }else{?>
  269.                 <ul class="add-to-links">
  270.                     <?php if ($this->helper('wishlist')->isAllow() and $wishlist) : ?>
  271.                         <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('wishlist'); ?></a></li>
  272.                     <?php endif; ?>
  273.                     <?php if($_compareUrl=$this->getAddToCompareUrl($_product) and $compareproducts): ?>
  274.                         <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo MAGE::helper('ThemeOptionsMinimalism')->getIcon('compare'); ?></a></li>
  275.                     <?php endif; ?>
  276.                       </ul>
  277.                 <?php } ?>
  278.             </div>
  279.         </li>
  280.         <?php $i++; endforeach ?>
  281.     </ul>
  282.     <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
  283.  
  284. <script type="text/javascript">
  285.     jQuery(window).load(function(){
  286.         jQuery('.products-grid').isotope({
  287.             itemSelector: '.item',
  288.             resizable: true,
  289.             layoutMode : 'fitRows'
  290.         });
  291.     });
  292. </script>
  293. <?php endif; ?>
  294. <?php if(Mage::getStoreConfig('ajax/general/enabledpro')){ ?>
  295. <script type="text/javascript">
  296.     jQuery(document).ready(function(){
  297.         jQuery('.ajax-fancybox').fancybox(
  298.             {
  299.                hideOnContentClick : true,
  300.                width:600,
  301.                autoDimensions: true,
  302.                type : 'iframe',
  303.                showTitle: false,
  304.                scrolling: 'no',
  305.                afterLoad: function(){
  306.                     setTimeout(function(){
  307.                         var frameBodyHeight = jQuery('.fancybox-iframe').contents().find('body').addClass('iframe-body').height();
  308.                         if(jQuery(window).height() > frameBodyHeight+30){
  309.                             jQuery('.fancybox-inner').css('height', frameBodyHeight);
  310.                         }
  311.                     }, 1000);
  312.                 }
  313.             }
  314.         );
  315.  
  316.         /* button loader */
  317.         jQuery('.products-grid li.item .btn-cart').on('click', function(){
  318.             jQuery(this).parent().addClass('active');
  319.         });
  320.  
  321.         jQuery('.lockshow-bg').remove();
  322.     });
  323.  
  324.     function showOptions(id){
  325.         jQuery('#fancybox'+id).trigger('click');
  326.     }
  327.     function setAjaxData(data,iframe){
  328.         if(data.status == 'ERROR'){
  329.             alert(data.message);
  330.         }else{
  331.             if(jQuery('.top-cart')){
  332.                 jQuery('.top-cart').replaceWith(data.sidebar);
  333.             }
  334.             jQuery.fancybox.close();
  335.             jQuery('body').append('<div class="add-to-cart-success">' + data.message +' <a href="<?php echo $this->getUrl('checkout/cart'); ?>"><span><?php echo $this->__('Go to Shopping Cart') ?></span></a><a href="#" class="btn-remove"><i class="fa fa-times"></i></a></div>');
  336.             setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000);
  337.             jQuery('.add-to-cart-success a.btn-remove').click(function(){
  338.                 jQuery(this).parent().slideUp(500);
  339.                 return false;
  340.             });
  341.         }
  342.     }
  343.     function setLocationAjax(url,id){
  344.         url += 'isAjax/1';
  345.         url = url.replace("checkout/cart","ajax/index");
  346.         jQuery('#ajax_loader'+id).show();
  347.         try {
  348.             jQuery.ajax( {
  349.                 url : url,
  350.                 dataType : 'json',
  351.                 success : function(data) {
  352.                     jQuery('#ajax_loader'+id).hide();
  353.                     jQuery('.products-grid li.item').removeClass('active');
  354.                     setAjaxData(data,false);
  355.                 }
  356.             });
  357.         } catch (e) {
  358.         }
  359.     }
  360.     labelsHeight();
  361.     productHoverImages();
  362. </script>
  363. <?php }else{ ?>
  364. <script type="text/javascript">
  365.     jQuery('.lockshow-bg').remove();
  366. </script>
  367. <?php } ?>
  368. <div class="toolbar-bottom">
  369.     <?php echo $this->getToolbarHtml() ?>
  370. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top