getting product sizes

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

 

hey..

how do i display the product size in my cart?  this is used to get the quantity $this->getQty()
but what about size?

i have a size attribute, tried : 
$this->getSize()
and
$_item->getAttributeText(’size’)
and
$_item->getSize()

but no joy,

thanks
Steve

 

Try:

<?php 
/**
 * @author MagePsycho
 */
if ($_options $this->getOptionList()):
    foreach (
$_options as $_option):
        
// You need filter filter here for the size and break the loop
        
Zend_Debug::dump($_option);
    endforeach;
endif;

 Signature 

MagePsycho - Magento Freelancer
Free Modules: jQuery LightBoxes | Frontend Links Manager & more…
Commercial Modules: jQuery Sliders Pro | Custom Login Redirect Pro | Store Restrction Pro & more...

Follow me on Twitter @ magepsycho

`Reply Or Comment!
Please LogIn to Reply!