I am running Magento 2.1.1
in apache2.4
.
I always see some random errors in the shopping cart.
The cart cannot calculate the grand total(nothing show) and cannot go to checkout page after clicking the checkout button.
This error happens randomly (around 40%) in responsive mobile version.
-
Why you run this old version? Update asap to last version.– LucScuCommented Jul 20, 2017 at 6:51
-
Do you mean 2.1.7? I tried before. But no idea why it slowed down my system.– user631607Commented Jul 20, 2017 at 8:23
-
I updated to 2.1.7. Same errors happen in mobile view. Seems that the JS crashed in mobile view only.– user631607Commented Jul 20, 2017 at 8:46
-
have you original luma or custom theme?– LucScuCommented Jul 20, 2017 at 17:59
-
I am using custom theme– user631607Commented Jul 21, 2017 at 3:06
|
Show 1 more comment
1 Answer
I found the reason why js crashed in mobile only. Because I added a live chat javascript at the footer and this javascript does not support mobile.
I added a screen width checking to remove the plugin in mobile view and fixed it.
<script>
if (screen && screen.width > 480) {
document.write('<script type="text/javascript" src="foo.js"><\/script>');
}
</script>