Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How Do I Add “Qoute’ when price is zero, but no conflict with grouped products. 
 
jonasross
Jr. Member
 
Total Posts:  3
Joined:  2013-03-17
 

Hi !

I want to add “Ask For Qoute’ when a set a price as zero.
It works BUT I’ve encountered a problem,
when you implement this, grouped products also get a “Ask for Qoute” notation.

I’ve also found a solution for this, and that is setting the price to a certain fixed amount (this case I used 9876543.21).
Doesn’t seem like the best code for this, is there any other way?

- Ask For Qoute on certain products (- Some products can only be bought/price after a qoute, so the price can’t just stand on the website but we would like or customers to know we have those products).

Code now:

<?php if($_product->price == 9876543.21): ?>  
          
<span id="offerte"><a href="/quickrfq">Ask For Qoute.</a></span
          
<?php else: ?>  
          <?php 
echo $this->getPriceHtml($_producttrue?>
                    <?php 
if($_product->isSaleable()): ?>  
                              
                        
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart'?></span></span></button></p>
                    
<?php else: ?>
                        
<class="availability out-of-stock"><span><?php echo $this->__('Out of stock'?></span></p>
                    
<?php endif; ?>
  <?php 
endif; ?>

I’m wondering if it’s possible with an attribute that you can switch “on” or “off”, so ON if you want the products to only be available for a Qoute.
Any thoughts on this matter or any other to help me ?!

Kind regards,
Jonas R

 
Magento Community Magento Community
Magento Community
Magento Community
 
jonasross
Jr. Member
 
Total Posts:  3
Joined:  2013-03-17
 

Ok, I’ve found a solution myself.
I’ve created an attribute (POA - Price on Application).
And then call it in the list & view phtml.

<?php if ($_product->getAttributeText('poa') <> "yes"): ?>  
          <?php 
echo $this->getPriceHtml($_producttrue?>
          <?php 
else: ?>

In the else I have a link towards my Quote page (use Quick Request Qoute).
It works !

Not really update proof, cause I realy change core files, but it does the trick without to much extra code & no need for an extre expensive plug in !

 
Magento Community Magento Community
Magento Community
Magento Community
 
litaliacool
Jr. Member
 
Total Posts:  2
Joined:  2013-02-13
 

Can you please tell me greater detail how you done this.

This is actually what i have been looking for. Are you Using 1.7.0.2

Don’t understand the attributes can you please tell me settings you done,

And also which files will i need to code and where.

Thank you
Frank

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top