cart module no refresh

GK User
Fri Jul 24, 2015 5:35 am
Hi,
I need some help with the cart module again please,
it does not refresh the value after adding a product. Only after refreshing the browser.

storefront 3.18
User avatar
Fresh Boarder

teitbite
Fri Jul 24, 2015 3:17 pm
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

GK User
Sat Jul 25, 2015 7:06 am
access data sent via PM.
User avatar
Fresh Boarder

teitbite
Sat Jul 25, 2015 10:12 am
Hi

Looks like one of 3rd party extensions is preventing for this to be changed and not cache. Please send me an access to FTP, so I'll try to make an override for this.
User avatar
Moderator

GK User
Sat Jul 25, 2015 12:46 pm
access data sent.
User avatar
Fresh Boarder

teitbite
Sun Jul 26, 2015 10:21 am
Hi

Had to resend this to programmers for a fix. Will let You know when I'll have an answer.
User avatar
Moderator

GK User
Sun Jul 26, 2015 1:04 pm
Thank you.
User avatar
Fresh Boarder

teitbite
Tue Jul 28, 2015 10:03 am
Hi

Just to keep You in a loop. Programmers gave me couple of tips how to fix this, unfortunately none of them was working. Now they will try to take care of that. Will inform You when they succeed.
User avatar
Moderator

GK User
Tue Jul 28, 2015 1:38 pm
I trust in your skills! Thanks.
User avatar
Fresh Boarder

teitbite
Fri Jul 31, 2015 8:50 am
Hi

Looks like problem is fixed. Issue was that probably Your server is configured to cache AJAX requests so script has to be forced not to store this informations in cache by simply adding:

Code: Select all
cache: false,


to every AJAX request. This will be included in packages soon.
User avatar
Moderator

GK User
Fri Jul 31, 2015 12:07 pm
Great!
I noticed the changes in gk_script.js

Thank you very much!
mizu
User avatar
Fresh Boarder

GK User
Fri Jul 31, 2015 2:27 pm
when you add browser caching as written here:https://www.gavick.com/blog/speed-website-simple-htaccess-tricks
the cart module stops works correctly
User avatar
Fresh Boarder

GK User
Fri Jul 31, 2015 3:29 pm
mizu wrote:Great!
I noticed the changes in gk_script.js

Thank you very much!
mizu



where to correct?
User avatar
Fresh Boarder

GK User
Sat Aug 01, 2015 11:18 am
@Aquincum

templates\gk_storefront\js\gk.scripts.js

just enter what's in red.

line 165:

if(!wait) {
jQuery.ajax({
url: $GK_URL + 'index.php?tmpl=cart',
cache: false,
beforeSend: function() {

line 205:

jQuery.ajax({
url: $GK_URL + 'index.php?tmpl=json',
cache: false,
success: function(data,textStatus) {
User avatar
Fresh Boarder

teitbite
Mon Aug 03, 2015 11:15 am
Hi

Yes, that's correct and this fix will be included in the newest update as well, so editing templates\gk_storefront\js\gk.scripts.js is just a temporary solution.
User avatar
Moderator

teitbite
Thu Oct 15, 2015 11:18 am
Hi

I've just got a message from programmers that this fix has been released.
User avatar
Moderator


cron