Kargo yöntemine göre içerik gösterme
Bu sayfanın yazdırılma zamanı: Jul 26, 2024. Geçerli sürüm için https://help.shopify.com/tr/manual/orders/status-tracking/customize-order-status/show-content-based-on-shipping-method adresini ziyaret edin.
Bir sipariş için belirli bir kargo yöntemi kullanıldığında, sipariş durumu sayfasında içerik göstermek için checkout.shipping_method.title
değişkeniyle birlikte bir koşul komut dosyası kullanabilirsiniz.
Örneğin, fiziksel mağazanızın yeterince yakınında oturan müşteriler için mağazadan teslim seçeneği sunabilirsiniz. Mağazadan teslim alım seçeneğini işaretlemeleri halinde müşterilerinize, sipariş durumu sayfasında perakende satış mağazanızın adresini verebilirsiniz.
Adımlar:
- Shopify yöneticinizden Ayarlar > Ödeme'ye gidin.
- Sayfayı aşağı kaydırarak Ek komut dosyaları bölümüne kadar ilerleyin.
- Aşağıdaki kodu panonuza kopyalayın (Mac'te
command + c
, PC'dectrl + c
).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Kodu Ek komut dosyaları kutusuna yapıştırın. (Mac'te
command + v
, PC'dectrl + v
) - Sipariş durumu sayfanızı görüntülemek için bir test siparişi tamamlayın.
- Shopify uygulamasında önce … düğmesine, ardından Ayarlar'a dokunun.
- Mağaza ayarları bölümünde Ödeme'ye dokunun.
- Sayfayı aşağı kaydırarak Ek komut dosyaları bölümüne kadar ilerleyin.
- Aşağıdaki kodu panonuza kopyalayın (Mac'te
command + c
, PC'dectrl + c
).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Kodu Ek komut dosyaları kutusuna yapıştırın. (Mac'te
command + v
, PC'dectrl + v
) - Sipariş durumu sayfanızı görüntülemek için bir test siparişi tamamlayın.
- Shopify uygulamasında önce … düğmesine, ardından Ayarlar'a dokunun.
- Mağaza ayarları bölümünde Ödeme'ye dokunun.
- Sayfayı aşağı kaydırarak Ek komut dosyaları bölümüne kadar ilerleyin.
- Aşağıdaki kodu panonuza kopyalayın (Mac'te
command + c
, PC'dectrl + c
).
<script>
// DEBUG {{ checkout.shipping_method.title }} has been used
{% if checkout.shipping_method.title == 'Pick-up at the store' %}
Shopify.Checkout.OrderStatus.addContentBox(
`<p>Okay, we're ready for you to collect your products from 17 Mapple Crescent, Toronto. Our store is open 9:00 to 5:00 every day.</p>`
)
{% endif %}
</script>
- Kodu Ek komut dosyaları kutusuna yapıştırın. (Mac'te
command + v
, PC'dectrl + v
) - Sipariş durumu sayfanızı görüntülemek için bir test siparişi tamamlayın.