Make shipping required for virtual options

You can make the shipping required on future orders with price add-ons by adding code to your theme.

This will combine the Shopify and Virtual Options on the invoice and orders.



Add this code to the theme.liquid file after the <head> tag. Click here for more information on how to edit the theme.liquid file

/* make shipping required */
function bcpoFirst() {
bcpo_settings.requires_shipping = true;

This will only apply to future orders it won’t change the orders that have already been made.  

Do not use this code if you are using custom shipping rates based on order price. This will cause an error not allowing the user to select a shipping rate and they are unable to checkout.

This will also add your virtual options to ShipStation Labels

Was this article helpful?