What is the easiest way to get a sorted list of shipping options by price?

2 0 0

I am attempting to create an app that chooses the cheapest shipping available when using a free shipping code. The first step is to simply get the order, get a list of shipping rates, then sort it. I have never made a shopify app so apologies if this is absurdly basic.

Replies 0 (0)