How to limit shipping rate visibility with product data
If you have the need to control the visibility of a shipping method in the checkout, there are many different options to do that with Packrooster Shipping. One of the ways you can control the visibility is by using order data.
Please note that only shipping methods and pickup points created directly in Packrooster Shipping can be controlled with these visibility filters. If your shipping methods are created in Shopify, only weight and order price can be used as filters.
- Open Packrooster Shipping → Settings → Shipping methods
- Either create a new shipping method or pickup point, fill in the necessary information and move forward to section 3 - Visibility at Checkout. You can also open an existing shipping method and jump straight to the section mentioned before.
At Visibility at Checkout section you will find different ways of controlling the visibility of shipping method at Shopify's Checkout. This article focuses on how to use product data in the said configurations.
Item quantity between
Control how the shipping method is displayed at the checkout based on item quantity in the order
Show / Hide if order contains this product type
Display or hide the shipping method from Shopify Checkout if the order contains products of specific product type
Show if order contains ONLY these product types
If you type the product type here, each item in the order must be from this product type/types to display the shipping method.
Show / Hide if order contains this product tag
Display or hide the shipping method from Shopify Checkout if the order contains products containing specific product tags.
Show if order has ONLY items with these product tags
If you type the product tag/tags here, each item in the order must be from this product tag/tags to display the shipping method.
Show if order has dangerous goods
Dangerous goods filter has three different selections.
Select: No filters
Yes: Shipping method gets displayed only if the order contains dangerous goods
No: Shipping method is not displayed, if the order contains dangerous goods.
To configure products as dangerous goods, you must have a product variant metafield with a namespace of "vak" with a key of "mode". Products marked as dangerous goods must have a vak:mode metafield of either "LQ" or "VAK".
Line Item Properties
If you want to display or hide shipping methods at your Shopify Checkout based on line item properties, it can be done using these filters. You can decide, if some of the properties need to match or all of the properties need to match.
Getting line item properties requires coding in your Shopify stores theme.