When you print packing slips from Shopify, you may notice technical tags like #MWS appearing next to product names. These markers are added by Advanced Product Options (APO) to store option data internally.
To make packing slips cleaner and easier to read for your fulfillment team, you can remove these tags and display all selected APO options in a readable format.
This guide shows how to update the Shopify packing slip template to hide #MWS and show APO options properly.
****Scroll down to the Shipping documents section and click Packing slip template. This opens the default Liquid/HTML template for your store’s packing slips. 2. Comment out the default variant title block In the editor, find the following block of code:
```jsx
{% if line_item.variant_title != blank %}
<span class="line-item-description-line">
{{ line_item.variant_title }}
</span>
{% endif %}
```
This block is responsible for showing the Shopify variant title — including the internal #MWS tag used by APO. To hide it, wrap it with {% comment %} and {% endcomment %} like this:
```jsx
{% comment %}
{% if line_item.variant_title != blank %}
<span class="line-item-description-line">
{{ line_item.variant_title }}
</span>
{% endif %}
{% endcomment %}
```
✅ **Result:** This prevents the default variant title (and #MWS) from showing on printed or PDF packing slips.
Add clean variant title and APO properties Right after the commented-out section, insert both code blocks below. They will remove #MWS from variant titles and display all selected APO options.
{% if line_item.variant_title != blank %}
{% unless line_item.variant_title contains 'Default Title' %}
<span class="line-item-description-line">
{% if line_item.variant_title contains '#MWS'%}
{% assign variant_option = line_item.variant_title | split: "#MWS" %}
{{ variant_option.first }}
{% else %}
{{ line_item.variant_title }}
{% endif %}
</span>
{% endunless %}
{% endif %}
{% for p in line_item.properties %}
{% assign property_first_char = p.first | slice: 0 %}
{% if p.last == blank or property_first_char == '_' %}{% continue %}{% endif %}
<span style="color:#000">{{ p.first }}:</span>
<span style="color:#000">
{% if p.last contains 'mageworx.com/front/files/' %}
<a class="lightbox" href="{{ p.last }}">{{ p.last }}</a>
{% else %}
{{ p.last }}
{% endif %}
</span>
<br />
{% endfor %}
✅ What this does:
Save the template After adding both snippets, click Save in the top-right corner.
✅ The packing slip now shows only relevant, customer-facing information.
✅ All custom options from APO are displayed clearly.
✅ The layout stays consistent with Shopify’s default design.