Wix Stores: Custom Checkout Fields - Displaying Order Data on Printable Overviews

Understanding the Wix Stores Custom Checkout Fields Printing Issue

A user on the Wix Studio forum encountered a problem with custom checkout fields in their Wix store. Specifically, while the data entered into these custom fields appears in the Wix store email confirmation, it's missing from the printable order overviews, packing slips, and order details accessible through the Wix dashboard. This article analyzes the issue and offers potential solutions and workarounds.

The Problem: Missing Custom Field Data in Printable Overviews

The core issue stems from how Wix Stores handles custom checkout fields and their integration with various order-related documents. While Wix captures the data, it doesn't automatically propagate it to all areas, particularly printable formats. As noted in the original forum discussion, the user receives the custom field information in the order confirmation email, but struggles to include it in a printable format suitable for packing or record-keeping.

Potential Solutions and Workarounds

Unfortunately, Wix Stores doesn't offer a direct, built-in solution to automatically include custom checkout fields in printable order overviews or packing slips. However, here are several approaches to consider:

1. Customizing the Wix Stores Email Template (Limited Solution)

The user mentioned the Wix store email contains all the necessary information, but the layout isn't printable. While directly modifying the core Wix Stores email template might be restricted, you can explore options within the Wix dashboard:

  • Check for Email Template Settings: Navigate to your Wix Stores settings and look for email customization options. While you likely can't alter the fundamental structure, you might be able to adjust some styling to improve printability.
  • Third-Party Email Integration: Consider integrating a third-party email marketing service (e.g., Mailchimp, Klaviyo) with Wix Stores. These platforms often provide more advanced email template design capabilities, allowing you to create a printable-friendly email that includes the custom field data. You would need to configure the integration to pass the custom field data to the email marketing platform.

2. Creating a Custom Order Overview Page with Wix Code (Recommended for Developers)

This approach requires using Wix Code (now Velo by Wix) to build a custom page that displays order details, including the custom fields. This gives you full control over the layout and printability.

  1. Use the Wix Orders API: Velo by Wix allows you to access order data through the `wix-stores-backend` module. You can use the `getOrder` function to retrieve order details, including the custom fields.
  2. Create a Dynamic Page: Design a page that dynamically displays the order information retrieved from the API. Use HTML elements to structure the data in a printable format.
  3. Implement a Print Function: Add a button that triggers the browser's print functionality (`window.print()`) to generate a printable version of the page.

Example (Conceptual):

// Velo code example (Conceptual - Requires adjustments)
import { orders } from 'wix-stores-backend';

$w.onReady(function () {
  let orderId = "YOUR_ORDER_ID"; // Replace with the actual order ID
  
  orders.getOrder(orderId)
    .then( (order) => {
      // Access custom fields (May require inspecting the order object)
      let customField1 = order.customFields.field1; 
      let customField2 = order.customFields.field2;

      // Display the order details on the page
      $w("#orderIdText").text = order.id;
      $w("#customField1Text").text = customField1;
      $w("#customField2Text").text = customField2;
    } )
    .catch( (error) => {
      console.error(error);
    } );
});

export function printButton_click(event) {
  window.print();
}

Important Considerations:

  • You'll need to determine how custom fields are stored within the `order` object returned by the API. Inspect the object structure to find the correct paths.
  • This approach requires coding knowledge and familiarity with Velo by Wix.

3. Using Third-Party Apps (Explore the Wix App Market)

Search the Wix App Market for apps that offer advanced order management or reporting features. Some apps might provide the ability to customize order documents and include custom checkout field data. Be sure to carefully evaluate the app's features, pricing, and reviews before installing.

Conclusion

While Wix Stores lacks a straightforward, built-in solution for including custom checkout fields in printable order overviews, the workarounds discussed above offer viable alternatives. Creating a custom order overview page with Velo by Wix provides the most control and flexibility, but requires coding expertise. Exploring third-party apps or customizing the email template (within its limitations) are other options to consider. The best approach depends on your technical skills and specific needs.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools