How to remove prices from products on home page

I am building a photo estore so each product has many prices depending on what size, paper… So I was wondering how to remove the price and also Add to Cart button from the products on my home page. I am using JM Product List module to display these products.
Thank you for your help,

2 answers

Profile photo of Css Magician 0.00 $tone December 28, 2009

Dear Heinzsight,

Copy the folder app\design\frontend\default\defaulttemplate\jooml art\jmproducts to app\design\frontend\default\jm_topaztemplate\joom lart and open file app\design\frontend\default\jm_topaztemplate\joomlart\jmproducts\list.phtml .

And then, search and remove the code :

PHP Code:

<?php echo $this->getPriceHtml($_product,true'_jmproduct'?>

After that , search and remove the code :

PHP 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 ?>


This question is now closed

Written By