View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004115 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2012-06-04 09:54 | 2012-12-07 14:27 |
Reporter | theck | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | ubuntu | OS Version | 4.10 |
Product Version | 4.6.1 revision 45706 | ||||
Fixed in Version | 4.7.0_5.0.0_beta1 | ||||
Summary | 0004115: JavaScript-TypeError in multi-dimensional product variants with graduated prices | ||||
Description | There where product variants defined with graduated prices, these are not inherited from the parent product. The error occurs on the product detail page when you select a product variant. The pull-down menus do not react anymore. Once the product is for example placed in the cart, everything works again. It also works with products without graduted prices. | ||||
Steps To Reproduce | see description and detail page on: http://www.thinkfab.de/oxid/Bekleidung/Test-Fliese.html first select a product variant ('format' and 'farbe') and then try to change it.. | ||||
Additional Information | Output of the error on the console (oxajax.js:210): TypeError arguments: Array[2] get message: function () { [native code] } get stack: function () { [native code] } set message: function () { [native code] } set stack: function () { [native code] } type: "undefined_method" __proto__: Error arguments: undefined constructor: function TypeError() { [native code] } arguments: null caller: null length: 1 name: "TypeError" prototype: Error arguments: undefined constructor: function TypeError() { [native code] } name: "TypeError" stack: undefined type: undefined __proto__: SetUpError.d constructor: function Error() { [native code] } message: "" name: "Error" toString: function toString() { [native code] } arguments: null caller: null length: 0 name: "toString" __proto__: function Empty() {} __proto__: Object __proto__: function Empty() {} name: "TypeError" stack: undefined type: undefined __proto__: SetUpError.d constructor: function Error() { [native code] } message: "" name: "Error" toString: function toString() { [native code] } arguments: null caller: null length: 0 name: "toString" __proto__: function Empty() {} apply: function apply() { [native code] } arguments: null bind: function bind() { [native code] } call: function call() { [native code] } caller: null constructor: function Function() { [native code] } length: 0 name: "Empty" toString: function toString() { [native code] } __proto__: Object __proto__: Object | ||||
Tags | Products | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | 5.3 | ||||
Database Version | 5.1 | ||||
|
This will be fixed in 4.7.0/5.0.0 version For those who want to fix this, look at file: /azure/tpl/page/details/inc/productmain.tpl lines 260-261 You need to swap lines in places, that they would read: [{oxscript include="js/widgets/oxamountpriceselect.js" priority=10 }] [{if $oDetailsProduct->loadAmountPriceInfo()}] i.e. to move script loading out of if sentence |