For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add a Description Modal to Photo Prints

How to add an info icon next to a print size name in the Photo Prints interface that shows a description, image, or both when hovered.


Overview

For package prints or any print size that might not be self-explanatory, you can add a small information icon (i) next to the product name. When the customer hovers over it, a tooltip modal appears showing descriptive text, an image of what the print looks like, or both. This helps customers understand exactly what they are ordering — especially useful for combo sheets where multiple sizes are printed on a single sheet.

This is configured at the design level using a custom field called extra_info.


How to add the description modal

1. Ensure the extra_info custom field exists

  1. Go to the design for the print product you want to add a description to.

  2. Scroll to the Custom Fields section at the bottom.

  3. Look for a field called extra_info.

  4. If it does not exist, click Edit Schema, then Add Custom Field.

  5. Set the field name to extra_info, the type to Snippet, and click Save.

2. Add plain text content

  1. Return to the design and find the extra_info field.

  2. Enter your description text. For example:

  1. Save the design.

  2. Refresh your storefront. You should see a small info icon (i) next to the product name. Hovering over it displays your text.

Plain text is often sufficient — especially for listing the sizes included in a package print.


3. Add HTML content with an image (optional)

If you want to show an image alongside the text (e.g. a visual preview of the package layout), you can enter HTML into the extra_info field instead of plain text.

Step 1: Upload the image

  1. Go to Admin > Website > Assets.

  2. Upload the image you want to display (e.g. a diagram or cutout showing the print layout).

  3. Note the filename.

Step 2: Write the HTML

Use a simple single-column layout. The modal has a limited width, so keep it simple:

  • Use col-12 for full width within the modal — do not use two-column layouts (col-6) as the modal is too narrow.

  • Use img-fluid so the image scales to fit.

  • Keep the heading small (h6) — the modal space is limited.

Step 3: Paste into the custom field

  1. Open the design and paste the HTML into the extra_info field.

  2. Save.

  3. Refresh the storefront and hover over the info icon to verify.


Tips

  • The modal is small — keep content concise. A single image plus a one-line description is ideal.

  • For image-only content, you can omit the text block entirely.

  • For text-only content, plain text (no HTML) works fine and is simpler to maintain.

  • Use a clear, simple diagram or cutout image rather than a detailed photograph. The image will render small in the tooltip.

  • The extra_info field is per-design, so you can set different descriptions for each print size or package.

  • The HTML renders inside a Bootstrap 4.6 context, so standard Bootstrap grid classes (row, col-*) and utility classes (mt-2, img-fluid) are available.


  • Photo Prints — Overview

  • Setting Up Package Prints


Loom video: Add a Description Modal to Photo Prints

Last updated