JM sporty, removing some blocks

Hi

I need some help to make changes in theme.

1. I want to remove rating starts from all places.

2. This all blocks
http://awesomescreenshot.com/0d02sojuad

3. Whole hover on home page
http://awesomescreenshot.com/0622sokl0c

4. This unexplainable line
http://awesomescreenshot.com/0d22solc93

5. This block
http://awesomescreenshot.com/0602som1f7

Thank you in advance. Great Themes !

2 answers

Profile photo of chavan 100.00 $tone May 13, 2014
Public

1. Replace these complete codes with your existing codes, since I have commented out some php codes

i. Go to this File: app\design\frontend\default\jm_sportytemplate\cat alog\product\list.phtml

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory    design
 * @package     base_default
 * Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_helper = $this->helper('catalog/output');
    $baseconfig =  Mage::helper("jmbasetheme")->getactiveprofile();
    if ($baseconfig) : 
            $productlistimagewidth = $baseconfig["productlistimagewidth"];
            $productlistimageheight = $baseconfig["productlistimageheight"];
            $productgriddeslenght = $baseconfig["productgriddeslenght"];
            $productgridimageheight = $baseconfig["productgridimageheight"];
            $productgridimagewidth = $baseconfig["productgridimagewidth"];
            $showlabel = $baseconfig["showlabel"];
        else :
            $productlistimagewidth = 180;
            $productlistimageheight = 180;
            $productgriddeslenght = 0;
            $productgridimageheight = 180;
            $productgridimagewidth = 180;
            $showlabel = 0;
        endif;

    
?>

<?php
/**
 * Product list template
 *
 * @see Mage_Catalog_Block_Product_List
 */
?>
<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_helper = $this->helper('catalog/output');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
    <?php echo $this->getToolbarHtml() ?>
    <?php // List mode ?>
    <?php if($this->getMode()!='grid'): ?>
    <?php $_iterator = 0; ?>
    <ol class="products-list" id="products-list">
    <?php foreach ($_productCollection as $_product): ?>
        <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
            <?php // Product Image ?>
            <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($productlistimagewidth,$productlistimageheight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>

            <?php if($_products = Mage::helper("jmcolorswatch")->getRelatedproducts($_product->getId())){  ?>
                                    <div class="productgaleries"> 
                                    <?php   
                                    
                                        ?>
                                             <?php foreach ($_products as $_item): 
                                                $_item = Mage::getModel('catalog/product')->load($_item->getId()); 
                                             ?>
                                                <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(56,56) ?>" width="56" height="62" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
                                                
                                             <?php endforeach; ?>
                                     </div>         
            <?php } ?>
            <?php // Product description ?>
            <div class="product-shop">
                <div class="f-fix">
                    <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
                    <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>

                    <?php echo $this->getReviewsSummaryHtml($_product,"summarylist", true)?>
                    
                    <?php echo $this->getPriceHtml($_product, true) ?>
                    <div class="desc std">
                        <?php $sdesct =  $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
                        <?php 
                            if (strlen($sdesct) > 200) :
                                echo strip_tags(substr($sdesct, 0, 126)).'...';
                            else : 
                                echo $sdesct;
                            endif;
                        ?>
                    </div>
                    
                    <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('View More') ?></a>
                    
                    
                </div>
                
                <div class="desc-info">
                    
                    
                    <div class="button-set">
                        <?php if($_product->isSaleable()): ?>
                            <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>
                        <?php else: ?>
                            <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
                        <?php endif; ?>
                    </div>
                    <ul class="add-to-links">
                        <?php if ($this->helper('wishlist')->isAllow()) : ?>
                            <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
                        <?php endif; ?>
                        <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
                            <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
                        <?php endif; ?>
                       
                        <?php if(Mage::helper('sendfriend')->isEnabled()): ?>
                        <li>
                            <a class="email-friend" href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a>
                        </li>
                        <?php endif ?>
                    </ul>
                
                </div>
            </div>
        </li>
    <?php endforeach; ?>
    </ol>
    <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

    <?php else: ?>

    <?php // Grid Mode ?>

    <?php $_collectionSize = $_productCollection->count() ?>
    <?php $_columnCount = $this->getColumnCount(); ?>
    <?php 
          if($baseconfig["productgridnumbercolumn"]) : 
                $_columnCount = $baseconfig["productgridnumbercolumn"];
          endif;
    ?>
    <ul class="products-grid">
    <?php $i=0; foreach ($_productCollection as $_product): ?>
            
        <?php 
                            $_rowCount = ceil($_collectionSize/$_columnCount);
                            if ($i%$_columnCount==0) : $j++; endif;
                            if ($i++%$_columnCount==0): $width = 100; endif;
                            
                            if ($_columnCount) $width = 100/$_columnCount;
                            $width = "style=\"width:{$width}%;\"";    
                            $return = false;
                            $product = Mage::getModel('catalog/product')->load($_product->getId());
                            $attribute = $product->getResource()->getAttribute('label');
                            if(is_object($attribute)){
                             
                                $_options= $attribute->getSource()->getAllOptions(true, true);
                                foreach($_options as $option){
                                      if ($option['value'] == $product->getData("label")){
                                        $class =  $option['label'];
                                      }
                                 }         
                                 $attdefaultvalue = $attribute->getDefaultValue();
                                 $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getlabel();
                                 $attributeValueName = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('label');
                                     if(strlen($attributeValue) &&  ($attdefaultvalue !== $attributeValue)) { 
                                         $labeltype = $class;   
                                         $labelname = $attributeValueName;     
                                         } 
                                         else {
                                         $labeltype = "";
                                 } 
                            }
                ?>
        
        <?php  ?>
            <li class="item <?php if ($j==$_rowCount) : echo "item-row-last"; endif; ?> <?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>" <?php echo $width; ?>>
                    <p class="product-image">
                    <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" >
                        <?php if ($labeltype && $showlabel): ?>
                            <span class="<?php echo $labeltype; ?>-label label"> <?php echo $labelname;    ?></span>        
                        <?php endif; ?>
                        <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($productgridimagewidth,$productgridimageheight); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
                    </a>
                    
                </p>
                 <?php if($_products = Mage::helper("jmcolorswatch")->getRelatedproducts($_product->getId())){  ?>
                                    <div class="productgaleries"> 
                                    <?php   
                                    
                                        ?>
                                             <?php foreach ($_products as $_item): 
                                                $_item = Mage::getModel('catalog/product')->load($_item->getId()); 
                                             ?>
                                                <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(56,56) ?>" width="56" height="62" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
                                                
                                             <?php endforeach; ?>
                                     </div>         
                <?php } ?>
                <h2 class="product-name">
                    <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>">
                        <?php 
                            if (strlen($_product->getName()) > 40) :
                                echo substr($_product->getName(),0, 36).'...';
                            else : 
                                echo $_product->getName();
                            endif;
                        ?>
                    </a>
                </h2>
                
                <?php echo $this->getPriceHtml($_product, true) ?>
                
                <?php //echo $this->getReviewsSummaryHtml($_product, true, true)?>
                
                <?php /*
                      <div class="actions">
                        <?php if ($this->helper('wishlist')->isAllow()) : ?>
                            <div class="link-wishlist"><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>"  title="Add to Wishlist"><?php echo $this->__('Wishlist') ?></a></div>
                        <?php endif; ?>
                        <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
                            <div class="link-compare"><a href="<?php echo $_compareUrl ?>"  title="Add to Compare" ><?php echo $this->__('Compare') ?></a></div>
                        <?php endif; ?>
                    <?php if($_product->isSaleable()): ?>
                        <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>
                    <?php else: ?>
                        <div class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></div>
                    <?php endif; ?>
                        
                </div>
                */ ?>
                <div class="mass-color">
                </div>
            </li>
        <?php endforeach ?>
        </ul>
        
    <?php endif; ?>

    <div class="toolbar-bottom">
        <?php echo $this->getToolbarHtml() ?>
    </div>
</div>
<?php endif; ?>

ii. Go to this File: app\design\frontend\default\jm_sportytemplate\cat alog\product\list\upsell.phtml

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory    design
 * @package     base_default
 * Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php 
    if(count($this->getItemCollection()->getItems())):
    $baseconfig =  Mage::helper("jmbasetheme")->getactiveprofile();
    $_columnCount = $baseconfig["upsellnumber"]?$baseconfig["upsellnumber"]:1;
    $baseconfig["upsellimagewidth"] = $baseconfig["upsellimagewidth"]?$baseconfig["upsellimagewidth"]:240;
    $baseconfig["upsellimageheight"] = $baseconfig["upsellimageheight"]?$baseconfig["upsellimageheight"]:160;

?>
<?php
    if ($_columnCount):
        $width = 100/$_columnCount;
        $width = "style=\"width:{$width}%;\"";  
    endif;
?>
 
 
<div class="box-collateral box-up-sell">
    <h2><?php echo $this->__('related products') ?></h2>
    <div class="category-products">
    <ul class="products-grid" id="upsell-product-table">
    <?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
    <?php $this->resetItemsIterator() ?>
    <?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
        <?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
            <?php if($_link=$this->getIterableItem()):
                $_product = $_link;
             ?>
            <li class="item">
                <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize($baseconfig["upsellimagewidth"],$baseconfig["upsellimageheight"]) ?>"  alt="<?php echo $this->htmlEscape($_link->getName()) ?>" /></a>
                <h3 class="product-name">
                    <a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>">
                        
                        <?php 
                            if (strlen($_link->getName()) > 40) :
                                echo substr($_link->getName(),0, 35).'...';
                            else : 
                                echo $_link->getName();
                            endif;
                        ?>
                    </a>
                </h3>
                
                <?php echo $this->getPriceHtml($_link, true, '-upsell') ?>
           
                <?php //echo $this->getReviewsSummaryHtml($_link, true, true)?>
                
                <?php /*
                    <div class="actions">
                            <?php if ($this->helper('wishlist')->isAllow()) : ?>
                              <div class="link-wishlist" ><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" title="<?php echo $this->__('Add to Wishlist') ?>"><?php echo $this->__('Wishlist') ?></a></div>
                            <?php endif; ?>
                            <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
                              <div class="link-compare"><a href="<?php echo $_compareUrl ?>"  title="<?php echo $this->__('Add to Compare') ?>"><?php echo $this->__('Compare') ?></a></div>
                            <?php endif; ?>
                            <?php if($_product->isSaleable()): ?>
                              <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>
                            <?php else: ?>
                              <div class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></div>
                            <?php endif; ?>
                          
                    </div>
                */ ?>
                
                 
                 <div class="mass-color"></div>
            </li>
            <?php else: ?>
            <td class="empty">&nbsp;</td>
            <?php endif; ?>
        <?php endfor; ?>
    <?php endfor; ?>
    </ul>
    </div>
    <script type="text/javascript">decorateTable('upsell-product-table')</script>
</div>
<?php endif ?>

2. Replace these complete codes with your existing codes, since I have commented out some php codes

i. Go to this File: app\design\frontend\default\jm_sportytemplate\cat alog\product\view.phtml

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory    design
 * @package     base_default
 * Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/**
 * Product view template
 *
 * @see Mage_Catalog_Block_Product_View
 * @see Mage_Review_Block_Product_View
 */
?>

<?php $_helper = $this->helper('catalog/output'); ?>
<?php $_product = $this->getProduct(); 
    $baseconfig =  Mage::helper("jmbasetheme")->getactiveprofile();
?>
<?php if($_product->isConfigurable() && Mage::helper("jmcolorswatch")->get('show')) { 
         $associtates = Mage::helper("jmcolorswatch")->getassociatedproducts($_product->getId());
         $attrcode = Mage::getModel('eav/entity_attribute')->load(983)->getAttributeCode();
         $products_arr_qty = array();  
         if(is_array($associtates)){
            foreach($associtates as $productid){
                  $product = Mage::getModel('catalog/product')->load($productid);
                  $stocklevel = Mage::getModel('cataloginventory/stock_item')->loadByProduct($productid);
                  $products_arr_qty[$product->getData($attrcode)] = $stocklevel->getQty();
                  $attribute_arr[$product->getData($attrcode)] = $product->getAttributeText($attrcode);
            }

         }
         //asort($attribute_arr);
?>
 
    <script type="text/javascript">
       
       if(<?php echo json_encode($attribute_arr); ?> != null){
       jQuery(document).ready(function() {
                jQuery("div.product-options").jmproductdetail({
                          attribute:"<?php echo $attrcode; ?>",
                          attributeid:983,
                          mainproduct:<?php echo $_product->getId(); ?>,
                          attribute_qtys:<?php echo json_encode($products_arr_qty); ?>,
                          attribute_arr:<?php echo json_encode($attribute_arr); ?>
                      });
            });
       }
     </script>  
<?php } ?>
<script type="text/javascript">
    var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
    if( jQuery ){
        jQuery( "#ja-tab-products" ).ready( function($) {
        
            $( "#ja-tab-products" ).jaContentTabs();                              
        } );
        jQuery(document).ready(function() {
            urllocation =  window.location;
            if(urllocation.toString().indexOf("#review-form")>0){
               jQuery("ul.ja-tab-navigator").find("[href='#ja-tabitem-reviewform']").trigger("click");
            }
        });
    }
</script>
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<div class="product-view">
    <div class="product-essential col2-set">
    <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
        <?php echo $this->getBlockHtml('formkey') ?>
        <div class="no-display">
            <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
            <input type="hidden" name="related_product" id="related-products-field" value="" />
        </div>
        <div class="product-img-box col-1">
            <?php echo $this->getChildHtml('media') ?>
        </div>
        <div class="product-shop col-2">
            <div class="inner">
                <div class="product-name">
                    <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
                </div>
                <?php //echo $this->getReviewsSummaryHtml($_product,"summarylist", true)?>
                <?php echo $this->getChildHtml('alert_urls') ?>
                <?php echo $this->getChildHtml('product_type_data') ?>
                <?php echo $this->getTierPriceHtml() ?>
                <?php echo $this->getChildHtml('extrahint') ?>
                <?php if (!$this->hasOptions()):?>
                    <div class="product-options-bottom">
                        <?php if($_product->isSaleable()): ?>
                            <?php echo $this->getChildHtml('addtocart') ?>
                            <?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
                                <span class="or"><?php echo $this->__('OR') ?></span>
                            <?php endif; ?>
                        <?php else: ?>
                            <div class="add-to-cart">
                                <label for="qty">Qty</label>
                                <input type="text" class="input-text qty" title="Qty" value="0" maxlength="12" id="qty" name="qty"  disabled />
                                <button class="button btn-cart-disable" title="Add to Cart" type="button"><span><span>Add to Cart</span></span></button>
                            </div>
                        <?php endif; ?>
                        
                        <?php echo $this->getChildHtml('addto') ?>
                    </div>
                    <?php echo $this->getChildHtml('extra_buttons') ?>
                <?php elseif (!$_product->isSaleable()): ?>
                    <div class="add-to-box">
                        <?php echo $this->getChildHtml('addto') ?>
                    </div>
                <?php endif; ?>
                <?php echo $this->getChildHtml('other');?>
                <?php if ($_product->isSaleable() && $this->hasOptions()):?>
                    <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
                <?php endif;?>
                <?php if ($_product->isSaleable() && $this->hasOptions()):?>
                    <div class="clearer"></div>
                    <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
                <?php endif;?>
                <?php if ($_product->getShortDescription()):?>
                    <div class="short-description">
                        <h2><?php echo $this->__('Quick Overview') ?></h2>
                        <div class="std"><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></div>
                    </div>
                <?php endif;?>
                <?php $relateds = Mage::helper("jmcolorswatch")->getRelatedproducts($_product->getId());
                    if($relateds && count($relateds)){ ?>
                    <h2><?php echo $this->__('Available Colors') ?></h2>
                    <ul class="thumnal-colors"> 
                    <?php foreach($relateds as $_item):
                        $_item = Mage::getModel('catalog/product')->load($_item->getId());
                     ?>
                            <li class="item">
                                <div class="product">
                                    <a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(87, 58) ?>" width="87" height="58" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
                                </div>
                            </li>
                    <?php endforeach ?>
                     </ul>
                <?php } ?>
                <div class="social"> 
                    <span class='st_facebook' displayText='Facebook'></span>
                    <span class='st_linkedin' displayText='LinkedIn'></span>
                    <span class='st_twitter' displayText='Tweet'></span>
                    <span class='st_sharethis' displayText='ShareThis'></span>
                    <span class='st_email' displayText='Email'></span>
                </div>
            </div>
        </div>
        <div class="clearer"></div>
    </form>
    <script type="text/javascript">
    //<![CDATA[
        var productAddToCartForm = new VarienForm('product_addtocart_form');
        productAddToCartForm.submit = function(button, url) {
            if (this.validator.validate()) {
                var form = this.form;
                var oldUrl = form.action;

                if (url) {
                   form.action = url;
                }
                var e = null;
                try {
                    this.form.submit();
                } catch (e) {
                }
                this.form.action = oldUrl;
                if (e) {
                    throw e;
                }

                if (button && button != 'undefined') {
                    button.disabled = true;
                }
            }
        }.bind(productAddToCartForm);

        productAddToCartForm.submitLight = function(button, url){
            if(this.validator) {
                var nv = Validation.methods;
                delete Validation.methods['required-entry'];
                delete Validation.methods['validate-one-required'];
                delete Validation.methods['validate-one-required-by-name'];
                if (this.validator.validate()) {
                    if (url) {
                        this.form.action = url;
                    }
                    this.form.submit();
                }
                Object.extend(Validation.methods, nv);
            }
        }.bind(productAddToCartForm);
    //]]>
    </script>
</div>
<!--Products Descriptions-->
<div class="adv-description">
    <div class="product-adv-box">
        <?php echo $this->getChildHtml('adv_product'); ?>
    </div>
    <?php echo $this->getChildHtml('description'); ?>
</div>
<?php 
    //add the customtab to the product tab
    $attribute = $_product->getResource()->getAttribute('customtab');
    if(is_object($attribute)){
        $identifier = $_product->getData("customtab");
    }
    $blockcustom =  Mage::app()->getLayout()->createBlock('cms/block')->setBlockId($identifier);
    $blockcustommodel = Mage::getModel('cms/block')->load($identifier);
    $customtitle = $blockcustommodel->getTitle();
    $customtab = $blockcustom->toHtml(); 
?>
<?php /*
<div id="ja-tab-products" class="product-collateral col2-set">
    <div class="product-tab-box col-1">
        <ul class="ja-tab-navigator clearfix">
            <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
                <li>
                    <a href="<?php echo "#ja-tab-{$alias}"?>"><?php echo $this->__($alias); ?></a>
                    <span class="arrow"> </span>
                </li>
            <?php endforeach;?>
            <?php if($product_reviews = $this->getChildHtml('product_reviews')): ?>
                <li>
                    <a href="#ja-tabitem-reviews"><?php echo $this->__('Product Reviews') ?></a>
                    <span class="arrow"> </span>
                </li>
            <?php endif; ?>    
            <?php if($review_form = $this->getChildHtml('review_form')): ?>
                <li>
                    <a href="#ja-tabitem-reviewform"><?php echo $this->__('Write Your Own Review') ?></a>
                    <span class="arrow"> </span>
                </li>
            <?php endif; ?>
            <?php if($product_additional_data = $this->getChildHtml('product_additional_data')): ?>
                <li>
                    <a href="#ja-tabitem-tags"><?php echo $this->__('Product Tags') ?></a>
                    <span class="arrow"> </span>
                </li>
            <?php endif; ?>
            <?php if($customtab): ?>
                <li>
                    <a href="#ja-tabitem-custom"><?php echo $this->__($customtitle) ?></a>
                    <span class="arrow"> </span>
                </li>
            <?php endif; ?>
        </ul>
        <div class="ja-tab-content">
            <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
                <div id="<?php echo "ja-tab-{$alias}"?>">
                    <div class="box-collateral <?php echo "box-{$alias}"?>">
                        <?php echo $html; ?>
                    </div>
                </div>
            <?php endforeach;?>
            <?php if($product_reviews): ?>
                <div id="ja-tabitem-reviews">
                    <?php echo $product_reviews ?>
                </div>
            <?php endif;?>
            <?php if($review_form): ?>
                <div id="ja-tabitem-reviewform">
                    <?php echo $review_form; ?>
                </div>
            <?php endif;?>    
            <?php if( $product_additional_data ): ?>
                <div id="ja-tabitem-tags">
                    <?php echo $product_additional_data; ?>
                </div>
            <?php endif;?>
            <?php if($customtab): ?>
                <div id="ja-tabitem-custom">
                    <?php echo $customtab; ?>
                </div>
            <?php endif ?>
        </div>
    </div>
    
</div>
*/ ?>


<?php if(($upsell_products = $this->getChildHtml('upsell_products')) && $baseconfig["showupsell"]): ?>
    <?php echo $upsell_products; ?>
<?php endif;?>
</div>

ii. Go to this File: app\design\frontend\default\jm_sportytemplate\cat alog\product\view\addto.phtml

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory    design
 * @package     base_default
 * Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>

<?php $_product = $this->getProduct(); ?>
<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>

<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
    <li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>

<?php /*
<?php
    $_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
?>
<?php if($_compareUrl) : ?>
    <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>

 <?php if ($this->canEmailToFriend()): ?>
 <li>
            <a class="email-friend" href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a>
 </li>          
<?php endif; ?>
<?php */ ?>
</ul>
#1
Profile photo of chavan 100.00 $tone May 13, 2014
Public

3. My previous post will fix this issue

4. Go to this File: /skin/frontend/default/jm_sporty/joomlart/jmmegamenu/css/jmmegamenu.css

Replace this code

Code:

.jm-megamenu ul.level0 li.mega.first a.mega { 	border-left: 1px solid #353434 }

with

Code:

.jm-megamenu ul.level0 li.mega.first a.mega { 	/* border-left: 1px solid #353434 */ }

5. Go this file: app\design\frontend\default\jm_sporty\layout\check out.xml

Replace this code

Code:

<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>

with

Code:

<!-- <block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/> -->

I have just commented out all the codes and not removed on my suggestion. so no worries, you can do these.

#2

Please login or Register to Submit Answer

Written By

Comments