Shopify Order Printer కోసం Liquid వేరియబుల్స్ మరియు ఫిల్టర్ల రిఫరెన్స్
Shopify Order Printer యాప్ను ఉపయోగించి మీ స్వంత అనుకూల టెంప్లేట్లను రూపొందించడానికి మీరు Liquidని ఉపయోగించవచ్చు. Liquidతో, మీరు వచన టెంప్లేట్లను సృష్టించవచ్చు మరియు ప్రతి ఆర్డర్ యొక్క ప్రత్యేక డేటా ఆధారంగా వాటిని రెండర్ చేయవచ్చు.
ఈ పేజీలో జాబితా చేసిన Liquid రిఫరెన్స్లు ఓపెన్-సోర్స్ వెర్షన్ Liquidకి పొడిగింపు మరియు వీటిని Shopify Order Printer యాప్లో ఉపయోగించవచ్చు. order మరియు shop లక్షణాల ఆధారంగా సమాచారాన్ని రెండర్ చేయడానికి, మీరు మీ టెంప్లేట్లను అనుకూలీకరించడానికి ఈ రిఫరెన్స్ నుండి ఆబ్జెక్ట్లు, ట్యాగ్లు మరియు ఫిల్టర్ల జాబితాను ఉపయోగించవచ్చు. మీరు ఆబ్జెక్ట్ ఫీల్డ్ల గురించిన వివరాలను తెలుసుకోవడానికి Admin GraphQL API డాక్స్ను కూడా ఉపయోగించవచ్చు.
ఈ పేజీలో
వేరియబుల్స్ మరియు లక్షణాలను ఉపయోగించడం
Shopify Order Printer టెంప్లేట్లలోని ప్రధాన డేటా ఆబ్జెక్ట్లు order మరియు shop. మీరు ఆర్డర్ లక్షణాలను యాక్సెస్ చేయడానికి order.variable_nameను ఉపయోగించవచ్చు.
సాధారణంగా ఉపయోగించే కింది ఆర్డర్ లక్షణాలను order. ప్రిఫిక్స్ లేకుండానే యాక్సెస్ చేయవచ్చు:
line_itemstax_linesfulfillmentstransactionsdiscountsrefundsshipping_methodscustomer
ఉదాహరణకు, మీరు లైన్ ఐటెమ్ల వేరియబుల్ను యాక్సెస్ చేయాలనుకుంటే, మీరు line_items లేదా order.line_itemsను ఉపయోగించవచ్చు.
Shopify Order Printerలో అందుబాటులో ఉన్న Liquid వేరియబుల్స్
కింది తరగతులు అందుబాటులో ఉన్నాయి. లక్షణాలు అక్షర క్రమంలో జాబితా చేయబడ్డాయి.
ఆర్డర్
కింది ఆర్డర్ లక్షణాలు Shopify Order Printerలో అందుబాటులో ఉన్నాయి:
attributesb2bbilling_addresscancel_reasoncancel_reason_labelcancelledcancelled_atcart_level_discount_applicationscheckout_idcheckout_payment_collection_urlcompanycompany_locationconfirmation_numbercreated_at. ఆర్డర్ ప్రాసెస్ చేసిన సమయం. ఇది GraphQL APIలోనిorder.processed_atకు సమానం. టైమ్స్టాంప్ను ఫార్మాట్ చేయడానికిdateఫిల్టర్ను ఉపయోగించండి, ఉదాహరణకు{{ order.created_at | date: "%B %e, %Y" }}తో.customerdiscounts. అన్ని తగ్గింపు రకాలు మరియు వివరాలు క్యాప్చర్ కానందున తీసివేయబడింది.order.discountsప్రాపర్టీ స్థానంలోorder.discount_applicationsభర్తీ చేయబడింది.discounts_amount. అన్ని తగ్గింపు రకాలు మరియు వివరాలు క్యాప్చర్ కానందున తీసివేయబడింది.order.discountsప్రాపర్టీ స్థానంలోorder.total_discountsభర్తీ చేయబడింది.discount_applicationsdiscounts_savings. అన్ని తగ్గింపు రకాలు మరియు వివరాలు క్యాప్చర్ చేయబడనందున నిలిపివేయబడింది.order.discountsప్రాపర్టీ-ద్వారా భర్తీ చేయబడింది.emailfeesfinancial_statusfinancial_status_labelfulfilled_line_itemsfulfillment_abortedfulfillment_statusfulfillmentsgatewayiditem_countlanding_sitelanding_site_refline_itemsline_items_subtotal_pricelocationmetafieldsnamenet_paymentnoteorder_nameorder_numberorder_status_urlpaymentpayment_detailspo_numberrefundsrequires_shippingshipping_addressshipping_methodshipping_methodsshipping_priceshopshop_namesubtotal_pricetagstax_linestax_pricetip_line_itemstotal_discountstotal_dutiestotal_landed_cost_additional_feestotal_net_amounttotal_outstandingtotal_pricetotal_refunded_amounttotal_tiptransactionsunacceptable_risksunfulfilled_line_itemsunique_gatewaysuservoid_transactions
Shop
Shopify Order Printerలో అందుబాటులో ఉన్న కింది Shop లక్షణాల జాబితాను రివ్యూ చేయండి:
accepts_gift_cardsaccount_ownerallows_discountscheckoutcheckout_requires_confirmation_stepcollections_countcontact_informationcurrencycustomer_accounts_enabledcustomer_accounts_optionaldescriptiondomainemailemail_accent_coloremail_logo_urlemail_logo_widthemail_marketingenabled_currenciesenabled_localesenabled_payment_typesfeaturesidlatitudelegal_noticelongitudemetafieldsmoney_formatmoney_with_currency_formatnamepassword_messagepermanent_domainphonepoliciesprivacy_policyproducts_countrefund_policysecure_urlshipping_policysubscription_policyterms_of_saleterms_of_servicetypesurl
LineItem
Shopify Order Printerలో అందుబాటులో ఉన్న లైన్ ఐటెమ్ లక్షణాల కింది జాబితాను సమీక్షించండి:
aggregated_updateapplied_discounts. అన్ని డిస్కౌంట్ రకాలు మరియు వివరాలు అందుబాటులో లేనందున నిలిపివేయబడింది.line_item.discountsప్రాపర్టీ అనేదిline_item.discount_allocationsతో భర్తీ చేయబడింది.current_quantitydiscount_allocationsdiscounts. అన్ని డిస్కౌంట్ రకాలు మరియు వివరాలు అందుబాటులో లేనందున నిలిపివేయబడింది.line_item.discountsప్రాపర్టీ అనేదిline_item.discount_allocationsతో భర్తీ చేయబడింది.final_line_pricefinal_pricefulfillmentfulfillment_servicegift_cardgramsgroupsidimageindexitem_updatesjson_filterkeyline_level_discount_allocationsline_level_total_discountline_price. ఆటోమేటిక్ డిస్కౌంట్లు, డిస్కౌంట్ కోడ్ల ద్వారా వచ్చే డిస్కౌంట్లు చేర్చబడనందున నిలిపివేయబడింది.line_item.line_priceప్రాపర్టీ అనేదిline_item.final_line_priceతో భర్తీ చేయబడింది.messageoptions_with_valuesoriginal_line_priceoriginal_priceprice. ఆటోమేటిక్ డిస్కౌంట్లు, డిస్కౌంట్ కోడ్ల ద్వారా వచ్చే డిస్కౌంట్లు చేర్చబడనందున నిలిపివేయబడింది.line_item.priceప్రాపర్టీ అనేదిline_item.final_priceతో భర్తీ చేయబడింది.productproduct_idpropertiesquantityrefunded_quantityrequires_shippingselling_plan_allocationskusuccessfully_fulfilled_quantitytax_linestaxabletitletotal_discount. ఆటోమేటిక్ డిస్కౌంట్లు, డిస్కౌంట్ కోడ్ల ద్వారా వచ్చే డిస్కౌంట్లు చేర్చబడనందున నిలిపివేయబడింది.line_item.total_discountప్రాపర్టీ అనేదిline_item.line_level_total_discountతో భర్తీ చేయబడింది.unit_priceunit_price_measurementurlurl_to_removevariantvariant_idvendor
ఫుల్ఫిల్మెంట్
Shopify Order Printerలో అందుబాటులో ఉన్న ఫుల్ఫిల్మెంట్ లక్షణాల కింది జాబితాను సమీక్షించండి:
created_at. టైమ్స్టాంప్ను ఫార్మాట్ చేయడానికిdateఫిల్టర్ని ఉపయోగించండి, ఉదాహరణకు,{{ fulfillment.created_at | date: "%B %e, %Y" }}తో.estimated_delivery_atfulfillment_line_itemsitem_countline_itemsrequires_shippingtracking_companytracking_numbertracking_numberstracking_urltracking_urlsupdated_at
చిరునామా
Shopify Order Printerలో అందుబాటులో ఉన్న చిరునామా లక్షణాల కింది జాబితాను సమీక్షించండి:
address1address2citycompanycountrycountry_codecountry_uppererrorsfirst_nameidlast_namenamephoneprovinceprovince_codestreetsummarytranslated_country_nametranslated_province_nameurlzip
కస్టమర్
Shopify Order Printerలో అందుబాటులో ఉన్న కస్టమర్ లక్షణాల కింది జాబితాను సమీక్షించండి:
accepts_marketingaccount_activation_urladdressesaddresses_countb2b?default_addressemailfirst_namehas_accountidlast_namelast_ordermetafieldsnamenew_addressordersorders_countpayment_methodsphonereset_password_urlsubscribe_urltagstax_exempttotal_spent
DiscountApplication
Shopify Order Printerలో అందుబాటులో ఉన్న కింది DiscountApplication లక్షణాల లిస్ట్ను రివ్యూ చేయండి:
target_selectiontarget_typetitletotal_allocated_amounttypevalue_typevalue
తగ్గింపులను ప్రింట్ చేయడం
ఆర్డర్ మొత్తానికి లేదా నిర్దిష్ట లైన్ ఐటెమ్లకు తగ్గింపులను వర్తింపజేయవచ్చు:
- ఆర్డర్-స్థాయి తగ్గింపులు: ఇవి ఆర్డర్ మొత్తానికి వర్తిస్తాయి. మీ ఆర్డర్ ఇన్వాయిస్ను ప్రింట్ చేసేటప్పుడు మీరు ఈ తగ్గింపులను కింద విడిగా ప్రదర్శించవచ్చు.
- లైన్ ఐటెమ్-స్థాయి తగ్గింపులు: ఇవి ఒక్కో ఐటెమ్కు వర్తిస్తాయి. మీరు లైన్ ఐటెమ్ విభాగంలో విడి ఐటెమ్ వివరాలను ప్రింట్ చేసేటప్పుడు ఈ తగ్గింపులను ప్రస్తావించవచ్చు.
కింది వేరియబుల్స్ ఉపయోగించి మీరు తగ్గింపుల సమాచారాన్ని యాక్సెస్ చేయవచ్చు:
order.total_discountsవాల్యూ అలాగేorder.discount_applicationsకలెక్షన్తో, ఆర్డర్కి లేదా దాని లైన్ ఐటెమ్లలో దేనికైనా వర్తింపజేసిన అన్ని తగ్గింపులను యాక్సెస్ చేయండి.line_item.line_level_total_discountవాల్యూ లేదాline_item.line_level_discount_allocationsకలెక్షన్తో లైన్ ఐటెమ్ తగ్గింపులను యాక్సెస్ చేయండి.- ఎలాంటి తగ్గింపులను వర్తింపజేయడానికి ముందున్న లైన్ ఐటెమ్ ధరను
line_item.original_priceవాల్యూతో యాక్సెస్ చేయండి. - సంబంధిత లైన్ ఐటెమ్ స్థాయి తగ్గింపులన్నింటినీ వర్తింపజేసిన తర్వాత వచ్చే లైన్ ఐటెమ్ ధరను
line_item.final_priceవాల్యూతో యాక్సెస్ చేయండి. line_item.original_line_priceమరియుline_item.final_line_priceవాల్యూలు,line_item.original_priceఅలాగేline_item.final_priceవాల్యూలనుline_item.quantityతో గుణించగా వచ్చే మొత్తానికి సమానం.- ఆర్డర్ స్థాయి తగ్గింపులను
order.cart_level_discount_applicationsకలెక్షన్తో యాక్సెస్ చేయండి.
లైన్ ఐటెమ్ స్థాయి తగ్గింపులను ప్రింట్ చేయడానికి కోడ్ బ్లాక్ ఉదాహరణ:
{% for line_item in order.line_items %}
<tr>
<td>{{ line_item.quantity }}</td>
<td>{{ line_item.title }}
{% if line_item.line_level_discount_allocations.size > 0 %}
<span class="subduedText">
{% for discount_allocation in line_item.line_level_discount_allocations %}
<br>{{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }})
{% endfor %}
</span>
{% endif %}
</td>
<td style="text-align: right;">
{% if line_item.original_price != line_item.final_price %}
<span class="subduedText"><s>{{ line_item.original_price | money }}</s></span>
{% endif %}
{{ line_item.final_price | money }}
</td>
</tr>
{% endfor %}ఆర్డర్ స్థాయి తగ్గింపులను ప్రింట్ చేయడానికి కోడ్ బ్లాక్ ఉదాహరణ:
{% for discount_application in order.cart_level_discount_applications %}
<tr>
<td colspan="2" style="text-align: right;">{% if discount_application.title %}<span class="subduedText">{{ discount_application.title }}</span>{% endif %}</td>
<td style="text-align: right;">-{{ discount_application.total_allocated_amount | money }}</td>
</tr>
{% endfor %}- తగ్గింపు రకాల గురించి అలాగే Liquidలో తగ్గింపులతో పని చేయడం గురించి మరింత తెలుసుకోండి.
DiscountAllocation
Shopify Order Printerలో అందుబాటులో ఉన్న కింది DiscountAllocation లక్షణాల లిస్ట్ను రివ్యూ చేయండి:
amountdiscount_application
Discount
Shopify Order Printerలో అందుబాటులో ఉన్న కింది Discount లక్షణాల లిస్ట్ను రివ్యూ చేయండి:
amountcodefree_shipping_discountidsavingstitletotal_amounttotal_savings
ఉత్పత్తి
Shopify Order Printerలో అందుబాటులో ఉన్న కింది ఉత్పత్తి లక్షణాల లిస్ట్ను రివ్యూ చేయండి:
as_jsonavailablecollectionscompare_at_pricecompare_at_price_maxcompare_at_price_mincompare_at_price_variescontentcreated_atdescriptionfeatured_imagefeatured_mediafirst_available_variantgift_card?handlehas_only_default_variantidimagesjson_filtermediametafieldsobject_typeoptionsoptions_by_nameoptions_with_valuespriceprice_maxprice_minprice_variespublished_atrequires_selling_planselected_or_first_available_selling_plan_allocationselected_or_first_available_variantselected_selling_planselected_selling_plan_allocationselected_variantselling_plan_groupstagstemplate_suffixtitletypeurlvariantsvendor
వేరియంట్
Shopify Order Printerలో అందుబాటులో ఉన్న వేరియంట్ లక్షణాల కింది లిస్ట్ను రివ్యూ చేయండి:
as_jsonavailablebarcodecompare_at_pricefeatured_imagefeatured_mediaidimageincominginventory_managementinventory_policyinventory_quantityjson_filtermetafieldsnext_incoming_dateoption1option2option3optionspriceproductrequires_selling_planrequires_shippingselected_selling_plan_allocationselling_plan_allocationsskustore_availabilitiestaxabletitleunit_priceunit_price_measurementurlweightweight_in_unitweight_unit
రీఫండ్
Shopify Order Printerలో అందుబాటులో ఉన్న రీఫండ్ లక్షణాల కింది లిస్ట్ను రివ్యూ చేయండి:
amountcreated_atidnoterefund_line_itemsrestocktransactions
షిప్పింగ్ లైన్
Shopify Order Printerలో అందుబాటులో ఉన్న షిప్పింగ్ లైన్ లక్షణాల కింది లిస్ట్ను రివ్యూ చేయండి:
handleidoriginal_priceprice. ధరలో ఆర్డర్ స్థాయి తగ్గింపులు చేర్చబడనందున నిలిపివేయబడింది.shipping_line.priceప్రాపర్టీ స్థానంలోshipping_line.price_with_discountsద్వారా భర్తీ చేయబడింది.price_with_discountstax_linestitle
పన్ను లైన్
Shopify Order Printerలో అందుబాటులో ఉన్న పన్ను లైన్ లక్షణాల కింది లిస్ట్ను రివ్యూ చేయండి:
priceraterate_percentagetitle
లావాదేవీ
Shopify Order Printerలో అందుబాటులో ఉన్న లావాదేవీ లక్షణాల కింది లిస్ట్ను రివ్యూ చేయండి:
amountbuyer_pending_payment_instructionsbuyer_pending_payment_noticecreated_atgatewaygateway_display_nameidkindnamepayment_detailsreceiptshow_buyer_pending_payment_instructionsstatusstatus_label
మెటాఫీల్డ్
పేరెంట్ ఆబ్జెక్ట్కు అటాచ్ చేసిన మెటాఫీల్డ్. నిర్దిష్ట ఆబ్జెక్ట్లోని మెటాఫీల్డ్ను ఎలా యాక్సెస్ చేయాలో తెలుసుకోవడానికి, మెటాఫీల్డ్ల యాక్సెస్ చూడండి.
మెటాఫీల్డ్లు బహుళ డేటా రకాలకు మద్దతు ఇస్తాయి, ఇవి మెటాఫీల్డ్లో నిల్వ చేసే సమాచార రకాన్ని నిర్ణయిస్తాయి. మెటాఫీల్డ్లను యాక్సెస్ చేయడానికి, మెటాఫీల్డ్ల కోసం యాక్సెస్ మార్గంలో రెండు పొరలు ఉంటాయి:
- నేమ్స్పేస్ - వైరుధ్యాలను నివారించడానికి మెటాఫీల్డ్ల గ్రూపింగ్,
- కీ - మెటాఫీల్డ్ పేరు.
దీనిని బట్టి, మీరు కింది సింటాక్స్తో మెటాఫీల్డ్ ఆబ్జెక్ట్ను యాక్సెస్ చేయవచ్చు: {{ resource.metafields.namespace.key }}.
నామకరణం: <object>.metafields.<namespace>.<key>. ఉదాహరణకు, order.metafields.shipping.express_delivery_status.
రకాలు:
StringArray- ఇండెక్స్ చేయడానికి[ ]ఉపయోగించండి. ఉదాహరణకు,order.metafield.shipping.express_delivery_status[0]IntegerBooleanDate
గమనిక Metaobject రకానికి మద్దతు లేదు.
మెటాఫీల్డ్లకు మద్దతు ఇచ్చే ఆబ్జెక్ట్లు:
OrderCustomerProductVariantLocation
Shopify Order Printerలో అందుబాటులో ఉన్న Liquid ఫిల్టర్లు
వినియోగం
అవుట్పుట్కు ఫిల్టర్లను అప్లై చేయడానికి, అవుట్పుట్ కర్లీ బ్రేస్ డీలిమిటర్ల లోపల {{ }} ఫిల్టర్ ఇంకా ఏదైనా ఫిల్టర్ పారామీటర్లను జోడించండి, దానికి ముందుగా పైప్ అక్షరం | ఉంచండి. కింది ఉదాహరణలో, ఉత్పత్తి (product) ఆబ్జెక్ట్, టైటిల్ (title) దాని ప్రాపర్టీ మరియు అప్కేస్ (upcase) అప్లై చేయబడుతున్న ఫిల్టర్:
{{ product.title | upcase }}product.titleకి Health potion విలువ ఉంటే, upcase ఫిల్టర్ నుండి HEALTH POTION అవుట్పుట్గా వస్తుంది.
Liquid ఫిల్టర్లను ఎలా ఉపయోగించాలి అనే వివరాల కోసం Shopify Themes Liquid సూచన నుండి ఫిల్టర్ల విభాగంను చూడండి.
అడ్రస్ ఆబ్జెక్ట్లకు అప్లై చేయాల్సిన ఫిల్టర్లు
format_address
వినియోగ ఉదాహరణల కోసం, format_address కోసం Shopify Themes Liquid డాక్యుమెంటేషన్ను చూడండి.
ఏదైనా టెక్స్ట్ / స్ట్రింగ్కు అప్లై చేయాల్సిన ఫిల్టర్లు
camelcasecamelizeencode_url_componentformat_codehandlehighlightpad_spacesparagraphizepluralizeurl_escapeurl_param_escape
వినియోగ ఉదాహరణల కోసం, స్ట్రింగ్ ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
డబ్బును సూచించే నంబర్లపై వర్తింపజేయాల్సిన ఫిల్టర్లు
moneymoney_with_currencymoney_without_currencymoney_without_trailing_zeros
డబ్బును ఫార్మాట్ చేయడానికి Shopify Order Printer, Shopify అడ్మిన్లో కాన్ఫిగర్ చేయబడిన ఇమెయిల్ నోటిఫికేషన్ల కరెన్సీ ఫార్మాటింగ్ ఎంపికలను ఉపయోగిస్తుంది.
మీరు కరెన్సీ ఫార్మాటింగ్ను మార్చవచ్చు. Shopify Order Printerలో మనీ ఫిల్టర్ల ఫార్మాటింగ్ను మార్చడానికి, Shopify అడ్మిన్లో కరెన్సీతో ఇమెయిల్, కరెన్సీ లేని ఇమెయిల్ విలువలను సెట్ చేయండి.
వినియోగ ఉదాహరణల కోసం, మనీ ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
ఆబ్జెక్ట్లను jsonకి మార్చడానికి వర్తింపజేయాల్సిన ఫిల్టర్లు
json
వినియోగ ఉదాహరణల కోసం, json ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
బరువును సూచించే నంబర్లపై వర్తింపజేయాల్సిన ఫిల్టర్లు
weightweight_with_unit
వినియోగ ఉదాహరణల కోసం, యూనిట్తో బరువు కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
ట్యాగ్లపై వర్తింపజేయాల్సిన ఫిల్టర్లు
highlight_active_taglink_to_add_taglink_to_remove_taglink_to_tag
వినియోగ ఉదాహరణల కోసం, ట్యాగ్ ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
urlలపై వర్తింపజేయాల్సిన ఫిల్టర్లు
article_img_urlasset_img_urlasset_urlcdn_asset_urlcollection_img_urlfile_img_urlfile_urlglobal_asset_urlimage_urlimg_tagimg_urllink_topayment_icon_png_urlpayment_type_img_urlpayment_type_svg_tagplaceholder_svg_tagproduct_img_urlscript_tagshopify_asset_urlstylesheet_tag
సపోర్ట్ ఉన్న మీడియా ఫిల్టర్ల వినియోగ ఉదాహరణల కోసం, మీడియా ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.
కలెక్షన్లపై వర్తింపజేయాల్సిన ఫిల్టర్లు
link_to_typelink_to_vendorsort_byurl_for_typeurl_for_vendorwithin
వినియోగ ఉదాహరణల కోసం, కలెక్షన్ ఫిల్టర్ల కోసం Shopify థీమ్ల Liquid డాక్యుమెంటేషన్ను చూడండి.