1
Magento 1.9 API SOAP v1SOAP v1中product_atribute.create的錯誤參數Magento
我真的需要幫助!我厭倦了試圖解決這個問題...
問題是當我嘗試撥打product_attribute.create。
$arr = array('id_text',array(
'frontend_input' => 'Voltage',
'default_value' => '1',
'is_configurable' => 0,
'used_in_product_listing' => 0,
'is_visible_on_front' => 0,
'is_comparable' => 0,
'is_used_for_promo_rules' => 0,
'is_required' => 0,
'scope' => 'store',
'is_unique' => 0,
'is_searchable' => 0,
'attribute_code' => '12345',
'is_visible_in_advanced_search' => 0,
'frontend_label' => array('store_id' => '1', 'label' => '220V')
));
try {
$result = $soap->call($session, 'product_attribute.create', $arr);
} catch (SoapFault $e) {
echo '<p style="color:red;">'.$e -> getMessage().'</p>';
return false;
}
結果返回沒什麼並停止執行,或當我刪除ID(「id_text」)返回102 - 無效所需的參數