Skip to content

Implement reorder items feature in account order show - #1

Open
Klehm wants to merge 1 commit into
2.0from
feat/reorder-products
Open

Klehm wants to merge 1 commit into
2.0from
feat/reorder-products

Conversation

@Klehm

@Klehm Klehm commented May 27, 2025

Copy link
Copy Markdown
Owner

This feature adds a Reorder button to each item in the customer order views.

When the button is clicked, a form with CRSF token is submitted, the user receives a feedback based on stock availibility and the cart widget is reloaded.
If the session has expired, the user is redirected to the login page.

Under the hood, this implementation is inspired by the Twig LiveComponent add to cart form on the product page.
It uses the AddToCartCommand to delegate the add action and handle all the related logic (stock availibility, quantity updates, ..)

BDD test :
vendor/bin/behat --suite=ui_reordering_order_items

image

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.

1 participant