Page 1 of 1

Order list and shopping cart not updated

Posted: Fri Jan 29, 2016 12:21 am
by th16
Hello,

WHen I add something to my shopping cart and I delete it again the cart is not updating itself, I have to refresh the page. The same happens when I delete a order in the backend orderlist. Is the cache system doing this and how can I skip this cache route.

Thanks

Re: Order list and shopping cart not updated

Posted: Fri Jan 29, 2016 5:40 pm
by Randem
It is not the cache. Is this a multi-store you are operating?

Re: Order list and shopping cart not updated

Posted: Tue Feb 02, 2016 9:55 pm
by th16
No a single system

Re: Order list and shopping cart not updated

Posted: Wed Feb 03, 2016 3:57 am
by Randem
Are you using a third party theme? This might be your answer - http://www.randemsystems.com/support/op ... ty-themes/

Re: Order list and shopping cart not updated

Posted: Mon Feb 08, 2016 2:44 pm
by postgresql
Randem wrote:Are you using a third party theme? This might be your answer - http://www.randemsystems.com/support/op ... ty-themes/
I have the similar problem but it happens only on the very first page. I am using the 2.1.0.2 default theme on a single store.

The cart information just won't refresh after I add or delete something and click the browser back button to back to the very first page of store. I have to press F5 or reload button to force reload the entire page and then the cart shows the correct content.

Is there a way to force reload the cart content on the very first page?

Re: Order list and shopping cart not updated

Posted: Mon Feb 08, 2016 2:52 pm
by Randem
Hi postgresql,

I don't have that issue. Have you checked in another browser? What browser are you using?
I did make a correction to the default theme also. It had a few glitches...

Re: Order list and shopping cart not updated

Posted: Mon Feb 08, 2016 10:40 pm
by postgresql
Randem wrote:Hi postgresql,

I don't have that issue. Have you checked in another browser? What browser are you using?
I did make a correction to the default theme also. It had a few glitches...
hi Randem,

I tested both my site and http://demo.opencart.com on my Android phone and tablet's default browser. It happened all the time. But, it works fine on the computer's browsers.

To reproduce the error, from the very first page, click any top category bar to show the items, for instance, Components --> Monitors , and then click on ADD To CART to add "Samsung SyncMaster 941BW" (which has no extra options) to cart directly. The upper right cart button now shows 1 item without changing to any other page.

Then, click the back button once to back to the very frst page. The upper right cart button shows 0 item as what it was. I am wondering if this is some cache mechanism on mobile browsers? If so, is there any way to force the cart text to reload?

Re: Order list and shopping cart not updated

Posted: Tue Feb 09, 2016 12:15 pm
by Randem
Mobile browser... That would have been where you should have started...

Re: Order list and shopping cart not updated

Posted: Tue Feb 09, 2016 2:07 pm
by postgresql
so, it seems not much we can do to prevent from this problem so far?

Re: Order list and shopping cart not updated

Posted: Sun Apr 24, 2016 3:03 am
by waiteru
here is the script I add in common.js to fix the issue, but it is refreshing the whole page Is it possible to reload cart div instead of the entire page?

Code: Select all

window.onpageshow = function(event) {
    if (event.persisted) {
        window.location.reload() 
    }
};

Re: Order list and shopping cart not updated

Posted: Sun May 01, 2016 12:27 am
by waiteru
any solution? like cart refreshed on each pageload.