Skip to content

Add order-create tool#2

Open
avstudnitz wants to merge 2 commits into
Inchoo:developfrom
avstudnitz:tool-order-create
Open

Add order-create tool#2
avstudnitz wants to merge 2 commits into
Inchoo:developfrom
avstudnitz:tool-order-create

Conversation

@avstudnitz

Copy link
Copy Markdown

Add an order-create tool to OrderTools that builds a guest quote from line items (sku + qty) and a single billing/shipping address, applies the requested shipping and payment methods, and places the order via CartManagementInterface::placeOrder.

Registered in DESTRUCTIVE_TOOLS so it is disabled by default and blocked in production unless explicitly enabled, consistent with the other order-mutating tools, and auto-discovered via requireToolEnabled.

Also wires the tool through everything that enumerates tools: the search-tools orders group, README, wiki (Tools-Orders, Configuration, cli-commands), CHANGELOG, and the config/count unit tests.

Add an `order-create` tool to OrderTools that builds a guest quote from
line items (sku + qty) and a single billing/shipping address, applies the
requested shipping and payment methods, and places the order via
CartManagementInterface::placeOrder.

Registered in DESTRUCTIVE_TOOLS so it is disabled by default and blocked in
production unless explicitly enabled, consistent with the other order-mutating
tools, and auto-discovered via requireToolEnabled.

Also wires the tool through everything that enumerates tools: the search-tools
orders group, README, wiki (Tools-Orders, Configuration, cli-commands),
CHANGELOG, and the config/count unit tests.
Add an optional `customerId` to order-create. When > 0 the quote is assigned
to that customer via Quote::assignCustomer, so the order is linked to the
account (customer email/group are taken from the customer); 0 keeps the
guest-by-email behavior. The new parameter is documented in the wiki.
@avstudnitz avstudnitz changed the title Add order-creat tool Add order-create tool Jul 2, 2026
@tvranjes tvranjes added enhancement New feature or request Under review labels Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Under review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants