Our company is trying to implement Nationwide delivery in the UK alongside are currently running Local Delivery. We have set up an account with DPD as our courier and we are looking into the Shipstation app to help with the workflow of sending out the deliveries. However, there are some items we cannot ship with DPD and are restricted.
But with local delivery this is not the case and we are able to ship these restricted items
So what we would like to happen is if this restricted item(s) is in a customers cart and they select the national delivery option the item(s) is automatically removed from their cart at checkout and possibly a message of some sort is shown explaining why it was removed.
Could the use of metafields enable this to happen when national delivery is chosen?
So for example a product may have a metafield name “restricted” and the value “yes”. Is it possible to create an IF statement at checkout (after the customer selects the national delivery option) to say that if the metafield “restricted” = “yes” then remove it from the cart with a prompt message. But then if the metafield is blank then proceed to checkout as normal.
How would the code look and where would this have to be written?
Any help would be appreciated.
Thank you