# Dringend! Artikeldetailseite - Varianten - Keine Übertragung / URL's

**URL:** <https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336>\
**Category:** Allgemein\
**Created:** [30. Juli 2018 um 14:44 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336 "2018-07-30T14:44:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![teppichyavuz](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@teppichyavuz](https://forum.shopware.com/u/teppichyavuz)\
**Post date:** [30. Juli 2018 um 14:44 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336/1 "2018-07-30T14:44:32Z")

</div>

Guten Tag zusammen,

wir haben aktuell ein technisches Problem, bei dem wir einfach nicht weiter wissen.  
Leider haben wir Zeitdruck, da das Projekt kommende Woche online gehen soll…  
&nbsp;

Das Problem befindet sich auf der Artikeldetailseite (bsp.:&nbsp;[http://shopware.decopoint-shop.de/17-kinderzimmer-teppich-sterne-herzen-grau-rosa-pastell.html](http://shopware.decopoint-shop.de/17-kinderzimmer-teppich-sterne-herzen-grau-rosa-pastell.html))

&nbsp;

Sobald eine Variante (bsp.: 120x170 cm) ausgewählt wird, ändern sich weder Preis noch Einstellungen.  
Die URL dagegen wird ewig lang anstatt den Bezug zu den Varianten (?number=20339.255-Pink.1) herzustellen:

[http://shopware.decopoint-shop.de/17-kinderzimmer-teppich-sterne-herzen-grau-rosa-pastell.html?number=20339.255-Pink20340.293-Blue21642.41-Green20340.293-Blue21961.110-Multi21484.730-Blue20341.295-Grey20341.255-Pink22122.335-Blue22114.335-Blue777.795-Beige.Grey-JuP-StarsGrauLT-ApfelRundBlauLT-KleeblattRundGrauMintLT-KleeblattRundGrauLT-TigerL-KT9LT-EulenBlauLT-StarRundMintLT-StarRundRosa862.95-Grey16323.96-Grey957.Purple9001.Rose21803.96-Multi21420.70-Beige20752.61-Aqua21854.60-Multi21777.95-Grey793.60-Cream21777.55-Pink21833.695-Cream.Grey1114A\_Pink1114A\_Blue605.95-NatureL-KT34EulesleepingrosaL-KT25Eulemulti777.995-Grey-JuL-KT22Traktor21777.90-BlackLT-EinhornRundSilbergrauLT-EinhornSilbergrau](http://shopware.decopoint-shop.de/17-kinderzimmer-teppich-sterne-herzen-grau-rosa-pastell.html?number=20339.255-Pink20340.293-Blue21642.41-Green20340.293-Blue21961.110-Multi21484.730-Blue20341.295-Grey20341.255-Pink22122.335-Blue22114.335-Blue777.795-Beige.Grey-JuP-StarsGrauLT-ApfelRundBlauLT-KleeblattRundGrauMintLT-KleeblattRundGrauLT-TigerL-KT9LT-EulenBlauLT-StarRundMintLT-StarRundRosa862.95-Grey16323.96-Grey957.Purple9001.Rose21803.96-Multi21420.70-Beige20752.61-Aqua21854.60-Multi21777.95-Grey793.60-Cream21777.55-Pink21833.695-Cream.Grey1114A_Pink1114A_Blue605.95-NatureL-KT34EulesleepingrosaL-KT25Eulemulti777.995-Grey-JuL-KT22Traktor21777.90-BlackLT-EinhornRundSilbergrauLT-EinhornSilbergrau)

&nbsp;

Bei wem trat dieses Problem bereits auf? Kann hier jemand mit einer Lösung dienen?

Am Template scheint es nicht zu liegen, da wenn dieses deaktiviert wird, das Problem weiterhin besteht.

&nbsp;

Vielen Dank & Schöne Grüße  
TeppichYavuz

&nbsp;

---

<div class="post-metadata">

**Author:** ![\_Sebastian](https://avatars.discourse-cdn.com/v4/letter/_/f6c823/32.png) [@\_Sebastian](https://forum.shopware.com/u/_Sebastian)\
**Post date:** [30. Juli 2018 um 15:11 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336/2 "2018-07-30T15:11:58Z")

</div>

Das wird am AJAX Varianten wechsel liegen.

In der Datei:

/themes/Frontend/Responsive/frontend/\_public/src/js/jquery.ajax-variant.js

```
        defaults: {
            productDetailsSelector: '.product--detail-upper',
            configuratorFormSelector: '.configurator--form',
            orderNumberSelector: '.entry--sku .entry--content',
            historyIdentifier: 'sw-ajax-variants',
            productDetailsDescriptionSelector: '.content--description',
            footerJavascriptInlineSelector: '#footer--js-inline'
        },

```

Der&nbsp; „orderNumberSelector“ darf nur 1x Vorhanden sein.

Bei dir ist dieser Mehrfachvorhanden, der kommt wohl aus „ähnliche Artikel“ und „Kunden haben auch gesehen“, hier habt ihr bestimmt was am Template geändert oder?&nbsp;

---

<div class="post-metadata">

**Author:** ![teppichyavuz](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@teppichyavuz](https://forum.shopware.com/u/teppichyavuz)\
**Post date:** [30. Juli 2018 um 15:22 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336/3 "2018-07-30T15:22:39Z")

</div>

Danke erstmal für die schnelle Antwort!

Ich bin nun ein wenig überfragt. Laut der .js-Datei haben wir dort die selben Angaben stehen, wie die, die du gerade zitiert hast:

> ;(function ($, window) {  
> &nbsp; &nbsp; /\*\*  
> &nbsp; &nbsp; &nbsp;\* Shopware AJAX variant  
> &nbsp; &nbsp; &nbsp;\*  
> &nbsp; &nbsp; &nbsp;\* @example  
> &nbsp; &nbsp; &nbsp;\* HTML:  
> &nbsp; &nbsp; &nbsp;\*
> 
> &nbsp; &nbsp; &nbsp;\*  
> &nbsp; &nbsp; &nbsp;\* JS:  
> &nbsp; &nbsp; &nbsp;\* $(‚\*[data-ajax-variants-container=„true“]‘).swAjaxVariant();  
> &nbsp; &nbsp; &nbsp;\*/  
> &nbsp; &nbsp; $.plugin(‚swAjaxVariant‘, {
> 
> &nbsp; &nbsp; &nbsp; &nbsp; /\*\*  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* Supports the browser the history api  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* @boolean  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\*/  
> &nbsp; &nbsp; &nbsp; &nbsp; hasHistorySupport: Modernizr.history,
> 
> &nbsp; &nbsp; &nbsp; &nbsp; /\*\*  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* Safari specific property which prevent safari to do another request on page load.  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* @boolean  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\*/  
> &nbsp; &nbsp; &nbsp; &nbsp; initialPopState: true,
> 
> &nbsp; &nbsp; &nbsp; &nbsp; /\*\*  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* Default configuration of the plugin  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\* @object  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\*/  
> &nbsp; &nbsp; &nbsp; &nbsp; defaults: {  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; productDetailsSelector: ‚.product–detail-upper‘,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; configuratorFormSelector: ‚.configurator–form‘,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; orderNumberSelector: ‚.entry–sku .entry–content‘,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; historyIdentifier: ‚sw-ajax-variants‘,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; productDetailsDescriptionSelector: ‚.content–description‘,  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; footerJavascriptInlineSelector: ‚#footer–js-inline‘  
> &nbsp; &nbsp; &nbsp; &nbsp; },  
> &nbsp;

&nbsp;

Woran kann ich erkennen, dass dieser mehrfach vorhanden ist und wie kann das Problem behoben werden?&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [30. Juli 2018 um 15:34 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336/4 "2018-07-30T15:34:45Z")

</div>

Auch Plugins können die Ursache sein. Mal alle Plugins deaktiviert und getestet?  
Auch ruhig mal das Theme auf das Standardtheme wechseln und probieren.

---

<div class="post-metadata">

**Author:** ![\_Sebastian](https://avatars.discourse-cdn.com/v4/letter/_/f6c823/32.png) [@\_Sebastian](https://forum.shopware.com/u/_Sebastian)\
**Post date:** [30. Juli 2018 um 16:06 UTC](https://forum.shopware.com/t/dringend-artikeldetailseite-varianten-keine-ubertragung-urls/54336/5 "2018-07-30T16:06:47Z")

</div>

Du musst den Selector anpassen:

sowas wie:

```
$.overridePlugin('swAjaxVariant', {
    init: function() {
        var me = this;
        me.opts.orderNumberSelector = ".NEUERSELECTOR";
        me.superclass.init.apply(this, arguments);
    }
});

```

&nbsp;

Wen du in deinem Quelltext nach „entry–content“ sucht findest du mehrere Ergebnisse

In dem Theme, welches du gekauft hast&nbsp;[https://store.shopware.com/plugindemo/index/articleId/164360/demoId/2340](https://store.shopware.com/plugindemo/index/articleId/164360/demoId/2340) findest du nur 1 Ergebnis
