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.
Kaiss.

2 answers

Profile photo of thangnn1510 0.00 $tone July 12, 2011
Public

Hi Kbenauto!

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

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>
									</button>
									<?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.

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

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.

#2

This question is now closed

Written By

Comments