Custom Product, Template, and Code Modifiers

Tyler MacDonald Updated by Tyler MacDonald

Deep Dive into the World of Custom Code

shopVOX offers robust capabilities for customizing product templates with custom code. When creating a Dropdown Menu or Default Item, users can tailor these elements to function exactly as needed.

Customizing Dropdown Menus and Default Items

In shopVOX, users have the flexibility to integrate custom code directly into any product template. This feature is particularly powerful when setting up Dropdown Menus and Default Items, allowing for enhanced customization and functionality.

By leveraging custom code, users can:

  • Control the Behavior of Dropdown Menus: Customize the options available and programmatically access related data, such as the sheet height and sheet width of the selected material, ensuring that the dropdown works seamlessly within the product configuration.
  • Define Default Items with Precision: Set default values that are based on material, machine, and labor rates. These defaults follow the same structure and functionality, adapting to specific conditions or user inputs to ensure a smooth and intuitive experience for users configuring their products.

Implementing Custom Code

To implement custom code in your product templates, follow these steps:

  1. Access the Product Template: Navigate to the product you want to customize and open its template for editing.
  2. Insert Custom Code: Use the provided interface to input your custom code into a Dropdown Menu or Default Item. This code can include a restricted version of JavaScript and other logic to manipulate the dropdown and default items.
  3. Test and Iterate: After adding your code, thoroughly test the product configuration to ensure that the dropdown menus and default items behave as expected. Make adjustments as needed to refine the functionality.

Locating the Custom Code Toggle

The custom code Toggle is located in the Dropdown Menu or default item which you can find in the Product Template.

  1. Navigate to the Product Configuration:
    • Go to the Products section in your shopVOX account.
    • Select the product you want to customize.
    • Ensure Product Template is turned on
  2. Scroll to the Product Template:
    • Here, you will see various sections for customizing your product, including Dropdown Menus and Default Items.
    • Add Dropdown Menus and Default items
  3. Dropdown Menu Custom Code Toggle:
    • Within the editor, find the specific Dropdown you want to customize.
    • Look for the Custom Code toggle switch. This toggle allows you to enable or disable the custom code functionality for the selected element.
    • This is where the Custom Code Toggle is located when you Add New Dropdown Menu
  4. Default Item Custom Code Toggle:
    • Within the editor, find the specific Default Item you want to customize.
    • Look for the Custom Code toggle switch. This toggle allows you to enable or disable the custom code functionality for the selected element.
    • This is where the Custom Code Toggle is located when you Add New Default Item

Benefits of Customizing with Code

  • Enhanced User Experience: Tailor the configuration process to be more intuitive and responsive to user needs.
  • Increased Efficiency: Automate selections and reduce the need for manual adjustments.
  • Greater Flexibility: Adapt product templates to accommodate a wide range of scenarios and requirements.

By diving deeper into the coding aspects of shopVOX, users can unlock powerful customization options that elevate their product offerings and streamline the configuration process. Whether you're adjusting dropdown menus or setting precise default items, custom code in shopVOX provides the tools you need to create a seamless and efficient user experience.

How did we do?

Products: Utilizing the "Reference" Field to Combine two References into one Click Charge

Contact