Webflow sync, pageviews & more.
NEW

Can I use a custom-designed cart page in Webflow with a Shopify checkout like the Alyx website?

TL;DR
  • Build a custom cart page in Webflow and connect it to Shopify using either the Buy Button for simple integration or the Storefront API for full control.
  • Use JavaScript and Shopify’s API to manage cart logic and redirect users to Shopify's hosted checkout, as Webflow doesn’t support native checkout.

You can create a custom-designed cart page in Webflow and then send users to a Shopify checkout, but it requires integrating Shopify's Buy Button or Storefront API — Webflow alone doesn’t support native Shopify checkout.

1. Design the Cart Page in Webflow

  • Build your cart page layout in Webflow using div blocks and custom styling.
  • Add placeholders for product name, quantity, price, and total.
  • Include buttons for updating quantities or removing items if needed — keep in mind this logic must be backed by Shopify, not Webflow alone.

2. Use Shopify Buy Button or Storefront API

  • Buy Button Approach:

  • In Shopify, go to Sales Channels > Buy Button and create product or collection embeds.

  • For full cart and checkout functionality (like the Alyx site), you'll need to embed the whole cart experience, not just product buttons.

  • Shopify handles checkout and cart items. The Buy Button includes a floating cart and redirects to Shopify's checkout.

  • Advanced: Storefront API:

  • Gives full control to build a custom cart system in Webflow.

  • You’ll need to use JavaScript to:

    • Create a Shopify cart session.
    • Add/remove/update line items.
    • Display cart data (products, quantities, pricing).
    • Launch the checkout (Shopify generates a custom checkout URL).
  • This option mimics Alyx’s approach more closely but requires developer-level JS knowledge and Shopify API setup.

3. Redirect to Shopify Checkout

  • Whether using Buy Button or API:
  • The final checkout step goes through Shopify's secure checkout page.
  • You cannot host the actual checkout within Webflow — Shopify mandates using its hosted checkout page.

4. Hosting & Platform Consideration

  • Alyx uses a headless Shopify setup with a completely custom frontend, not just Webflow.
  • Webflow + Shopify API works for smaller stores or prototyping, but for full control like Alyx, you would eventually need a headless CMS approach with custom code.

Summary

You can replicate a custom-designed cart page in Webflow and use Shopify for checkout, using either Buy Button embeds or the Shopify Storefront API (for full control). Alyx uses a headless Shopify setup, which is possible to emulate in Webflow with significant custom code and API integration.

Rate this answer

Other Webflow Questions