iambaz Posted October 16, 2015 Share Posted October 16, 2015 Is there any way I can hide individual carrier options on the carrier selection page with code? I am building a plugin which gets carrier prices from an API and amends them using the hook: getPackageShippingCost but sometimes the API does not return a value and the shipping cost is set as 'Free', when it should not be listed or available in such a case. Thanks Link to comment Share on other sites More sharing options...
innovacy Posted October 16, 2015 Share Posted October 16, 2015 That's extremely simple. In the getPackageShippingCost() of your module, do any checks you need when it shouldn't be available and return false, then your module indicates it isn't available. Link to comment Share on other sites More sharing options...
iambaz Posted October 16, 2015 Author Share Posted October 16, 2015 Doh! Can't believe I missed that. Thanks Innvoacy. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now