Miva Merchant Modules and Development
Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

SHIPPING: Sort Shipping Methods From Low to High

Scot Ranney • February 22, 2024


Find the <mvt:foreach array="shippingmethods"... line on the OSEL (shipping and payment selection) template.

Use the QuickSortArray api function:

<mvt:do file="g.Module_Library_Utilities" name="l.success" value="QuickSortArray(l.settings:shippingmethods, ':price', 'asc')" />

https://www.scotsscripts.com/mvblog/shipping-sort-shipping-methods-from-low-to-high.html

mvkb_shipping mvkb_sort