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

Make Two Grouped Products Show The Price As 1 Qty Per Product Added Together? Instead of “Price Starting At $”
 
iMaster
Member
 
Avatar
Total Posts:  37
Joined:  2008-06-25
 

I am using “Grouped Products” to combine two separate products. On the frontend the item says “Price starting at $” and shows the price of the cheaper item out of the two.

I would like to have the frontend to show the price as 1 Qty per product added together.

For example if I have two Grouped Products:
Product A $20
Product B $50

Currently when browsing through the store, customers are shown
Starting At $ 20 [Add To Cart]

I would like it to display:
$ 70 [Add To Cart]

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Benjip
Jr. Member
 
Total Posts:  7
Joined:  2008-04-06
 

I’m after the exact same thing - anyone have any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
llit
Member
 
Total Posts:  46
Joined:  2009-07-16
 

Bueller? Bueller? Bueller?

At least it if referenced the most expensive part of the bundle, it may not look like we’re trying to commit fraud.

 
Magento Community Magento Community
Magento Community
Magento Community
 
llit
Member
 
Total Posts:  46
Joined:  2009-07-16
 

I had a look in the code and found this;

magento\app\design\frontend\default\default\template\catalog\product\price.phtml

<span class="label"><?php echo $this->__('Starting at:'?></span>

The dirtiest thing you can do is to change that Starting at to “Components from”.

Worse though, is if you really want to do the right thing and start with the largest most expensive part of the bundle, then you have the problem in the code below. Its looking to display the minimal price, and its defined up the top somewhere;

$_minimalPrice $_taxHelper->getPrice($_product$_minimalPriceValue$_simplePricesTax);

I guess you could try and define a maximal price, and then alter what is below.

<?php else: /* if (!$_product->isGrouped()): */ ?>
    <?php
    $_exclTax 
$_taxHelper->getPrice($_product$_minimalPriceValue$includingTax null);
    
$_inclTax $_taxHelper->getPrice($_product$_minimalPriceValue$includingTax true);
    
?>
    <?php 
if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
        
<div class="price-box">
            <
span class="label"><?php echo $this->__('Starting at:'?></span>
            
<?php if ($_taxHelper->displayBothPrices() && ($_exclTax !== $_inclTax)): ?>
                
<span class="price-excluding-tax">
                    <
span class="label"><?php echo Mage::helper('tax')->__('Excl. Tax:'?></span>
                    <
span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                        
<?php echo $_coreHelper->currency($_exclTaxtruefalse?>
                    
</span>
                </
span>
                <
span class="price-including-tax">
                    <
span class="label"><?php echo Mage::helper('tax')->__('Incl. Tax:'?></span>
                    <
span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                        
<?php echo $_coreHelper->currency($_inclTaxtruefalse?>
                    
</span>
                </
span>
            
<?php else: ?>
                <?php
                $_showPrice 
$_inclTax;
                if (!
$_taxHelper->displayPriceIncludingTax()) {
                    $_showPrice 
$_exclTax;
                
}
                ?>
            
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                
<?php echo $_coreHelper->currency($_showPricetruefalse?>
            
</span>
            
<?php endif; ?>
        
</div>
    
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
<?php 
endif; /* if (!$_product->isGrouped()): */ ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
llit
Member
 
Total Posts:  46
Joined:  2009-07-16
 

Actually the maximal price is defined, but perhaps its as useless, just different.

magento\app\code\core\Mage\Bundle\Model\Product\Price.php(228): public function getMaximalPrice($product)

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