Debugging Invoices with Tokenlist#
Debugging invoice templates (INVC) is a common task when customizing or troubleshooting Miva Merchant stores. The Tokenlist module simplifies this process by providing a detailed view of variables and their values, enabling developers to inspect and refine the INVC page effectively.
This guide walks through debugging invoices using Tokenlist, with practical examples and tips.
Steps to Debug an Invoice#
1. Accessing the INVC Page#
- Open the Miva Merchant Admin.
- Navigate to the
INVCtemplate under User Interface > Templates. - Ensure the Tokenlist module is assigned to the
INVCpage.
2. Viewing Tokens#
- Open the More menu on the
INVCpage. - Select Tokenlist from the dropdown menu.
- Use the View All Tokens feature to analyze all available variables and their values.
3. Debugging with Specific Order Numbers#
- Add a specific order number to Tokenlist setting.
- Select the View All Tokens button to view the invoice and variables.
- Use live preview of Tokenlist to inspect variables such as:
order_idorder_totalorder_items
Summary#
Debugging invoices with Tokenlist provides a clear and efficient way to inspect variables and refine the INVC template. By understanding how to access and analyze order-specific variables, developers can troubleshoot and customize invoices effectively.