Order Printer 앱에서 Shopify Order Printer로 마이그레이션
Shopify Order Printer의 Liquid 적용은 원래의 Order Printer와 약간 다릅니다. 템플릿을 마이그레이션하려면 기존 템플릿에서 코드를 수동으로 복사하여 새 앱에 붙여넣고 이 가이드에 설명된 대로 필요한 조정을 해야 합니다. 템플릿에 추가된 모든 사용자 지정 CSS도 전송되고 새 앱에서 조정해야 합니다.
이 페이지의 정보
글로벌 네임스페이스에서 제거되는 주문 특성
주문 특성에 액세스하기 위해 order.
로 접두어를 붙입니다. 예를 들어 billing_address
는 이제 order.billing_address
로 액세스됩니다.
편의를 위해 일반적으로 사용되는 여러 주문 속성은 order.
접두사 없이 계속 액세스할 수 있습니다.
-
line_items
-
tax_lines
-
fulfillments
-
transactions
-
discounts
-
refunds
-
shipping_methods
-
customer
이러한 변수는 fulfillments
또는 order.fulfillments
등으로 액세스할 수 있습니다.
필드 사용 중지
최신 Shopify 데이터 모델에 따라 아래 단락에 제공되는 교체 또는 해결책으로 몇 가지 개체의 여러 필드의 이름을 변경하거나 사용을 중지했습니다. 템플릿이 필드에 액세스하는 경우 제공된 교체 필드 또는 코드 조각으로 교체하세요.
주문
구현 차이:
-
line_items
. 환불된 품목은 line_items 컬렉션에 포함되지 않습니다.refunds.<each>.refunded_line_items
를 통해 환불된 품목에 액세스하세요.
교체 항목이 제공되어 사용 중지된 필드입니다.
-
credit_card
. 주문의 각 거래를 기반으로 결제 세부 정보를 사용합니다:transactions.each.payment_details
-
current_shipping_price
. 대신shipping_price
를 사용하세요. -
date
. 대신created_at
를 사용하세요. -
gateways
. 대신unique_gateways
또는transactions.<each>.gateway
를 사용하세요. -
order_currency
. 대신currency
를 사용하세요. -
processed_at
. 대신created_at
를 사용하세요. -
payment_transactions
. where 또는 루프 및if
가 포함된 Liquid 구문에서 종류 및 상태에 대해order.transactions
을 필터링합니다. -
refund_transactions
. where 또는 루프 및if
가 포함된 Liquid 구문에서 종류 및 상태에 대해order.transactions
을 필터링합니다. -
shipping_line
.shipping_methods | first
을(를) 사용합니다. -
shipping_lines
.shipping_methods
을(를) 사용합니다. -
show_line_item_taxes
.tax_lines.size > 0
을 수행합니다. 템플릿의 첫 부분에 변수로 정의하고 여러 번 참조할 수 있습니다:{% assign show_line_item_taxes = tax_lines.size > 0 %}
. -
total_tax
.tax_price
을(를) 사용합니다. -
total_paid
.net_payment
을(를) 사용합니다.
LineItem
교체 항목이 제공되어 사용 중지된 필드입니다.
-
fulfillable_quantity
.quantity - successfully_fulfilled_quantity
을(를) 사용합니다. -
fulfilled
.quantity == successfully_fulfilled_quantity
조건을 계산합니다. -
name
.title
을(를) 사용합니다. -
product_title
.product.title
을(를) 사용합니다. -
unit_discount
.quantity ? total_iscount / quantity : 0
을 계산합니다. -
variant_title
.variant.title
을(를) 사용합니다. -
weight
.grams
을(를) 사용합니다.
주문 처리
교체 항목이 제공되어 사용 중지된 필드입니다.
-
date
.created_at
을(를) 사용합니다.
Shop
교체 항목이 제공되어 사용 중지된 필드입니다.
-
owner
-account_owner.name
을 사용합니다.
다음 필드의 경우, shop.address.<field_name>
로 참조하세요.
-
address
-shop.address.address1
을 사용합니다. -
address2
-shop.address.address2
을 사용합니다. -
city
-shop.address.city
을 사용합니다. -
country
-shop.address.city
을 사용합니다. -
country_code
-shop.address.country_code
을 사용합니다. -
province
-shop.address.province
을 사용합니다. -
province_code
-shop.address.province_code
을 사용합니다. -
zip
-shop.address.zip
을 사용합니다.
주소
교체 항목이 제공되어 사용 중지된 필드입니다.
-
latitude
-address
가location
에서 참조된 경우,location
개체 자체에서 경도를 사용할 수 있습니다. -
Longitude
-address
가location
에서 참조된 경우,location
개체 자체에서 경도를 사용할 수 있습니다.
환불
교체 항목이 제공되어 사용 중지된 필드입니다.
-
date
.created_at
을(를) 사용합니다.
ShippingLine
교체 항목이 제공되어 사용 중지된 필드입니다.
-
current_price
.price
을(를) 사용합니다. -
price
.original_price
을(를) 사용합니다.
Transaction
제거된 필드:
-
authorization
-
message
-
test
이형 상품
교체 항목이 제공되어 사용 중지된 필드입니다.
-
grams
.weight
을(를) 사용합니다.
필터 사용 중지
교체 항목이 제공되어 사용 중지된 필드입니다.
-
files_url
.file_url
을(를) 사용합니다. -
payment_method
,payment_methods
. transaction.gateway_display_name 필드를 주문 거래에 사용합니다. 결제 방법을 더 이상{credit card, debit card, bank transfer}
등의 특정 유형으로 범주화할 수 없습니다. 이전 Order Printer는 현재 작동 중인 전자결제 대행사의 작은 하위 집합만 이 범주로 매핑했습니다. 전자결제 대행사 공급업체는 고객 측에서 사용하는 결제 방법 유형을 관리합니다.