我试图在custom_fields模板中的类别列表页面中检索每个产品的BigCommerce数据。这个文档这里以及下面的JSON产品表示形式表明这是不可能的。
我很难相信这个功能会被排除在模板之外,因为它在蓝图中是可用的。
{
"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"
}
},我是不是遗漏了什么,或者这个功能在这个时候在模具上是不可用的?
有没有人想出一个创造性的解决方案来检索每个产品卡中的数据?
谢谢
发布于 2017-02-23 18:51:34
product card现在允许公开这一点。它提供了与产品关联的所有自定义字段的数组。有关产品卡对象的信息是这里。
这是一个必须在BC核心应用程序中做出的改变,修复程序于9月20日发布。
https://stackoverflow.com/questions/37467580
复制相似问题