Miva Merchant Development by Scot's Scripts

FORMATTING: Currency

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

FORMATTING: Currency

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 17, 2023 (updated: January 06, 2024)


currency formatting:

Mivascript:
<MvASSIGN NAME = "l.product:price_formatted"	VALUE = "{ [ g.Module_Root $ g.Store:currncy_mod:module ].CurrencyModule_AddFormatting( g.Store:currncy_mod, l.product:price ) }">
SMT:
<mvt:do file="g.Module_Store_Module_Currency" name="l.formatted_number" value="CurrencyModule_AddFormatting(l.settings:module, l.unformatted_number)" />

https://www.scotsscripts.com/mvblog/currency-formatting.html

mvkb