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