# Javascript Problem

**URL:** https://forum.shopware.com/t/javascript-problem/6201
**Category:** Shopware 3.5
**Tags:** general
**Created:** [16. Februar 2012 um 09:37 UTC](https://forum.shopware.com/t/javascript-problem/6201 "2012-02-16T09:37:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![avenger](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@avenger](https://forum.shopware.com/u/avenger)
#### Post date: [16. Februar 2012 um 09:37 UTC](https://forum.shopware.com/t/javascript-problem/6201/1 "2012-02-16T09:37:35Z")

</div>

Auf der Seite [http://www.modebina.de/blusen-tuniken/3 … arm-spitze](http://www.modebina.de/blusen-tuniken/328/36-38-40-viskose-boho-tunika-2-lagig-longshirt-fledermausarm-spitze) laufe ich bei geöffnetem Firebug beim Laden auf einen Javascript-Fehler bei „article.ordernumber = article.ordernumber.replace(/./g, ‚\.‘);“ in der Funktion „liveshopping init“… Liveshopping ist im Shop nicht aktiv… Das Problem scheint mir zu sein, dass bei Varianten über die Sequenz `if(typeof(isVariant) != 'undefined' && isVariant === true) { $.changeDetails(0); }` `$.liveshopping.init(article, this);` aufgerufen wird, ohne zu prüfen, ob die dann verwendeten Datenstrukturen vorhanden sind… `// collection article details var article = { 'article': $(this), 'ordernumber': $(this).find('input.ordernumber').val(), 'target': target, 'uniquekey': $(this).find('input.uniquekey').val(), 'max\_quantity\_enable': $(this).find('input.max\_quantity\_enable').val(), 'max\_quantity': $(this).find('input.max\_quantity').val(), 'sells': $(this).find('input.sells').val(), 'typeID': parseInt($(this).find('input.typeID').val(), 10), 'price': eval($(this).find('input.price').val()), 'minPrice': eval($(this).find('input.minPrice').val()) //'stints': $(this).find('input.stints').val().split(';') };`
