Miva Merchant Development by Scot's Scripts

SMT: Sort Shipping Code From Low to High Price

Miva Knowledge Base
SMT: Sort Shipping Code From Low to High Price
Important Notice: This information is for internal reference only. Use at your own risk.
Does Google actually understand your Miva Merchant store? Our JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

SMT: Sort Shipping Code From Low to High Price

Scot Ranney • December 22, 2023


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

mvkb_shipping mvkb_smt mvkb_sort