Skip to content

Conversation

@tgaribal
Copy link
Collaborator

@tgaribal tgaribal commented Aug 14, 2025

Purpose

The user requested fake data to be added to the cart so it has items for testing and development purposes. This enables testing of the cart functionality and checkout flow with sample products.

Code changes

  • Cart Store: Created cartStore.ts with Zustand state management including pre-populated fake cart items (Checker Fleece, Fog Linen Jacket, Angular Sunglasses)
  • Checkout API: Added /api/create-payment-intent/route.ts for Stripe payment processing with validation and metadata handling
  • Checkout Pages:
    • Created checkout page with Stripe Elements integration and order summary
    • Added success page with order confirmation and status display
  • Cart Component: Enhanced cart sidebar with quantity controls, item management, and checkout navigation
  • UI Components: Added Badge component and improved Button component with Builder.io prop filtering
  • Product Details: Integrated cart store for add-to-cart functionality

The implementation provides a complete e-commerce cart and checkout experience with fake data for testing.

tag @builderio-bot for anything you want the bot to do

To clone this PR locally use the Github CLI with command gh pr checkout 90

🔗 Edit in Builder.io

👀 Preview Link

cgen-6b274d2a04c040398521c9227a4c740b
cgen-07b66422f4954425957d73f4ede48ac6
cgen-4bf8f615ecdc4f95af469c228c020717
cgen-0fc55421845f4b4a970839a0a7b523ab
cgen-3e905d4a5da844d3b806de624ea5c48f
cgen-5ed41a9eea14413cade90c276a62d984
cgen-2c4cd0ae237f4b36a26f5a7e87bc2974
cgen-44debb3535284572a0e90467c11a07c1
cgen-a0069ba9e8064729a1c9e42e40d1213d
cgen-6508c76a22ba40dfb780b2e6b9f2d1dd
cgen-50b2e50b1dc64a48af8e33bb097a1122
cgen-a3ba16205b9d473f80c77611c05bd860
cgen-beda5e776912404ca8c6b93314d2b72d
cgen-7a59bc6533964131a27bdf090b7374b4
cgen-d7b47d1cf7aa47468d15aab72bcf010d
cgen-c9df2ac63b744fdf94c168343916495b
cgen-4a48dcd2436c466f94cc05d85c8a9188
@vercel
Copy link

vercel bot commented Aug 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
unified-demo-ecomm Failed Aug 14, 2025 4:15am

@builder-io-integration builder-io-integration bot changed the title Builder.io: Update from Visual Editor Add fake cart data and complete checkout flow Aug 14, 2025
cgen-d543ea8c9d39451688514829b9344544
cgen-89393f9cd09f4aaca73163227e63b1e9
cgen-68ec1f81f26043df845d7082dd05ec4e
cgen-10cb84285fa64d918689ad1bada3bae8
cgen-ca691af0046f4cad91f75b1d6fae6a25
cgen-097808cfbc6c407a8ebfa81ebcd0d8cf
cgen-8b01acea75aa43acb94fce20ed853d4e
cgen-2c36bf023c624079a9582da85d6e15ae
cgen-94b250724c12490c832ed77874b5c911
cgen-9f2f6e644136438da1721e683d2bb88f
cgen-195a36a6762d44a58352650a76d13542
cgen-30045c4e18af4cccbc93c79b7e0f6a0d
cgen-105cad688bb849f0b73027c714e2d4b9
cgen-ac17b9a9fa414072973424143083c961
cgen-87a64b438ae54845877e13f1c9fd00dd
cgen-ade29e6f965d4779938d4e22f42ace01
cgen-97105220c41c48a5ae8187c7e352b87a
cgen-bc3150edc9e34505821df1bfddaea586
cgen-7dd3922e410a4700b0ee452286294433
cgen-88bd2e393e7941ad85599b240acd0eb5
cgen-2e0d524601014489bb601062c808f620
cgen-7d7b4744e3b84748bb1b86edef67c53e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants