24/7 Support: 800.608.6482

Get Started

Developer Docs

mvt:assign Reference Documentation

Requirements For Use

5.18 Engine or Higher

Available on any page, no item assignment required.


Executes the expression contained within value and saves that value to the variable defined in the name attribute.



This can be a local or global variable as defined by l. or g.

examples: l.myvariable or g.myglobalvariable.

If no prefix (l. or g.) is given it defaults to be a global variable.


The value can either be an expression a string, a number or a combination of all three.


Any value contained in the value attribute will automatically be treated as an expression. This means text will be treated as variables and any function available with the Miva Empresa engine (link) will be evaluated.



Strings are always defined by single quotes.



Numbers do not need to be enclosed by single quotes.



The $ is the concatenation operator in the Miva Template Language can everyting is evaluated, it can be used in the value attribute within the mvassign tag.


Outputing Values to the Page

If you want to display a value to the screen it needs to a global variable or part of the l.settings structure.


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

Contact Us
Receive Tips & Updates

Copyright © 2017 Miva, Inc - All Rights Reserved

Back To The Top