> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 使用模板批量导入规则的额外指南

## **如何查找产品ID和变体ID？**

### 查找产品ID最简单的方法：
1. 登录Shopify管理员后台
2. 进入**产品**页面并选择目标产品
3. 查看浏览器地址栏 - URL结尾为.../products/product-handle，其中/products/后面的数字即为产品ID

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_16rg52j.png)

### 查找变体ID：
1. 进入**产品**页面并选择目标变体，将跳转至变体页面
2. 查看浏览器地址栏 - URL结尾为.../products/product-handle/variants/variant-handle，其中/variants/后面的数字即为变体ID

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_gr5bij.png)

## **如何查找商品集合ID？**
1. 进入**商品集合**页面并选择目标集合
2. 查看浏览器地址栏 - URL结尾为.../collections/collection-handle，其中/collections/后面的数字即为集合ID

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_c5pk83.png)

## 如何查找库存地点ID？
1. 登录Shopify管理员后台
2. 进入**设置**页面，选择**地点**标签页
3. 选择需要查询的地点
4. 查看浏览器地址栏 - URL结尾为.../locations/location-handle，其中/locations/后面的数字即为库存地点ID

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1fu8oen.png)

## 产品/变体元字段信息设置
1. 进入**设置**页面，选择**自定义数据**标签页
2. 选择现有元字段或创建新元字段
3. 在模板中按以下格式填写字段：
   `{key: [元字段键], value: "[值1]","[值2]", label: [元字段名称]}`
   
   参数说明：
* **[元字段名称]** → "名称"字段中指定的文本
* **[元字段键]** → "命名空间和键"字段中"custom."后面的文本
* **[值]** → 为该元字段分配给各产品/变体的值

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_l5flkw.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_krnhm2.png)