gpt4 book ai didi

java - Magento catalogCategoryAttributeList SOAP API 调用不返回所有属性

转载 作者:行者123 更新时间:2023-11-30 09:54:07 24 4
gpt4 key购买 nike

我的目标是使用 SOAP API 调用获取目录 -> 属性 -> 管理属性管理面板部分中列出的所有属性。

当我打电话的时候

stub.catalogCategoryAttributeList(sessionId)

注意:Java、Apache Axis 用于进行此调用。在 php 中,它与此调用有关 - http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute#catalog_category_attribute.list

出于某种原因,我得到了一组有限的属性。这是它:

increment_id
parent_id
updated_at
created_at
name
description
image
meta_title
meta_keywords
meta_description
is_active
all_children
path_in_store
children
url_key
url_path
path
position
level
display_mode
landing_page
is_anchor
available_sort_by
default_sort_by
custom_design
custom_design_apply
custom_design_from
custom_design_to
page_layout
custom_layout_update

我在这里遗漏了一些主要属性,例如这里有一些与 T 恤属性相关的属性:

color
gender
size

最佳答案

我知道这个问题很老了,但仍在尝试尽可能多地发布已知答案,以使 SO 更有知识。

您得到的结果完全没问题,因为 SOAP API“catalogCategoryAttributeList”将仅输出类别属性,而不输出产品属性。<​​/p>

要获取所有目录产品属性,您需要调用“catalogProductAttributeList”SOAP API,提到了 here .

希望对您有所帮助。

关于java - Magento catalogCategoryAttributeList SOAP API 调用不返回所有属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3510960/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com