[IWD Checkout Suite] How to fix the «Element 'item': Duplicate key-sequence ['address-list'] in key identity-constraint 'itemName'» bug

It is a bug in the IWD «Checkout Suite» extension:

Element ‘item’: Duplicate key-sequence [‘address-list’] in key identity-constraint ‘itemName’.
Element ‘item’: Duplicate key-sequence [‘shippingAddress’] in key identity-constraint ‘itemName’.
Element ‘item’: Duplicate key-sequence [‘payment’] in key identity-constraint ‘itemName’.
Element ‘referenceContainer’, attribute ‘as’: The attribute ‘as’ is not allowed.
Element ‘referenceContainer’, attribute ‘after’: The attribute ‘after’ is not allowed.

How to fix

You should address this bug to IWD Agency.

A temporary fix:

Locate the line:

Replace it with the following lines:

/** @var bool $noIWD */
$noIWD = false === strpos($xml, 'IWD_Opc');
if ($noIWD && $this->validationState->isValidationRequired() && $this->schema) {