Show content based on shipping method

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.

Steps:

  1. From your Shopify admin, go toSettings>Checkout.
  2. Scroll down to theAdditional scriptssection.
  3. Copy the following code to your clipboard (command + con a Mac,ctrl + con a PC).
  1. Paste the code into theAdditional scriptsbox. (command + von a Mac,ctrl + von a PC)
  2. Complete a test order to view your order status page.

Ready to start selling with Shopify?Try it free