View Issue Details

IDProjectCategoryView StatusLast Update
0004115OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:27
Reportertheck Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSubuntuOS Version4.10
Product Version4.6.1 revision 45706 
Fixed in Version4.7.0_5.0.0_beta1 
Summary0004115: JavaScript-TypeError in multi-dimensional product variants with graduated prices
DescriptionThere 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 Reproducesee 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 InformationOutput 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
TagsProducts
ThemeAzure
BrowserAll
PHP Version5.3
Database Version5.1

Activities

edvardas_gineika

2012-06-11 11:21

reporter   ~0006843

Last edited: 2012-08-03 13:45

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