how to remove compare, add to shoping cart and interests lists on product display

Hello guys

My customer asked me to remove the:

  1. add to cart
  2. compare
  3. interests lists

from all posible product display..

how can I simply remove or hide those fields?

heres a screenshot for what i need to remove or hide.

thanks to all.

rgds..

Attachment 22118

11 answers

Profile photo of chavan 100.00 $tone July 1, 2012
Public

To remove compare from sidebar

Go to this Url: app\design\frontend\default\jm_mozanis\layout\cata log.xml

Replace this code

Code:

<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>

With

Code:

<!--<block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>-->

To remove add to cart compare link and interest lists

Go to this Url : app\design\frontend\default\jm_mozanistemplate\ca talog\product\list.phtml

Replace this code

Code:

<div class="actions">
                        <?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: ?>
                            <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
                        <?php endif; ?>
                        <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->__('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->__('Compare') ?></a></li>
                            <?php endif; ?>
                        </ul>
                    </div>

With

Code:

<?php /*?><div class="actions">
                        <?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: ?>
                            <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
                        <?php endif; ?>
                        <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->__('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->__('Compare') ?></a></li>
                            <?php endif; ?>
                        </ul>
                    </div><?php */?>

Note: If you Find my Post useful please click on the Thanks Icon

#1
Profile photo of Rusell Cerrato 0.00 $tone July 1, 2012
Public

Thanks Chavan!
the first one worked well.

however the seccod instruction did not.
would there be some other place where those links and buttons are called.

here is the site url. http://juansikaffysucs.com

you will notice that below each product, there is the "add to cart" button, "interests list" and "compare" links.

thanks for your help! rgds.

#2
Profile photo of Rusell Cerrato 0.00 $tone July 1, 2012
Public

I also found this file

app/design/frontend/default/jm_mozanis/template/catalog/product/view.phtml

and looks like there are some calls for this links and buttons, however I really dont know if yes or not. so Im afraid to make a mess.

#4
Profile photo of Rusell Cerrato 0.00 $tone July 1, 2012
Public

Hello Chavan.

I finally found the source of those codes..

actually JA Mozanis, uses the JA Products extention on the front page, as product display lists., therefore, also rules the way products will be shown on front page.. (my guess )

so I whent to here.. /app/design/frontend/default/jm_mozanis/template/joomlart/jmproducts/list.phtml
and edited the blocks

<?php if ($this->helper(‘wishlist’)->isAllow()) : ?>
<li><a href="<?php echo $this->helper(‘wishlist’)->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__(‘ ‘) ?></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->__(‘ ‘) ?></a></li>
<?php endif; ?>

that replaced the "wishlist" for " " same for the "compare"

I also did this to hide the "add to cart" button.

<!--
<button class="button btn-cart" onclick="setLocation(‘<?php echo $this->getAddToCartUrl($_product) ?>’)">
<span><?php echo $this->helper("catalog")->__(‘ ‘) ?></span>
</button>
-->

But I still cannot hide the links of "wishlist" and "compare" on a single product view screen..

Any idea where can I hide that?

best regards!

#5
Profile photo of chavan 100.00 $tone July 2, 2012
Public

Try this one

This page for Product View page.

/app/design/frontend/default/jm_mozanis/template/catalog/product/view.phtml

This page for Product Listings page.

/app/design/frontend/default/jm_mozanis/template/catalog/product/list.phtml

please archive these 2 files and attached to you next reply. I will fix and upload it again

Note: If you Find my Post useful please click on the Thanks Icon

#6
Profile photo of chavan 100.00 $tone July 2, 2012
Public

All things listed here

  1. add to cart
  2. compare
  3. interests lists

is solved. I hope you did not clear your cache and checked it. check again and confirm.

If not please send me the Url of where you see those links

Note: If you Find my Post useful please click on the Thanks Icon

#10

This question is now closed

Written By

Comments