BigCommerce Stencil - 检索产品卡中的产品自定义字段

2024-01-12

我正在尝试检索每个产品的custom_fieldsBigCommerce Stencil 中类别列表页面上的数据。本文档here https://stencil.bigcommerce.com/docs/product-resources以及下面的 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 上不提供此功能?

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

Thanks


The product card现在允许将其公开。它提供了与产品关联的所有自定义字段的数组。产品卡对象的信息是here https://stencil.bigcommerce.com/docs/common-product-card-model.

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

BigCommerce Stencil - 检索产品卡中的产品自定义字段 的相关文章

随机推荐