Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Call For Price - attributes
 
carver6
Jr. Member
 
Total Posts:  4
Joined:  2008-11-15
 

Just getting started learning Magento. Need call for price feature. I have scoured the forums but have not found a solid solution yet.

What I need:
Have certain products display Call For Price rather than actual price.
Need to hide the price on specified product on all pages where the price may be displayed.
Need to still let the customer purchase the product online. Even on checkout it should say call for price, but still be able to see tax, shipping, totals, etc.

What I’ve done so far:
I’m using Magento ver. 1.2.0.1 with Modern template. I want to change this on a per product basis so I created a product attribute (Yes / No) call_for_price. The attribute is set to not show on product page so only the admin will see the attribute.

app/design/frontend/default/modern/template/catalog/product/price.phtml

From:

<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
<?php echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false?></span>
To:
<?php  // Call For Price //
  
$CFP $_product->getCallForPrice(); 
  
$CFPT "<b>Call For Price</b>"
?>
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
<?php if($CFP == 0)echo Mage::helper('core')->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ;else echo $CFPT;}?></span>

This has worked great on the product page. Now I’m having trouble getting it to work on the category or list page.

app/design/frontend/default/modern/template/catalog/product/list.phtml

# Returns the correct product ID under each product in the grid
$_product->getId()

# From another post I found this, but it always returns “No” no matter if the attribute is set or not.
$_product->getResource()->getAttribute(’call_for_price’)->getFrontend()->getValue($_product)

I’ve been trying to figure out how to grab this attribute from this page… with no luck. IDEAS anyone???

======================================
Found it! Finally.

http://www.magentocommerce.com/wiki/how-to/add-attributes-to-product-grid and it works

=======================================

Correction.. new wiki item
http://www.magentocommerce.com/wiki/price_on_application?do=show

 
Magento Community Magento Community
Magento Community
Magento Community
 
modulesformagento
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2009-11-24
Los Angeles, CA
 

Hey Carver6, we have actually just completed our “call for price” module, it removes the price and add to cart button and replaces the price with text. By default the text reads “please call for price” but it can be easily changed on each piece. I would love some feedback and hopefully this helps.

http://www.modulesformagento.com

Image Attachments
Call-for-Price_menu.jpgCall-for-Price_function.jpgm4mbox3.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
meighty
Jr. Member
 
Total Posts:  8
Joined:  2009-10-24
Bend, Oregon
 

Quick question. Does this only work on a global basis or can I select this for an individual product? This mod would work great for what I need. Only about 25% of the items in my store would use this however.

Thanks!
Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
modulesformagento
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2009-11-24
Los Angeles, CA
 

Hey Adam,

This does work on a per product basis and it allows you to set a custom message to each individual product.  One of our clients had some pieces that were too high priced so he only wanted to sell it via phone or store so those products he labeled “call for price” while he had other pieces that were very rare yet already sold out so he wanted to say “No longer Available” so with our module he was able to accomplish his goals.  If you look at the screen shots you will see the active check box and the text area to write your message.  I hope this answers your question.

 
Magento Community Magento Community
Magento Community
Magento Community
 
meighty
Jr. Member
 
Total Posts:  8
Joined:  2009-10-24
Bend, Oregon
 

That does answer my question. Thanks for the quick response!

Cheers!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177671 users|1127 users currently online|277237 forum posts