Picture of Re-enabling Preview Buttons in Direct Preview Mode

Re-enabling Preview Buttons in Direct Preview Mode

Re-enabling Preview Buttons in Direct Preview Mode

The Direct Preview Mode in print file configurations can be used to prevent users from editing the print files. However, enabling this mode may cause both the Add to Cart and Preview buttons to disappear.

This article explains how to re-enable these buttons by adding a code snippet into the Preview Config section. This ensures your users see the expected interface while maintaining the restricted editing environment.

Use cases

  • Preventing users from directly editing print files while still offering a preview option.
  • Ensuring that the Add to Cart functionality remains available for customers.

Key settings in Infigo

  • Direct Preview Mode: Found under the InDesign Invent product configuration.
  • Preview Config: Located in the General tab of the MegaEdit product configuration.

Step-by-step guide

  1. Navigate to your product configuration page under the MegaEdit section.
  2. Scroll down to the Preview Config section under the General tab.
  3. Insert the following code snippet into the Preview Config field:

    { showAddToBasketButton: true }

    HTML Image

  4. Save the changes in your product configuration.
  5. If the buttons do not immediately reappear, clear your browser and storefront cache before rechecking the product page.

Related links

For additional guidance, head over to the Infigo Academy or contact our Customer Support team.





Alternate Search Terms
enable preview buttons, direct preview missing buttons, restore add to cart, print file preview fix, preview config snippet, re-enable product preview, fix disappearing add to cart, preview mode button enable, restore preview interface, show preview code fix
Incomplete