Loading WardrobeIt

Install the Storefront Widget

Add WardrobeIt to your ecommerce storefront so shoppers can discover products, receive catalog-only recommendations, ask product questions, compare suitable options, and complete supported cart actions.

A fashion storefront laptop with a shopping assistant docked on its screen.

Prepare the connection. Then add the storefront widget.

Theme Embed is the current theme-script installation path. It does not imply a Shopify App Store app, theme app extension or drag-and-drop app block.

Approved store connection
Connect Shopify with the approved custom-app Admin API token inside Merchant Portal. Keep that token out of the storefront.
Reviewed catalog
Check supported products, images, valid variants, current synchronized prices and availability.
Storefront widget key
Use the store-scoped key issued for browser widget traffic. Never place a server-only merchant key in Liquid or JavaScript.
Theme access and backup
Confirm the intended store and theme, keep a recoverable copy, and preview the change before publishing.

Use the approved snippet. Keep credentials on the correct surface.

Add the approved theme script in the placement provided during setup. Shopify Admin access belongs in the secure connection workflow; the widget uses its own store-scoped credential.

Illustrative attribute structure
<script src="https://YOUR_HOST/static/wardrobeit-widget.js"
  data-api-key="YOUR_STOREFRONT_KEY"
  data-api-base="https://YOUR_HOST/api/v1"
  data-page-type="product"
  data-product-id="YOUR_CATALOG_PRODUCT_ID"
  defer></script>

Use the exact script URL, API host, key and product mapping provided for your store. These placeholders do not connect a storefront.

Storefront script attributes
AttributePurpose
srcWidget script URL supplied during setup
data-api-keyStore-scoped storefront key, never the Shopify Admin API token
data-api-baseAPI base URL supplied for your WardrobeIt environment
data-page-typeSupported page context: home, product, collection or cart
data-product-idCatalog product identifier where supported on product pages
deferLoad the widget script without blocking HTML parsing

Make page context useful. Test the surface the shopper actually sees.

Use supported page contexts and product mapping rather than assuming the same snippet configuration works everywhere.

Homepage

data-page-type="home"

Review the launcher, welcome message and natural-language product discovery.

Collection page

data-page-type="collection"

Confirm recommendations remain inside the connected catalog and open the right merchant product pages.

Product detail page

data-page-type="product"

Pass the supported catalog identifier. Test Product Q&A, eligible Virtual Try-On and valid variant selection against the current product.

Cart context

data-page-type="cart"

Verify supported Add-to-Cart behavior and the merchant cart confirmation. Checkout stays with Shopify.

Rehearse the buying journey. Confirm the result at every step.

A visible launcher is only the beginning. Review discovery, questions, comparisons, supported visual previews and cart actions before making the assistant available to shoppers.

Preview before publishing.

Use real store products and an unpublished or approved preview environment. Test both desktop and mobile, including existing apps and scripts.

Launcher and welcome
Open the preview on desktop and mobile. Check placement, readable text, keyboard focus and dismissal.
Product discovery and comparison
Describe a real need and compare catalog products. Confirm merchant-owned links and supported product facts.
Product Q&A and fit guidance
Ask about size, fabric, delivery and returns. Answers should use approved Merchant Knowledge and clarify missing information.
Eligible Virtual Try-On
Confirm consent appears before processing and unsupported products remain excluded. A preview does not guarantee fit.
Complete the Look
Where enabled, confirm complementary suggestions remain valid, available merchant products.
Cart and checkout
Select a valid variant and quantity. Treat an item as added only after the Shopify cart confirms it. Checkout and payment remain native.

Configure what your store supports. Keep future capabilities separate.

Merchant Portal controls vary with the active implementation. Configure only released, technically supported settings and retest the shopper experience after changes.

Brand & knowledge
Review logo, launcher, welcome messaging, suggested prompts, product information, policies and supported appearance settings.
Recommendations
Validate catalog-only recommendations, product exclusions and related-product behavior only where those controls are available.
Offers & actions
Offers, discounts, margin rules and advanced action controls are planned or configuration-dependent. Do not infer availability from a preview.
Page behavior
Review the supported homepage, product, collection and cart placement. Do not block native checkout or repeat dismissed prompts.

Find the failed step. Recover without exposing credentials.

Use the symptom to choose the next check. Do not keep replacing keys or publishing theme changes before reviewing the failure.

The launcher does not appear

Confirm the correct theme and environment, the approved script placement, the supplied script URL and the browser console error. Check that another script or content policy is not blocking loading.

The widget cannot authenticate

Verify the storefront key belongs to this store and the API base matches your environment. Never substitute a Shopify Admin token or a server-only merchant key.

Products or variants are wrong

Review catalog synchronization and the product identifier used for page context. Confirm the product, color, size and valid options at the Shopify source.

Add-to-Cart does not confirm

Test a valid product, variant and quantity on the correct store origin. Shopify remains the final authority for price, availability and cart acceptance.

Try-On is unavailable

Check product eligibility, supported plan/configuration, usable images, consent and placement. Do not expose an unsupported preview.

An update breaks the storefront

Restore the approved theme backup or disable/remove the snippet, then retest. Removing the widget should not alter the underlying catalog or checkout.

Keep the installation review connected. Use the guide for the next task.

Shopify is the current supported connection. WooCommerce, custom and headless paths, GA4, Meta, Google Ads, Klaviyo, HubSpot and support integrations require their own availability review; they are not enabled by adding the widget script.