24/7 Support: 800.608.6482

Get Started

Developer Docs

CurrencyModule_AddFormatting

MvDo Function, MVT, Miva Merchant 9+, Engine v5.22+

Tag / Description

<mvt:do file="g.Module_Store_Module_Currency" name="l.formattedCurrencyVariable" value="CurrencyModule_AddFormatting(module var, value)" />

Parameters

  • module var

    A reference to the currency module. In most cases the variable "g.Store:currncy_mod" can be used.

  • value

    The number to be converted into currency.

Return Values

Examples

Formatting a Product's Price Variable

<mvt:do file="g.Module_Store_Module_Currency" name="l.settings:product:formatted_price" value="CurrencyModule_AddFormatting(g.Store:currncy_mod, l.settings:product:price)" />

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2017 Miva, Inc - All Rights Reserved

Back To The Top