Open patarok opened 9 months ago
We found the following existing issues which may help or are related to your topic:
Hi,
thx for your issue we will put it into our new evaluation process and have a look at it again.
[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37947.
[created from NEXT-37947, comment 489021]
PHP Version
8.2
Shopware Version
V6.4.20
Expected behaviour
no js-error should be thrown in the browsers (debug-)console, if setting registration page for a customer group to 'onlyCompanyRegistration'
And on clicking the checkbox for an additional address the 'parcel-receiver address form' should show up I guess.
Actual behaviour
you open the separate page for "company only registration" set to the registration page for a certain customer group, then: js-error throws: all.js?1690802479:3 Error: At least one item of ".js-field-toggle-contact-type-company-shippingAddress" must exist in parent node! at i.querySelectorAll (all.js?1690802479:3:4006) at nt._getTargets (all.js?1690802479:5:54745) at nt.init (all.js?1690802479:5:54342) at nt._init (all.js?1690802479:3:14939) at new c (all.js?1690802479:3:14791) at new nt (all.js?1690802479:5:54309) at h._initializePluginOnElement (all.js?1690802479:3:20241) at all.js?1690802479:3:19651 at NodeList.forEach ()
at s.iterate (all.js?1690802479:3:6828)
therefore plugin-js halts and can not hook up event handler to the checkbox, so no additional form appears when checkbox is clicked.
this may be caused by either "FormFieldTogglePlugin" (in modules) or by "address-personal.html.twig" on line 268 since nowhere else a classname composited from variables like: "js-field-toggle-contact-type-company-shippingAddress" could be created... I guess but it could be that you are missing twig logic somewhere else if the error is not burried in js (FMPOV/AFAIA)
How to reproduce
then head over to the page and take a look at what the console shows and if somethings happening when you click the checkbox for: "Lieferadresse weicht von Rechnungsadresse ab." which will then cause an "Uncaught Error" which says "The element type undefined is not iterable".