24/7 Support: 800.608.6482

Code Samples | Load Variant Data On Variant Change

This first block of code is JS that would call a new page you create which contains the second block of code. The second section looks up the variant product and builds a JSON object to return back to the page.

Functions Used

Product_Load_Code
ProductList_Load_Variant
miva_array_elements

Keywords

variant change, json, load variant data

Language

Template Language

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.