문제

i have tow attributes described in the image bellow :

enter image description here

i wanna know how to get value of it

________
_________
_________

Thanks !

도움이 되었습니까?

해결책

First load the product model:

$product = Mage::getModel('catalog/product')->load(<product_id>);

then use:

$allowCustomPrice = $product->getAttributeText('allow_custom_price');

and

$minPrice = $product->getMinPrice();

Note: I am asuming, that you will replace with original product id, and attribute codes are "allow_custom_price" and "min_price" respectively.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top