Spectrum Integration
  • Introduction
  • Ecommerce
    • Front End Integration
    • Load Design
    • Add to Cart
    • Save Design
    • Generate Cart Item
    • Pricing & Availability
    • Order Acknowledgement
    • Shipment Notification
    • Update Order Status
    • Order Search
    • Integration Driver
    • Production Related File Delivery
    • Spectrum + Shopify Integration
      • Overall Flow
      • Product Set Up: "Add-ons"
      • Line Item Properties
      • Shopify Cart
      • Order Processing
  • API
    • Environments
    • Image QueryString API
      • Image Transforms
      • Image Filters
      • Image Encoding
    • Rendering
    • WebToPrint (W2P)
    • Assets
    • Rate Limiting
  • Marketing
    • Share
  • General
    • Glossary
Powered by GitBook
On this page
  • 1. Load the Spectrum JavaScript file in the HEAD tag
  • 2. Create an HTML div tag with an ID of spectrum-customizer

Was this helpful?

  1. Ecommerce

Front End Integration

PreviousIntroductionNextLoad Design

Last updated 1 month ago

Was this helpful?

The Spectrum front end is designed to be integrated into the front end of your ecommerce website. All necessary front end files will be delivered via the Spectrum CDN and are rendered dynamically within an HTML element.

1. Load the Spectrum JavaScript file in the HEAD tag

The Spectrum team will provide the full URL to fill in the [ClientHandle]. The [SpectrumCdnEnvironment] base URLs are listed in the page.

<script src="[SpectrumCdnEnvironment]/[ClientHandle]/frontend/js/customizer.min.js"/>

2. Create an HTML div tag with an ID of spectrum-customizer

This is where the customizer experience will load on the page. Any surrounding container elements on the PDP should be 100% width to allow for responsive content.

<div id="spectrum-customizer"></div>
Environments