Commerce.js API 响应中缺少产品属性

发布于 2025-01-17 09:43:35 字数 533 浏览 6 评论 0原文

我在发送请求以从 Commerce.js API 获取产品时遇到问题。

我无法从该服务提供的 UI 中检索为每个产品设置的属性列表。

产品属性

API 响应

API 文档,显示可以获取每个产品的属性。

否则,您能否建议任何高度可定制的 Commerce.js 替代方案?

I've had an issue when sending requests to fetch products from the Commerce.js API.

It's that I cannot retrieve the list of attributes I set for each product from the UI that this service provides.

Product Attributes

API Response

In the API docs, it is shown that it's possible to fetch the attributes of each product.

Otherwise, would you please suggest any alternative to Commerce.js that is highly customizable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

旧时浪漫 2025-01-24 09:43:35

我遇到了同样的问题。如果您使用Commerce SDK,我一开始就尝试过,但似乎它不会返回属性。取而代之的是,您可以尝试使用秘密键使用Fetch API检索产品。对我有用

I had the same problem. In case you used Commerce SDK, I tried that at first but it seems that it doesn't return the attributes. Instead you can try retrieving the products using the fetch API with the secret key. That worked for me

望她远 2025-01-24 09:43:35

确保属性本身设置为可见,默认情况下是无法获取的

“>

Make sure the Attribute itself set to Visible, it's by default Private that can't be fetched

1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文