質問

on my productpage i've two options. The length and the width of an product who can manually typed in. in my cart.php i want to know the length and the width. how can i get these two values?

http://imageshack.us/photo/my-images/42/bildschirmfoto20130521u.png/ (Länge in mm = length, Breite in mm = width)

Daniel

役に立ちましたか?

解決

you can fetch as below

$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'color');  
foreach ($attribute->getSource()->getAllOptions(true) as $option) {
    echo $option['value'] . ' ' . $option['label'] . "\n";
}

with attribute

for more understand please refer below Link

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top