Shopware · News from · Published · Stefan Hamann

Shopware prepares Agentic Commerce 1.5.0, the first version without the beta label

Shopware is preparing version 1.5.0 of its Agentic Commerce extension, the first without the beta label. What it fixes and what to check before updating.

ShopwareUCPCheckoutShopping agentsMerchant operations

A parcel with an orange ribbon and the label 1.5.0, next to it a cut-off tag with the word Beta and a pair of scissors, and a smartphone with a chat and a basket on the right.
The tag is off, the parcel still needs checking. Illustration: Agentic Commerce.

The beta label comes off

A beta label is a polite request: have a look, but expect surprises. Shopware is now taking that label off its Agentic Commerce extension. Since December 2, the public repository holds the release pull request for 1.5.0. The first changelog entry says Agentic Commerce is no longer a beta and that this version fixes what kept it one. Two reasons come right with it: shops that answered 500 after updating to 1.4.0, and agent orders placed without a payment. I like that the sentence names them.

The status matters here, so let me be exact. When I wrote this, two developers had approved the pull request and every check had passed, but it wasn’t merged. So there’s no release yet. Version 1.4.0 from October 2 is still the latest one in the Store and on GitHub. As Shopware describes it, the merge is followed by a packaging run first, then by publishing to the Store, GitHub and Packagist. The beta label itself gets removed in the Shopware Account after that.

In substance, 1.5.0 bundles what has piled up on the main branch since October. I’ve covered two parts of it on their own, the payment option check before completion and the payment on UCP checkout completion. The move to UCP PHP SDK v1 I wrote about at midday isn’t part of it. 1.5.0 requires SDK 0.0.10, and the rebuild is planned for 2.0.0.

What does 1.5.0 fix for shops coming from 1.4.0?

The nastiest bug had nothing to do with agents. Version 1.4.0 had Shopware run composer require on install and update. On a shop whose packages were older than the newest allowed versions, the changelog says, that updated Symfony and other packages in the middle of the running request, and the shop answered 500. In 1.5.0 the UCP SDK ships inside the archive again. The extension no longer touches the shop’s composer.json or composer.lock and needs no access to Packagist.

For the one update from 1.4.0 to the new version, the README names two things worth knowing beforehand. The request that uploads or downloads the new archive can answer 500 once. The files are extracted anyway, and you carry on with the update. Also, 1.4.0 added the extension at exactly that version to the shop’s composer.json. While that entry stays, the next Composer run fails. From Shopware 6.6.10.4 on, Shopware removes it itself, and on older versions the extension does. On a cluster setup the file isn’t touched. There you remove the entry by hand, and the extension writes the command for it to its log.

There’s also a second way to install. Every release is meant to appear on Packagist with the same version number, and the pull request for that merged on December 2. A Composer project then pulls the extension with composer require and builds the Administration itself. When I checked, the package wasn’t on Packagist yet. That fits the status. It arrives with the first release.

What changes when an agent buys?

The second reason for the beta was payment. Until now an agent placed an order through UCP and got completed back without a payment handler running in Shopware. With 1.5.0, completion runs Shopware’s payment handling. If the payment needs the buyer, the shop answers requires_escalation with the payment page to pass on. A completion has to name exactly one payment instrument that belongs to a payment handler from the sales channel’s profile. Without it, the shop refuses with a recoverable error and no order is placed. The extension brings its own handlers for invoice, prepayment and cash on delivery.

One smaller change matters a lot for merchants selling in Europe. Every checkout response now links the pages for terms, privacy, withdrawal, and shipping and payment. Until now an agent got the continue link at most and had no legal pages to show its customer. The links lead to the pages set in the basic information for the sales channel. A page that isn’t set gets no link, and a headless sales channel gets none. If you never assigned the withdrawal page there, you’ll now notice because the agent can’t show it.

Then there’s the question of who may buy at all. Newly set up UCP sales channels accept every agent platform with a valid profile, as the UCP specification describes. The Agentic Commerce tab has a setting for it, “Who may buy through UCP”, with the options “All platforms” and “Listed platforms only”. Until now there was always a list, and it could only be maintained on the console, which merchants on Shopware SaaS don’t have. An agent with its own profile got a 401 there. Channels that already have UCP settings keep their list. For unknown platforms, the shop limits how often it fetches profiles to 60 fetches per minute for all of them together. How a shop recognises an approved agent in the first place is in my guide on telling shopping agents from bots: by a signature it can verify, and never by the name in the user agent.

And one detail for everyone who separates languages by path. Agents look for the UCP profile only at /.well-known/ucp on the root of a domain. A sales channel that’s only reachable at shop.example/de will no longer serve a profile. Until now the root domain’s profile answered there, which may belong to a different channel. The command ucp:config:validate now warns when all domains of a UCP channel have a path.

What would I check before updating?

First, I’d wait for the release. An approved pull request isn’t a package in the Store, and things can still change before it’s published. That leaves time for three looks at your own shop. Which Shopware version is running, and is it older than 6.6.10.4? Is the shop running as a cluster? And does the sales channel agents should find have a domain without a path?

After the update, ideally on a test system first, I’d look at four things. The profile at /.well-known/ucp should list under payment_handlers the payment options I want to offer agents. A checkout response should link the four legal pages. The setting for who may buy through UCP should be a deliberate choice. And a test order on invoice should arrive in the Administration like an order from the storefront, with its payment method and payment status.

My guide for Shopware merchants keeps product feed and UCP apart and walks through a first test with a suitcase. The eight acceptance tests for agent purchases recommend recording the software revision for every run. That’s worth doing here: once on 1.4.0 and once on 1.5.0. The label disappears in the Shopware Account. Whether your own shop is ready shows in the first test order.

Source and further reading

Read the original announcement ↗

Getting started with agentic commerce on Shopware ↗

The basics: What is agentic commerce? Definition and examples ↗

The Agentic Commerce handbook ↗

Save and share