0
我在嘗試獲取產品的屬性時遇到問題,但只返回NULL。getAllowAttributes this Returning NULL - Magento
我想以下幾點:
<? php
require 'app/Mage.php';
$app = Mage::app('default');
try {
$id = '4';
$product = Mage::getModel('catalog/product')->load($id);
$_attributes = $product->getAllowAttributes();
var_dump($_attributes);
} Catch(Exception $e){
echo $e->getMessage();
}
?>
我不知道,如果是缺乏的東西我的產品,如果你真的不得不在配置產品的東西,請讓我知道你應該有什麼。
謝謝
謝謝你,終於爲我工作 –