문제

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