> ## 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/hi/template-editor/metafields.md) देखें।
* Bold Product Options या Infinite Options से चुने गए विकल्प भी लाइन आइटम प्रॉपर्टी होते हैं; उनके कीमत वाले ऐड-ऑन आइटम के नीचे प्रिंट हो सकते हैं। देखें [उत्पाद विकल्प ऐप (Bold, Infinite Options)](https://foliant-help.iforiti.com/hi/templates/product-options-apps.md)।

## संबंधित लेख

* [टेम्पलेट में लाइन आइटम](https://foliant-help.iforiti.com/hi/template-editor/liquid-line-items.md)
* [टेम्पलेट में मेटाफ़ील्ड](https://foliant-help.iforiti.com/hi/template-editor/metafields.md)
* [Liquid में शर्त आधारित सामग्री](https://foliant-help.iforiti.com/hi/template-editor/liquid-conditional-content.md)
* [ब्लॉक संदर्भ](https://foliant-help.iforiti.com/hi/template-editor/block-catalogue.md)


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