Tokenlist Overview#
The Tokenlist module in Miva Merchant is a powerful tool for developers, offering detailed insights into the variables available on any given page. With Tokenlist, developers can debug templates, analyze variable structures, and optimize their Miva Merchant store more efficiently.
Key Features#
Variable Exploration#
Tokenlist displays all available variables for a page, organized into:
- Variable: The name of the variable.
- Entity: The entity that represents the variable in Miva’s template language.
- Value: The current value of the variable.
This structured view helps developers quickly understand what data is accessible for manipulation or display.
Search Functionality#
The search bar in Tokenlist allows developers to:
- Quickly locate specific variables by name or content.
- Filter results in real-time, even with extensive variable lists.
- Streamline debugging workflows by focusing on relevant data.
Visual Representation#
Tokenlist provides visual representations of variable structures, making it easier to:
- Analyze complex nested data.
- Understand variable hierarchies and relationships.
- Debug templates with enhanced clarity.
Advanced Features#
Tokenlist includes several advanced tools:
- View All Tokens: Displays all variables and their placement within a page.
- Invoice Preview: Debug and analyze the
INVC
page using order-specific parameters.
Activating Tokenlist#
To use Tokenlist, you must first install and assign it to the relevant pages.
Step 1: Installing Tokenlist#
- Navigate to Settings > Modules in the Miva Merchant admin interface.
- Locate the Tokenlist module in the list of available modules.
- Click Install to activate Tokenlist.
Step 2: Assigning Tokenlist to Pages#
- Open the desired page under User Interface > Templates.
- Go to the Items tab for the page.
- Select the Tokenlist item from the list and add it to the page.
Once assigned, Tokenlist will be accessible via the More menu on that page.
Using Tokenlist#
Accessing Tokenlist#
- Navigate to the page you want to debug in the Miva admin interface.
- Click the More link on the page interface.
- Select Tokenlist from the dropdown menu.
Exploring Variables#
- Use the View All Tokens feature to analyze all available variables for the current page.
- Filter variables with the search bar for faster debugging.
Summary#
The Tokenlist module is a vital resource for developers working with Miva Merchant templates. By enabling structured variable exploration, robust search capabilities, and advanced debugging features, Tokenlist simplifies template development and enhances store performance.
For practical examples and deeper insights, continue to Debugging Invoices →.