How to hide or disable price information for products

Hello guys!

I need to hide or disable pricing on products, I am using Mozanis, can some one please tell me how can I hide or remove the Price line on Product details everywhere those show up?

regards!

Attachment 21614

8 answers

Profile photo of tomc 0.00 $tone May 31, 2012
Public

There are two ways you can accomplish this . . . .

1.
Within your theme, edit boxes.css (or it might be styles.css now) to remove the price on the product page.

Just set it to display:none;

2.
Within file path --> app\design\frontend\your theme pathtemplate\catalog/product/view/type/simple.phtml
you will find the code below

Code:

<?php $_product = $this->getProduct() ?>

<?php if($_product->isSaleable()): ?>
    <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
<?php else: ?>
    <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<?php echo $this->getChildHtml('product_type_data_extra') ?>
<?php echo $this->getPriceHtml($_product) ?>

Just comment the line which i have commented below

Code:

<?php $_product = $this->getProduct() ?>

<?php if($_product->isSaleable()): ?>
    <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
<?php else: ?>
    <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<?php echo $this->getChildHtml('product_type_data_extra') ?>
<?php //echo $this->getPriceHtml($_product) ?>
#1
Profile photo of Rusell Cerrato 0.00 $tone June 1, 2012
Public

Thanks Tom, I was able to perform opcion 2 to hide price for products on "Product details page" but not the main front page, since I could not locate the code on option 1..

Im prety sure i did not clarify at the beginning, my apologyze on that!

but theres one thing,, the file I commented on, wwas default.phtml, since simple.phtml its basically informative, and haves no coding to comment on..

the files located on the given path where.
configurable.phtml
default.phtml
grouped.phtml
simple.phtml (mostly comments than code)
virtual.phtml

Now my biggest challenge is to hide the price on Main default front page, (the one that apears when loading the website..
have a look at the website here,. and youll notice there are products on tabs and listed as new products, that shows its price..

http://juansikaffysucs.com/tienda/
http://juansikaffysucs.com/tienda/in…osmeticos.html

Im also wondering if procedure will also hide any product price listed on every posible screen… like listing a category..

here are some pics of what I still need to hide on default main page.

I am using Mozanis, and default theme..

thanks as always.

rgds.

Attachment 21618

#2
Profile photo of tomc 0.00 $tone June 1, 2012
Public

Perhaps try to edit the featured product .phtml file
change from:

//change from
$category_id = "25"; // category_id for "Featured Products"
$_productCollection = Mage::getResourceModel(‘catalog/product_collection’)
->addAttributeToSelect(array(‘name’, ‘price’, ‘small_image’), ‘inner’)
->addCategoryFilter(Mage::getModel(‘catalog/category’)->load($category_id));

to

$category_id = "25"; // category_id for "Featured Products"
$_productCollection = Mage::getResourceModel(‘catalog/product_collection’)
->addAttributeToSelect(array(‘name’, ‘small_image’), ‘inner’)
->addCategoryFilter(Mage::getModel(‘catalog/category’)->load($category_id));

Here is another possible solution I stumbled across when further researching this issue . . . .

http://youtu.be/LWy8yBKcNBs

http://www.magentocommerce.com/magento-connect/hide-product-price-for-guest-users-6289.html

http://www.magentocommerce.com/magen…for-price.html

#3
Profile photo of tomc 0.00 $tone June 5, 2012
Public

go to this file : app\design\frontend\default\jm_yourthemetemplate\ca talog\product\view.phtml

NOTE:
jm_yourtheme = whatever JM theme you happen to be using

Remove this code:

PHP Code:

PHP Code: <?php echo $this->getTierPriceHtml() ?>

#6
Profile photo of Rusell Cerrato 0.00 $tone June 5, 2012
Public

Hello Tom, for some odd reason, it did not work, but your post took me to this path.
app/design/frontend/base/default/template/catalog/product/view.phtml

I also try removing the code, but no success.
But I notice there is a file called, proce.phtml, so I renamed like -xxx at the end.. and

Walla!! it did work!

I hope I do not have trouble for remaning this guy latter!

thanks for your help!

#7
Profile photo of tomc 0.00 $tone June 5, 2012
Public

Glad we could finally resolve this issue for you together !!!

All the best with your continuing site development !!!

#8

Please login or Register to Submit Answer

Written By

Comments