Critical Cart Functionality Does Not Work On Internet Explorer 8

Hello, I have posted the following bug in the Bugtracker, but I also want to post it in the Forums because it affects critical cart functionality.



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]Hello,[/size][/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]In my opinion, this is a very important bug and it also exists on the demo.cs-cart.com.[/size][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]A lot of cart's critical functionality, like Add Product to Cart, Quick View or changing tabs on the Checkout page are not working when you use Internet Explorer 8. Of course, since you cannot change tabs on Checkout, you can never place an order.[/size][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]Tested with Internet Explorer 9, Chrome and Firefox and everything is OK. The problem is only on Internet Explorer 8 as far as I know.[/size][/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]I did a lot of research and finally solved it. I will present the solution I have found as a workaround.[/size][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]The error presented in Internet Explorer affects the following javascript:[/size][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]your_store_url/js/tygh/responsive.js[/size][/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]On line 279 exists the following code:[/size][/font][/color]



[color=#000000] window[/color][color=#666600].[/color][color=#000000]addEventListener[/color][color=#666600]([/color][color=#008800]'orientationchange'[/color][color=#666600],[/color][color=#000000] [/color][color=#000088]function[/color]color=#666600[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] [/color][color=#000088]if[/color][color=#666600]([/color][color=#000000]ui[/color][color=#666600].[/color][color=#000000]winWidth[/color]color=#666600[/color][color=#000000] [/color][color=#666600]<=[/color][color=#000000] [/color][color=#006666]767[/color][color=#666600])[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] ui[/color][color=#666600].[/color][color=#000000]resizeDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]}[/color]

[color=#000000] $[/color][color=#666600].[/color][color=#000000]ceDialog[/color]color=#666600.[/color][color=#000000]ceDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]},[/color][color=#000000] [/color][color=#000088]false[/color][color=#666600]);[/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]In order for the problem to be solved the above part must be changed to:[/size][/font][/color]



[color=#000088]if[/color][color=#000000] [/color]color=#666600[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] window[/color][color=#666600].[/color][color=#000000]addEventListener[/color][color=#666600]([/color][color=#008800]'orientationchange'[/color][color=#666600],[/color][color=#000000] [/color][color=#000088]function[/color]color=#666600[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] [/color][color=#000088]if[/color][color=#666600]([/color][color=#000000]ui[/color][color=#666600].[/color][color=#000000]winWidth[/color]color=#666600[/color][color=#000000] [/color][color=#666600]<=[/color][color=#000000] [/color][color=#006666]767[/color][color=#666600])[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] ui[/color][color=#666600].[/color][color=#000000]resizeDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]}[/color]

[color=#000000] $[/color][color=#666600].[/color][color=#000000]ceDialog[/color]color=#666600.[/color][color=#000000]ceDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]},[/color][color=#000000] [/color][color=#000088]false[/color][color=#666600]);[/color]

[color=#666600]}[/color][color=#000000] [/color][color=#000088]else[/color][color=#000000] [/color][color=#000088]if[/color][color=#000000] [/color]color=#666600[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] window[/color][color=#666600].[/color][color=#000000]attachEvent[/color][color=#666600]([/color][color=#008800]'orientationchange'[/color][color=#666600],[/color][color=#000000] [/color][color=#000088]function[/color]color=#666600[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] [/color][color=#000088]if[/color][color=#666600]([/color][color=#000000]ui[/color][color=#666600].[/color][color=#000000]winWidth[/color]color=#666600[/color][color=#000000] [/color][color=#666600]<=[/color][color=#000000] [/color][color=#006666]767[/color][color=#666600])[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000] ui[/color][color=#666600].[/color][color=#000000]resizeDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]}[/color]

[color=#000000] $[/color][color=#666600].[/color][color=#000000]ceDialog[/color]color=#666600.[/color][color=#000000]ceDialog[/color]color=#666600;[/color]

[color=#000000] [/color][color=#666600]},[/color][color=#000000] [/color][color=#000088]false[/color][color=#666600]);[/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]Waiting for your response, I will also post this on the Forum, so people can apply this fix and not lose orders from Internet Explorer 8 users.[/size][/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]Thank you and have a nice day,[/size][/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]Lefteris[/size][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][size=3]www.evrima.gr[/size][/font][/color]

The link to the Bug Tracker post is:



http://forum.cs-cart.com/tracker/issue-5283-critical-cart-functionality-does-not-work-on-internet-explorer-8/



Thank you :)

What version of CS-Cart is this?

[quote name='kingsleypress' timestamp='1412770464' post='193633']

What version of CS-Cart is this?

[/quote]



CS-Cart 4.2.1 and 4.2.2 for sure.

Definitely not for 2.2.4 (IE 8 works well there) and I don't know for branch 3.x.x and 4.0.x and 4.1.x

Do you know if this was fixed in 4.2.3?

[quote name='kingsleypress' timestamp='1413943027' post='194783']

Do you know if this was fixed in 4.2.3?

[/quote]



This will be fixed in CS-Cart 4.3.1.

[quote name='cscartrocks' timestamp='1413972918' post='194840']

This will be fixed in CS-Cart 4.3.1.

[/quote]



So we should apply this manual fix posted above? I am using the VIVAshop theme…are the instructions still the same?

[quote name='kingsleypress' timestamp='1413976690' post='194849']

So we should apply this manual fix posted above? I am using the VIVAshop theme…are the instructions still the same?

[/quote]



You can see the instructions here:



http://forum.cs-cart.com/tracker/issue-5283-critical-cart-functionality-does-not-work-on-internet-explorer-8/

[quote name='kingsleypress' timestamp='1413943027' post='194783']

Do you know if this was fixed in 4.2.3?

[/quote]





There are other problems in 4.2.3 for IE8.

You can try to open home page http://demo.cs-cart.com.

I attached a screenshot.



In the product page, tab links or Add to wish list … do not work.

cscart423.gif