【问题标题】:BigCommerce Stencil - Retrieve Product Custom Fields in Product CardBigCommerce Stencil - 检索产品卡中的产品自定义字段
【发布时间】:2016-05-26 17:34:10
【问题描述】:

我正在尝试在 BigCommerce Stencil 的类别列表页面上检索每个产品的 custom_fields 数据。此文档here 和下面的 JSON 产品表示表明这是不可能的。

我很难相信 Stencil 会忽略此功能,因为它在 Blueprint 中可用。

{
    "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"
    }
  },

我是否遗漏了什么,或者这个功能目前在 Stencil 上不可用?

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

谢谢

【问题讨论】:

  • 没错,自定义字段不会暴露给分类页面。我们有一个功能请求开放以重新引入此功能。
  • 好的,知道了。谢谢
  • @Alyss 这个已经添加了吗?
  • 是的,它有。 @DevinLuby

标签: bigcommerce


【解决方案1】:

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

这是必须在 BC 核心应用程序中进行的更改,修复程序已于 9 月 20 日发布

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多