remove add to cart from Product List

Hi fellers,
is there any quick way to remove the add to cart option from the product for B2B purpus ?
In advance thanks for your quick help.

2 answers

Profile photo of thangnn1510 0.00 $tone July 12, 2011

Hi Kbenauto!

In order to remove the option you can try removing this code:


<?php if($_product->isSaleable()){ ?>
									<button class="form-button" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')">
										<span><?php echo $this->helper("catalog")->__('Add to Cart') ?></span>
									<?php } else { ?>
									<div class="out-of-stock"><?php echo $this->helper("catalog")->__('Out of stock') ?></div>
									<?php } ?>

in file list.phtml under folder app\design\frontend\default\your_themetemplate\jo omlart\jmproducts.

Profile photo of kaiss benhadjsalem 0.00 $tone July 12, 2011

Thanks for your help,
I did not tryed yet, but do you think that will remove the button from all the site.
If for example i compare two product, that will be removed two ?
In advance thanks for your help.


This question is now closed

Written By