Does anyone have experience writing their shipping...
# support
g
Does anyone have experience writing their shipping_method_selector_class for EasyPost (https://github.com/solidusio-contrib/solidus_easypost) extension? We added our DPD account to EasyPost, and all the options show up in Solidus (passed through API from EasyPost to Solidus). Within Solidus, the shipping rate is £3.50 for orders less than £35 and free orders for more than £35. We set that up through price sack. The logic for EasyPost, however, to define shipping option/method is that for any order less than 4KG is "ExpersspakDpdNextDay", while for orders whose weight is above 4KG, we pick "ParcelDbdNextDay". I believe I have to customise the shipping_method_selector_class for EasyPost. How do I approach this? Any help is much appreciated! Perhaps someone has a working example that they can share? I am sure I am not the first person to face this issue 😄 Thank you!
n
hey Georg, I haven’t worked with this extension, but based on what you say you could write a decorator to change the logic of the
delivery
controller action. Once the user gets there, the controller will automatically assign the delivery method based on the weight of the parcel and automatically redirect to
payment