Bilderdarstellung Detailseite - {block name='frontend_detail

Hallo, hab das ganze Forum schon durchsucht und nichts gefunden. Ich bin auf der Suche nach der Datei, in welcher das div id=“wrap” erzeugt wird, welches in der Detailansicht eines Produkts um das Produktbild gebildet wird. Ich finde es in keiner Datei --> nicht in /frintend/detail/image.tpl oder sonst wo. Zum Hintergrund --> ich versuche die Größe dieser Ausgabe zu verringern. Hier wird ein Inline-Css erzeugt, welches ich entfernen will. Danke und Grüße

Da kannst du lange suchen… Das steht in der Datei _default/frontend/_resources/javascript/jquery.shopware.js Was willst du genau machen? Das Bild kleiner darstellen, oder? Hier der Code in der Datei: [code] .fn.CloudZoom = function (options) { try { document.execCommand("BackgroundImageCache", false, true) } catch (e) {} this.each(function () { var relOpts, opts; if ((this).is(’.cloud-zoom’)) { var img = (this).find('img'); (this).css({ ‚position‘: ‚relative‘, ‚display‘: ‚block‘, ‚margin‘: ‚0 auto‘, ‚text-align‘: ‚center‘ }); ('img', (this)).css({ ‚display‘: ‚block‘ }); var img = (this).find('img'); if ((this).parent().attr(‚id‘) != ‚wrap‘) { $(this).wrap(’

‚) } opts = .extend({}, .fn.CloudZoom.defaults, options); opts = .extend({}, opts, relOpts); (this).data(‚zoom‘, new CloudZoom((this), opts)); } else if ((this).is(‘.cloud-zoom-gallery’)) { relOpts = { useZoom: ‚zoom1‘, smallImage: (this).attr('src') }; if(!(this).parent().attr(‚id‘)) { relOpts.smallImage = (this).attr('rev'); } else { relOpts.smallImage = (this).attr(‚src‘); } opts = .extend({}, relOpts, options); (this).data(‚relOpts‘, opts); (this).bind('click', (this), function (event) { event.preventDefault(); var data = event.data.data(‚relOpts‘); ('#' + data.useZoom).data('zoom').destroy(); (’#’ + data.useZoom).attr(‚href‘, event.data.attr(‚href‘)); ('#' + data.useZoom + ' img').attr('src', relOpts.smallImage); (’#’ + event.data.data(‚relOpts‘).useZoom).CloudZoom(); //fading picture if (.browser.msie && parseInt(.browser.version) > 8) { $(’#wrap’).fadeTo(0,0.01).delay(200).fadeTo(200,1); } return false; }); } }); return this }; [/code]

1 „Gefällt mir“

Optimal. Genau den Eintrag habe ich gesucht. Ich will den Part: $(this).wrap(’

ändern, sodass die width nicht mit angegeben wird. Danke. :thumbup: