Miva Merchant Development by Scot's Scripts

SHIPPING: Sort Shipping Methods From Low to High

Miva Random Code Trivia

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.

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)
SEO Audit & Inquiries • News & Updates • SEO for Miva Merchant

SHIPPING: Sort Shipping Methods From Low to High

THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED;
THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.

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

shipping sort