> ## Documentation Index
> Fetch the complete documentation index at: https://foliant-help.iforiti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 주문 속성 및 품목 속성

> 고객이 결제 시 또는 상품 페이지에서 입력한 선물 메시지, 배송 날짜, 각인 문구 같은 사용자 지정 필드를 인쇄합니다.

많은 스토어가 고객에게 추가 정보를 받습니다. 결제 시 배송 날짜나 선물 메시지를 받거나(주문 속성, 장바구니 속성 또는 메모 속성이라고도 합니다), 상품 페이지에서 각인 문구나 모노그램을 받습니다(품목 속성). Shopify는 이 정보를 주문과 함께 저장하며, 템플릿에서 인쇄할 수 있습니다.

## 주문 속성

`attributes`에는 주문의 사용자 지정 필드가 들어 있으며, 각 필드는 이름과 값으로 구성됩니다.

모든 필드를 인쇄합니다.

```liquid theme={null}
{% for attribute in attributes %}
  <p><strong>{{ attribute.first | escape }}:</strong> {{ attribute.last | escape }}</p>
{% endfor %}
```

이름으로 하나만 인쇄합니다. 이름은 주문에 적힌 철자와 정확히 같아야 합니다.

```liquid theme={null}
{% if attributes['Gift message'] != blank %}
  <p>{{ attributes['Gift message'] | escape }}</p>
{% endif %}
```

## 품목 속성

각 품목의 `properties`에는 해당 품목의 사용자 지정 필드가 들어 있습니다. 품목 반복문 안에서 인쇄하세요.

```liquid theme={null}
{% for line_item in line_items %}
  {{ line_item.title }}
  {% for property in line_item.properties %}
    {% unless property.last == blank %}
      <br>{{ property.first | escape }}: {{ property.last | escape }}
    {% endunless %}
  {% endfor %}
{% endfor %}
```

`property.first`는 필드 이름이고 `property.last`는 필드 값입니다.

이름이 밑줄로 시작하는 속성(예: `_bundle_id`)은 숨겨 두기 위한 것입니다. 이 속성을 제외하려면 다음과 같이 합니다.

```liquid theme={null}
{% assign first_letter = property.first | slice: 0 %}
{% unless first_letter == '_' or property.last == blank %}
  {{ property.first | escape }}: {{ property.last | escape }}
{% endunless %}
```

## 시각적 편집기에서

* **품목 표**: **행**에서 \*\*품목 속성(각인, 선물 메시지 등)\*\*을 선택하면 각 품목의 속성이 품목명 아래에 인쇄됩니다. 이름이 밑줄로 시작하는 속성과 비어 있는 속성은 제외됩니다.
* 주문 속성: 위의 반복문을 넣은 **사용자 지정 Liquid** 블록을 사용하세요.

## 알아 두기

* 고객이 입력한 내용에는 항상 `| escape`를 추가하세요. 그래야 입력한 내용이 텍스트 그대로 인쇄됩니다.
* 주문 속성 이름은 대소문자를 구분합니다. `attributes['gift message']`와 `attributes['Gift message']`는 서로 다릅니다.
* 속성이 아닌 메타필드에 저장된 데이터는 인쇄 방법이 다릅니다. [템플릿의 메타필드](https://foliant-help.iforiti.com/ko/template-editor/metafields.md)를 참고하세요.
* Bold Product Options 또는 Infinite Options에서 선택한 내용도 라인 아이템 속성입니다. 유료 추가 항목은 품목 아래에 인쇄할 수 있습니다. [상품 옵션 앱(Bold, Infinite Options)](https://foliant-help.iforiti.com/ko/templates/product-options-apps.md)을(를) 참고하세요.

## 관련 문서

* [템플릿의 품목](https://foliant-help.iforiti.com/ko/template-editor/liquid-line-items.md)
* [템플릿의 메타필드](https://foliant-help.iforiti.com/ko/template-editor/metafields.md)
* [Liquid의 조건부 콘텐츠](https://foliant-help.iforiti.com/ko/template-editor/liquid-conditional-content.md)
* [블록 참조](https://foliant-help.iforiti.com/ko/template-editor/block-catalogue.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.