Hide > Settings, Community Poll, Compare Products

I need to hide the following:

1. Settings link (at the top of the page, next to My Account etc)

2. Community Poll block (currently in the left column of the category pages)

2. Compare Products block (currently in the left column of the category pages)

Thanks

3 answers

Profile photo of Seoki Lee 1510.00 $tone May 5, 2014
Public

Hope my answers would help:

1. To remove "Setting", please open the file \app\design\frontend\default\jm_megamalltemplate\ page\html\jmtoolbar.phtml
At line 79, remove this code;

Code:

<!-- BEGIN: QUICK ACCESS -->
<div id="jm-setting" class="quick-setting has-toggle">
	<div class="btn-toggle setting-toggle">
		<i class="fa fa-globe"></i><strong><?php echo $this->__('Setting') ?></strong>
	</div>
	<div class="inner-toggle">
		<?php echo $this->getChildHtml('store_language') ?>
		<?php echo $this->getChildHtml('custom_currency_selector') ?>
		<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('colors')->toHtml() ?>
	</div>
</div>
<!-- END: QUICK ACCESS -->

2. Remove Community Poll block, please go to your admin/CMS/Polls/click on Polls with "Status": open, switch it to close and save it.

3. Remove Compare Products block: please open the file app\design\frontend\default\jm_megamall\layout\cat alog.xml
At line 67, remove this code:

Code:

<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
#1
Profile photo of Seoki Lee 1510.00 $tone May 7, 2014
Public

To remove the link "Compare", please open file \app\design\frontend\default\jm_megamalltemplate\ catalog\product\list.phtml

at line 103, remove this code;

Code:

<?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; ?>
#3

Please login or Register to Submit Answer

Written By

Comments