js error in IE11

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

js error in IE11

Post by pixls » 24 Jul 2017, 13:16

Hi

I just found out the aimeos.js in aimeos/Resources/Public/Themes is causing a js error in IE11. Because of this the images in the list view and the filter dont work anymore.

The error seems to be caused by the following for loop:

Code: Select all

for(entry of basket.included) { }
You can see the error here in the aimeos demo shop:
http://typo3.demo.aimeos.org/demo/

TYPO3 8.7.3, PHP 7, aimeos 17.7.0

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: js error in IE11

Post by aimeos » 24 Jul 2017, 16:48

The "for of" loops are part of the ES6 standard and seem to be only supported since IE12 (Edge). The alternative would be a "for(i=0; i<basket.included.length;i++)" loop. Are you able to provide a tested patch for this? Thank you :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pixls
Posts: 26
Joined: 21 Nov 2016, 10:46

Re: js error in IE11

Post by pixls » 25 Jul 2017, 06:24

Thank you very much, this fixed the problem. Just tested in IE11.

Post Reply