You can use a conditional script with the variablecheckout.shipping_method.titleto display content on the order status page when a particular shipping method has been used for an order.
For example, you might have alocal pickup optionfor customers who live close enough to your brick and mortar store. You can give them the retail address of your store on the order status page if they select the local pickup option.
Copy the following code to your clipboard (command + con a Mac,ctrl + con a PC).
// DEBUG {{ checkout.shipping_method.title }} has been used{%ifcheckout.shipping_method.title=='Pick-up at the store'%}Shopify.Checkout.OrderStatus.addContentBox(`
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.
`){%endif%}
Paste the code into theAdditional scriptsbox. (command + von a Mac,ctrl + von a PC)
Complete a test order to view your order status page.