sc-upsell - Local Test Page

Setup:

  1. Build the component: WC=sc-upsell yarn build
  2. Serve this directory: npx serve . -p 3333 (from repo root)
  3. Start an ngrok tunnel: ngrok http 3333 (HTTPS required — Chrome strips query params on plain HTTP)
  4. Enable the embeddable-upsell-url LDFF locally (already set in local_launchdarkly.json)

To test:

  1. In Foundation, edit any upsell that belongs to a funnel
  2. Set the upsell URL to your ngrok HTTPS URL: https://<id>.ngrok-free.app/test-fixtures/sc-upsell
  3. Complete a checkout for a product that has that upsell funnel
  4. Foundation will redirect the buyer here with ?upsell={token}&cart={cart_id} appended automatically

Detected params: |