View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002809 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2011-04-29 15:44 | 2012-12-07 14:28 |
Reporter | Stefan_Werner | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Target Version | 4.5.1 revision 38045 | Fixed in Version | 4.5.1 revision 38045 | ||
Summary | 0002809: Redirect to startpage after selecting an variant at details view using IE | ||||
Description | after selecting an variant in details view using IE (8+9) i will be redirected to startpage | ||||
Tags | Products | ||||
Theme | |||||
Browser | Internet Explorer 9.x, Internet Explorer 8.x | ||||
PHP Version | any | ||||
Database Version | any | ||||
has duplicate | 0002785 | closed | birute_meilutyte | Dropdown for multidimensional variants do not work at all with IE8 / IE9 and FF4 in AZURE |
|
We just debugged this and found a solution for this problem. You need to change the following lines in src/gui.js (line numbers are from the 4.5.0 final release): line 497: this is the $("ul.vardrop a").bind( "click", function() event handler: - obj.parent('li').parent('ul').prev('input').attr( "value", obj.attr("rel") ); + obj.parent('li').parent('ul').siblings('input:hidden').attr( "value", obj.attr("rel") ); line 551: this is the $(".oxProductForm").submit(function ()) event handler: - if (oxVariantSelections.indexOf(hash) < 0) { + if ( jQuery.inArray(hash, oxVariantSelections) ) { The prev() function doesn't seem to work as expected in line 497, but using siblings() seems to work. This results in the variant id not being written into the hidden field that is later used for the hash variable. Line 551 crashes with a message that indexOf is not supported on that element, but the inArray function of JQuery works in that case. |
|
thnx for hint! |