# Einkauswelten Element kann keine Varianten umschalten

**URL:** <https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811>\
**Category:** Themes & Design\
**Created:** [13. August 2024 um 12:49 UTC](https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811 "2024-08-13T12:49:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sw61-mg](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sw61-mg](https://forum.shopware.com/u/sw61-mg)\
**Post date:** [13. August 2024 um 12:49 UTC](https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811/1 "2024-08-13T12:49:16Z")

</div>

Ich habe in folgender Erlebniswelt eine Produktbox mit Varianten eingestellt.

> **[GladiatorPLUS](https://derneue.louven-shop.de/gladiator-plus)**
>
> GladiatorPLUS

Leider kann man die Varianten oder Mengen nur einmal umschalten, dann erhält man einen Javascript Error:

Uncaught TypeError: this.\_modalTrigger.addEventListener is not a function  
at c.\_initModalTriggerEvent (plugin\_buy-box\_buy-box\_plugin\_js.js:1:2187)  
at plugin\_buy-box\_buy-box\_plugin\_js.js:1:1991  
at XMLHttpRequest. (plugin\_header\_search-widget\_plugin\_js.js:1:5809)  
\_initModalTriggerEvent @ plugin\_buy-box\_buy-box\_plugin\_js.js:1  
(anonymous) @ plugin\_buy-box\_buy-box\_plugin\_js.js:1  
(anonymous) @ plugin\_header\_search-widget\_plugin\_js.js:1  
XMLHttpRequest.send (async)  
\_sendRequest @ plugin\_header\_search-widget\_plugin\_js.js:1  
get @ plugin\_header\_search-widget\_plugin\_js.js:1  
\_handleUpdateBuyWidget @ plugin\_buy-box\_buy-box\_plugin\_js.js:1  
publish @ moorl-foundation.js?1723552378:4  
\_onChange @ plugin\_variant-switch\_variant-switch\_plugin\_js.js:1  
(anonymous) @ plugin\_variant-switch\_variant-switch\_plugin\_js.js:1

Weiß jemand warum?

---

<div class="post-metadata">

**Author:** ![swaccount\_xp24](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@swaccount\_xp24](https://forum.shopware.com/u/swaccount_xp24)\
**Post date:** [30. Oktober 2024 um 09:05 UTC](https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811/2 "2024-10-30T09:05:06Z")

</div>

gibt es hier schon Erkenntnisse?

---

<div class="post-metadata">

**Author:** ![web-grips](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/web-grips/32/22792_2.png) [@web-grips](https://forum.shopware.com/u/web-grips)\
**Post date:** [30. Oktober 2024 um 09:46 UTC](https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811/3 "2024-10-30T09:46:50Z")

</div>

Der Fehler existiert auch noch in der 6.6.6.1, am besten du erstellst mal einen Issue im Github.

> **[shopware/shopware](https://github.com/shopware/shopware/issues)**
>
> Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more than 1.500 community extensions - shopware/shopware

---

<div class="post-metadata">

**Author:** ![sw61-mg](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sw61-mg](https://forum.shopware.com/u/sw61-mg)\
**Post date:** [31. Oktober 2024 um 09:05 UTC](https://forum.shopware.com/t/einkauswelten-element-kann-keine-varianten-umschalten/104811/4 "2024-10-31T09:05:15Z")

</div>

> <https://github.com/shopware/shopware/issues/5358>
>
> \*PHP Version:\* 8.x | \*Shopware Version:\* 6.6.6.1 | \*Affected area / extension…:\* Platform(Default) 
> 
> ----
> 
> \*\_Expected behaviour:\_\*
> 
> 
> 
> When changing the variant or quantity in a buybox on a shopping experience more than one time, the box should display the variant information.
> 
> \*\_Actual behaviour:\_\*
> 
> 
> 
> Nothing happens, but you get a javascript error like this.
> 
> Uncaught TypeError: this.\_modalTrigger.addEventListener is not a function
> at c.\_initModalTriggerEvent (buy-box.plugin.f67a5c.js:1:2169)
> at buy-box.plugin.f67a5c.js:1:1973
> at XMLHttpRequest.\<anonymous\> (search-widget.plugin.e5e83e.js:1:6092)
> 
> \*\_How to reproduce:\_\*
> 
> 
> 
> Just create a shopping experience and place a buybox with a product (with variants) on it.
