bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
118 stars 157 forks source link

fix: add cart counter to Header #1598

Closed jorgemoya closed 3 weeks ago

jorgemoya commented 3 weeks ago

What/Why?

Passes in a cart component that renders cart count badge and link. We need this atm because PPR is not enabled and this can fetch the count on static sites where cookie is not enabled.

Screenshot 2024-11-09 at 11 27 55 AM

Testing

Locally.

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: f2fe24b5495be3bf0d1ff2c771c5d84b91fa6be1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 3 weeks ago

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

Name Status Preview Comments Updated (UTC)
catalyst 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 9:34pm
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 9:34pm
catalyst-soul ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 9:34pm
4 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **catalyst-1millionproducts-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-1millionproducts-store/8hwVRdL3q2yM9pbBhbUDn7sCE6XA)) | [Visit Preview](https://catalyst-1millionproducts-store-git-66cdc5-bigcommerce-platform.vercel.app) | | Nov 10, 2024 9:34pm | | **catalyst-au** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-au/Fo4eYrG4VTAzjqRyNCwJBTCMn8Vp)) | [Visit Preview](https://catalyst-au-git-vibes-soul-add-cart-9b60f3-bigcommerce-platform.vercel.app) | | Nov 10, 2024 9:34pm | | **catalyst-uk** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-uk/6x7pHys2JNSLSNdPG4xhTiEEGzmt)) | [Visit Preview](https://catalyst-uk-git-vibes-soul-add-cart-4d8eb7-bigcommerce-platform.vercel.app) | | Nov 10, 2024 9:34pm | | **catalyst-unstable** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-unstable/GCRL9B3w8TYPX2KSNx4c2vdciEqa)) | [Visit Preview](https://catalyst-unstable-git-vibes-soul-ad-3404c7-bigcommerce-platform.vercel.app) | | Nov 10, 2024 9:34pm |