Skip to main content

What It Is

The shopping cart and checkout experience stays personalized with creator branding, automatic discount application, and attribution tracking that ensures proper commission credit.

Key Capabilities

  • Auto-applied discounts — Creator code added at checkout automatically
  • Cart attribution — Creator context stored in cart attributes
  • Savings display — Show projected savings in cart
  • Creator reminder — Small callout in cart/checkout
  • Order tagging — Attributed orders tagged for reporting

How It Works

{% comment %} Cart drawer with creator context {% endcomment %}
{% if cc_creator %}
  <div class="cc-cart-banner">
    Shopping with {{ cc_creator.cc-creator-first-name }}
    {{ cc_creator.cc-collab-discount-amount }}% OFF applied
  </div>
  
  <div class="cc-cart-savings">
    You're saving {{ total_savings | money }} with {{ cc_creator.cc-collab-discount-code }}
  </div>
{% endif %}

{% comment %} Checkout URL with discount {% endcomment %}
<a href="/checkout?discount={{ cc_creator.cc-collab-discount-code }}">
  Checkout
</a>

Cart Attributes Set

AttributeValue
cc-creator-handleCreator’s handle for attribution
cc-discount-codeDiscount code to apply
cc-landing-urlOriginal landing page URL
cc-landing-timeTimestamp of first visit

How This Connects

  • Cart and checkout are the conversion handoff from landing/PDP/product-list experiences where creator context is first introduced.
  • The cart attributes set here are reused by Shopify-native Attribution, post-purchase tagging, and reporting.
  • Discount persistence should be implemented with Maintained Discount Protection so attribution and customer UX stay intact across sessions.