Hi @thadwinzenz
Adding “LOCAL PICKUP” to your Shopify Order Printer template is straightforward if you adjust the Liquid code in your template. This involves checking if the order has a pickup option and displaying the appropriate label. Here’s how you can do it:
Steps to Add “LOCAL PICKUP” to Your Order Printer Template:
1-Access the Order Printer App:
Go to your Shopify admin, open the Order Printer app, and select the template you want to modify.
2-Edit the Template:
Look for the section of the template where you want “LOCAL PICKUP” to appear (e.g., near the order details or shipping address).
Insert Liquid Code to Check for Local Pickup:
Add the following code snippet to your template:
{% if fulfillment_order.pickup_in_store == true %}
LOCAL PICKUP
{% endif %}
Alternatively, if the pickup flag is under a different attribute (depending on your Shopify setup), use:
liquid
CopyEdit
{% if attributes.delivery_method == ‘local_pickup’ %}
LOCAL PICKUP
{% endif %}
3-Test the Template:
Save the changes and preview your template using an order that has “Local Pickup” selected. If it displays as expected, you’re good to go. If not, double-check the attribute names in the Liquid code (these can vary depending on your setup).
4-Troubleshooting:
If the label doesn’t appear:
- Go to the admin order details page and inspect the order attributes (e.g., delivery_method or pickup_in_store) to ensure you’re referencing the correct variable.
- Use {{ attributes | json }} in the template to display all available attributes, helping you identify the correct one for Local Pickup.
Example Output for “Local Pickup”:
When the above code works correctly, orders with local pickup will show this label prominently:
LOCAL PICKUP
(Order details continue…)
If you’re not comfortable with Liquid or need a bit more help, feel free to share the attributes you see in your JSON output. I’ll help refine the code further!
If you need any other assistance, feel free to reply and I will try my best to respond.
Best regards,
Daisy