Q4 已解决: spec 模板复制模式 + $vr- 前缀隔离方案 #4
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Q4 结论
ShopXO spec 是模板级复制模式,用
$vr-前缀做命名空间隔离:插件初始化时:
→ 在 sxo_goods_spec_template 创建 "$vr-场馆" 模板
→ 商家在商品里应用此模板,spec_value COPY 到商品 spec_type
插件商品加载时:
→ 遍历 sxo_goods_spec_type
→ 识别 name 以 "$vr-" 开头的类型
→ 按 spec_value.name 去 vr_venues 表查 seat_map
→ 写入 extension_data
方案优点:
$vr-前缀)Q4: ShopXO spec_value 复用粒度是全局还是商品级?to Q4 已解决: spec 模板复制模式 + $vr- 前缀隔离方案