首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BigCommerce模板-检索产品卡中的产品自定义字段

BigCommerce模板-检索产品卡中的产品自定义字段
EN

Stack Overflow用户
提问于 2016-05-26 17:34:10
回答 1查看 807关注 0票数 2

我试图在custom_fields模板中的类别列表页面中检索每个产品的BigCommerce数据。这个文档这里以及下面的JSON产品表示形式表明这是不可能的。

我很难相信这个功能会被排除在模板之外,因为它在蓝图中是可用的。

代码语言:javascript
复制
{
    "id": 691,
    "name": "Archipelago Botanicals - Pomegranate Lip Gloss",
    "url": "http://******.mybigcommerce.com/archipelago-botanicals-pomegranate-lip-gloss/",
    "brand": {
      "name": "Archipelago Botanicals"
    },
    "rating": 0,
    "availability": "",
    "summary": "Pomegranate lip gloss leaves lips hydrated, shiny and smooth. Apply liberally.Net Weight: 0.42 oz. / 12 g Mineral Oil, Polybutene, Octyidodecanol, Butylene, Ethylene, Styrene Copolymer, Ethylene, Propylene, Styrene Copolymer, C18-36 Acid Triglycerides, Fr",
    "image": {
      "data": "https://cdn3.bigcommerce.com/*****/images/stencil/{:size}/products/691/41439/arbopolipgl__77026.1464267682.jpg?c=2",
      "alt": "Archipelago Botanicals - Pomegranate Lip Gloss"
    },
    "date_added": "Apr 7th 2016",
    "qty_in_cart": 0,
    "pre_order": false,
    "has_options": false,
    "show_cart_action": false,
    "price": {
      "without_tax": {
        "formatted": "$5.00",
        "value": 5
      },
      "rrp_without_tax": {
        "formatted": "$12.50",
        "value": 12.5
      },
      "saved": {
        "formatted": "$7.50",
        "value": 7.5
      },
      "tax_label": "Tax"
    }
  },

我是不是遗漏了什么,或者这个功能在这个时候在模具上是不可用的?

有没有人想出一个创造性的解决方案来检索每个产品卡中的数据?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-02-23 18:51:34

product card现在允许公开这一点。它提供了与产品关联的所有自定义字段的数组。有关产品卡对象的信息是这里

这是一个必须在BC核心应用程序中做出的改变,修复程序于9月20日发布。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37467580

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档