Skip to content

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#

  1. Open the Miva Merchant Admin.
  2. Navigate to the INVC template under User Interface > Templates.
  3. Ensure the Tokenlist module is assigned to the INVC page.

2. Viewing Tokens#

  1. Open the More menu on the INVC page.
  2. Select Tokenlist from the dropdown menu.
  3. Use the View All Tokens feature to analyze all available variables and their values.

3. Debugging with Specific Order Numbers#

  1. Add a specific order number to Tokenlist setting.
  2. Select the View All Tokens button to view the invoice and variables.
  3. Use live preview of Tokenlist to inspect variables such as:
    • order_id
    • order_total
    • order_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.