2016-04-13 4 views
0

Magentoのドキュメントでcatalog category apiを作成する場合、パラメータがに設定されている例はほとんどありませんが、実際には何か説明はありません!magentoのサンプルカタログを作成する

が使用されました。

$result = $client->call($session, 'catalog_category.create', array(2, array(// <<-- what is this 2 ?? 
    'name' => 'Category name', 
    'is_active' => 1, 
    'position' => 1, 
    //<!-- position parameter is deprecated, category anyway will be positioned in the end of list 
    //and you can not set position directly, use catalog_category.move instead --> 
    'available_sort_by' => 'position', 
    'custom_design' => null, 
    'custom_apply_to_products' => null, 
    'custom_design_from' => null, 
    'custom_design_to' => null, 
    'custom_layout_update' => null, 
    'default_sort_by' => 'position', 
    'description' => 'Category description', 
    'display_mode' => null, 
    'is_anchor' => 0, 
    'landing_page' => null, 
    'meta_description' => 'Category meta description', 
    'meta_keywords' => 'Category meta keywords', 
    'meta_title' => 'Category meta title', 
    'page_layout' => 'two_columns_left', 
    'url_key' => 'url-key', 
    'include_in_menu' => 1, 
))); 

誰でも知っていますか?

答えて

1

作成するカテゴリのparent_idの値です。デフォルトのMagento設定では、 "デフォルトカテゴリ" idは "ルートカタログ"の下の2です。

関連する問題