Trade Desk Settings

Configure the B2B Trade Desk storefront experience

Hub URL

Your Candye Hub deployment URL. This is used in the theme snippet.

Portal Script Status

Check if the b2b-portal.js endpoint is responding

Theme Snippet

Add this to your Dawn theme's layout/theme.liquid before the closing </body> tag

{% if customer %}
  <meta name="customer-id" content="{{ customer.id }}">
{% endif %}
<div id="ctd-portal-root"></div>
<script>
  (function() {
    var script = document.createElement('script');
    script.src = '/api/public/b2b/portal?v={{ "now" | date: "%s" }}';
    script.async = true;
    document.head.appendChild(script);
  })();
</script>

Trade Hub Page Template

HTML to paste into a Shopify page (handle: trade-account)

Test B2B Customer

Enter a customer email to preview what the Trade Desk would render