Post by bfk » Mon Oct 24, 2011 1:41 am

I get this message: “Warning: Shipping method required” but I found out that is relate with cashe in Internet Explore

I have Internet Explorer 9 and Opencart 1.5.1

When I buy products and go to checkout page for first time on the web page I don’t have any problem to go to payment page.
When I want to test for the second time and go to checkout, the process stop in shipping.
With the message: Warning: Shipping method required! But the shipping is already chosen.
If I clear/delete cache and temporary history on my browser Internet Explorer, the “Warning: Shipping method required!” disappear, so the problem is the Internet Explore cashing system.
How can I solve this problem?
It works fine on Firefox.

Thanks

bfk
Newbie

Posts

Joined
Thu Oct 20, 2011 10:14 pm

Post by uefa_celt » Mon Mar 26, 2012 7:17 am

I have this exact same issue. I have been testing with Chrome so far, but IE9 is showing some strange results - checkout sections are being cached. Do you have any resolution to this?

Newbie

Posts

Joined
Thu Feb 16, 2012 8:08 am

Post by uefa_celt » Tue Mar 27, 2012 6:32 am

To fix this, add the following code to the top of opencart/index.php :

Code: Select all

header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
IE is a bit of a stickler for caching pages apparently and is apparent in many other Ajax apps. This will tell the browser not to cache it. Works for me. Would be good if we could configure these settings in admin.

Newbie

Posts

Joined
Thu Feb 16, 2012 8:08 am
Who is online

Users browsing this forum: No registered users and 2 guests