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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.