How to add products with the price "Contact for evaluation" in magento

I have a magento website.

I have the number of products to add.

But some have price as "Contact for Pricing" or "Call for Pricing" so cant to add . Because there have validation for price. 

So how can I add such products?

If there is any module for such products?

I need to display a product price such as Contact for Pricing or Call for Pricing.

if there is an extension for the "call for the price" free download?

+4
source share
2 answers

Create the Yes / No attribute for Calls For Cost. When you create products, put something in the price field to pass the check.

Now modify your template files to not show the price if its Call For Price is set to "Yes".

+3
source

Josh's answer improved a bit. Thanks to Josh for the idea of ​​using attributes!

Create the attribute code 'call_4_price' for this example. As Josh suggested, make it a yes / no attribute. The default value is None. Add it to attribute sets where you will need to hide the prices.

Find all .phtml files in which "prices and add to cart" (template> catalog> product> view.phtml, price.phtml, list.phtml, etc.)

Insert this code before the price code.

  <!-- Call For Price - begin --> <?php $attribute = $_product->getResource()->getAttribute('call_4_price'); ?> <?php $attribute_value = $attribute ->getFrontend()->getValue($_product); ?> <?php if ($attribute_value == 'Yes'): ?> //Please Call for pricing <?php else: ?> 

And this is after the add to cart button.

  <?php endif; ?> <!-- Call For Price - end --> 
+3
source

All Articles