Miva Merchant Development by Scot's Scripts

SMT: Sort Shipping Code From Low to High Price

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

SMT: Sort Shipping Code From Low to High Price

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 • December 22, 2023 (updated: March 03, 2026)


Put this line in front of the <mvt:foreach array="shippingmethods"...  line on the OSEL page:

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

The last param is the sort direction. 1 for low to high, -1 for high to low.


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

shipping smt sort