> For the complete documentation index, see [llms.txt](https://docs.bogos.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bogos.io/cn/detailed-guide/customize/customize-variant-input.md).

# 自定义变体输入

在此处您可以选择产品变体向顾客展示的方式。

您有两种展示选项：**按变体展示**和**按选项展示**。

### **1. 按变体展示**

<figure><img src="/files/SWp1AzZjSom79TuQoTET" alt=""><figcaption></figcaption></figure>

此选项使用下拉菜单来选择产品变体。

您可以通过前往**默认展示** -> **选中项背景色**并更改颜色，轻松更改此小组件的背景颜色。

<figure><img src="/files/4ggq61eIbAlFpcno151v" alt=""><figcaption></figcaption></figure>

### 2. 按选项展示

<figure><img src="/files/njaJIMkKSQ9rZubwUXit" alt=""><figcaption></figcaption></figure>

您可以从两种展示选项中进行选择。

* **默认展示**：以带标签的矩形按钮形式显示变体值。

<figure><img src="/files/CwMHLms7eTKgtXBjolnK" alt=""><figcaption></figcaption></figure>

* **高级展示**：以颜色样块或图片缩略图形式显示变体。

<div data-full-width="false"><figure><img src="/files/ULDQTAhHYmka9Dtjjv4O" alt="" width="504"><figcaption></figcaption></figure></div>

如果您想自定义默认选项，只需前往**默认展示**并调整每个元素的颜色即可。

<figure><img src="/files/gtMhnzBKmsfDGo4zQf8M" alt=""><figcaption></figcaption></figure>

对于**高级展示**，您可以为每个变体集单独设置，并在颜色样块或图片缩略图之间进行选择。

<figure><img src="/files/ihSAFrrTAwrqTKDJv06K" alt=""><figcaption></figcaption></figure>

\
之后，在此**选择选项**表格中选择一个变体集。BOGOS 会自动同步并显示您 Shopify 设置中的所有变体值。<br>

<figure><img src="/files/XC9pJBjGjxv5EXFLMuBz" alt="" width="483"><figcaption></figcaption></figure>

下一步，您将逐一设置每个变体值。

* 对于**颜色样块**展示：只需为每个变体选择对应的颜色——可以输入颜色代码，也可以从颜色轮中选择。

<figure><img src="/files/MRIglqFE0VHZ4JTrVV8W" alt="" width="402"><figcaption></figcaption></figure>

* 对于**图片缩略图**展示：上传能清晰代表每个变体值的图片。这些图片大小必须小于 20KB。

<figure><img src="/files/ViPYkB0DoTOg17iCVmw5" alt="" width="375"><figcaption></figcaption></figure>

对于这两种展示类型，您都会找到三个按钮以帮助您调整设置：

* **选择选项值**：添加可能被遗漏或删除的任何变体值。
* **自定义**：使用以下选项调整变体小组件在您前台的外观。

▶ *选择尺寸*：为您的按钮或样块选择小、中或大。

▶ *选择样块形状*：在圆形和方形之间为您的样块进行选择。

▶ *在样块旁显示变体名称*：启用此选项可在每个样块旁显示变体名称。

<figure><img src="/files/Hb7LudwM7WJ7cBYutxc3" alt="" width="563"><figcaption></figcaption></figure>

如果您想配置额外的变体集，请点击**添加变体集**。所有设置步骤与上文提供的相同。

{% hint style="warning" %}
**注意：**

* 变体设置会自动应用于共享相同变体选项名称的产品。
* 每个变体集只能使用一种展示样式。
  {% endhint %}

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bogos.io/cn/detailed-guide/customize/customize-variant-input.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
