Post by th16 » Fri Jan 29, 2016 12:21 am

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

Newbie

Posts

Joined
Sat Jan 23, 2016 1:33 am

Post by Randem » Fri Jan 29, 2016 5:40 pm

It is not the cache. Is this a multi-store you are operating?

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by th16 » Tue Feb 02, 2016 9:55 pm

No a single system

Newbie

Posts

Joined
Sat Jan 23, 2016 1:33 am

Post by Randem » Wed Feb 03, 2016 3:57 am

Are you using a third party theme? This might be your answer - http://www.randemsystems.com/support/op ... ty-themes/

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by postgresql » Mon Feb 08, 2016 2:44 pm

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?

Newbie

Posts

Joined
Tue Dec 22, 2015 7:59 pm

Post by Randem » Mon Feb 08, 2016 2:52 pm

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...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by postgresql » Mon Feb 08, 2016 10:40 pm

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?

Newbie

Posts

Joined
Tue Dec 22, 2015 7:59 pm

Post by Randem » Tue Feb 09, 2016 12:15 pm

Mobile browser... That would have been where you should have started...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by postgresql » Tue Feb 09, 2016 2:07 pm

so, it seems not much we can do to prevent from this problem so far?

Newbie

Posts

Joined
Tue Dec 22, 2015 7:59 pm

Post by waiteru » Sun Apr 24, 2016 3:03 am

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() 
    }
};

Newbie

Posts

Joined
Fri Apr 22, 2016 11:34 pm

Post by waiteru » Sun May 01, 2016 12:27 am

any solution? like cart refreshed on each pageload.

Newbie

Posts

Joined
Fri Apr 22, 2016 11:34 pm
Who is online

Users browsing this forum: No registered users and 59 guests