Looking for some direction here with scripts. All of our products are eligible for media mail shipping except our t-shirts, so we're trying to remove 'media mail' from the shipping options if a...
No content to show
User Activity
See this post: https://community.shopify.com/c/Script-Editor/Trying-to-exclude-Media-Mail-when-a-T-shirt-is-in-the-cart/td-p/517202 You'd need to be able to use scripts so you'd have to have a plus account.
This code is working. Just have to set all shirts as product type 'Clothing': def cartHasShirt?
for item in Input.cart.line_items
product = item.variant.product
if product.product_type.upcase.include?("CLOTHING")
return true
end
end
re...
Looking for some direction here with scripts. All of our products are eligible for media mail shipping except our t-shirts, so we're trying to remove 'media mail' from the shipping options if a t-shirt is in the cart. I'm not a ruby expert but here ...
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
4922 | 05-21-2019 04:31 PM |