Skip to content

feat: enhance checkout page with cart empty state handling#2269

Merged
Maciej D (mdanilowicz) merged 2 commits intomainfrom
feat/checkout-missing-functions
Feb 4, 2026
Merged

feat: enhance checkout page with cart empty state handling#2269
Maciej D (mdanilowicz) merged 2 commits intomainfrom
feat/checkout-missing-functions

Conversation

@mdanilowicz
Copy link
Copy Markdown
Contributor

This pull request improves the user experience on the checkout page by adding empty cart handling and integrating cart management actions. The changes ensure that users are informed when their cart is empty and provide options to continue shopping, while also enabling item removal and quantity updates directly from the checkout interface.

Cart management integration:

  • Added changeProductQuantity, removeItemById, and isEmpty methods from the cart composable to enable direct cart manipulation on the checkout page (templates/vue-starter-template/app/pages/checkout/index.vue).
  • Updated handleRemoveItem and handleUpdateQuantity to use the new cart methods for removing items and updating quantities, replacing previous console log statements (templates/vue-starter-template/app/pages/checkout/index.vue).

Empty cart user experience:

  • Displayed an empty cart message and a "Continue Shopping" button when the cart is empty, using the isEmpty flag (templates/vue-starter-template/app/pages/checkout/index.vue).
  • Conditionally rendered the checkout title and main checkout content only when the cart is not empty (templates/vue-starter-template/app/pages/checkout/index.vue).

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontends-starter-template-extended Ready Ready Preview, Comment Feb 4, 2026 9:11am
frontends-vue-starter-template Building Building Preview, Comment Feb 4, 2026 9:11am
old-frontends-demo Building Building Preview, Comment Feb 4, 2026 9:11am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
shopware-frontends-docs Skipped Skipped Feb 4, 2026 9:11am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances the checkout page UX by integrating cart actions (remove/update quantity) and adding a dedicated empty-cart state so users can continue shopping when there’s nothing to check out.

Changes:

  • Wired checkout cart interactions to useCart() actions (removeItemById, changeProductQuantity) instead of console.log.
  • Added empty-cart UI (message + “Continue Shopping” link) driven by isEmpty.
  • Conditionally renders the checkout title and main checkout content only when the cart is not empty.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread templates/vue-starter-template/app/pages/checkout/index.vue Outdated
Copy link
Copy Markdown
Contributor

@mkucmus Maciek Kucmus (mkucmus) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌🏼

@mdanilowicz Maciej D (mdanilowicz) merged commit 7b0b57c into main Feb 4, 2026
11 checks passed
@mdanilowicz Maciej D (mdanilowicz) deleted the feat/checkout-missing-functions branch February 4, 2026 09:25
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