virtuemart cart quantity does not refresh when its changed

GK User
Thu Sep 13, 2012 1:14 am
when i set my GK Cache (on) and turn on both gkcache plugin (on) at check out my products does not update when i change the quantity or can be remove.

i also tried disabling the GK cache and enable System - Cache this setting will allow updating quantity but still not working properly. i will remove the item and it will show up again when i add another product to the cart.
User avatar
Fresh Boarder

GK User
Thu Sep 13, 2012 7:33 am
This is common issue with cache modules in Joomla. VirtueMart pages should not be cached and we try to implement some solution for this problem - the same effect you will get with default Joomla cache. Right now the only way is to disable cache at all.
User avatar
Platinum Boarder

GK User
Wed Sep 19, 2012 3:38 pm
Please install latest template update - it includes VM 2.0.10 version. In rest files package you will find the updated GK Ext Cache plugin which resolve all problem with cache in VM pages.
User avatar
Platinum Boarder

GK User
Tue Jul 23, 2013 4:02 pm
Hi bkrztuk

I know this topic is 3 years ago but I was looking for information in Google and come here. I've a problem from quite some time. I've looking for information in a lot of sites, in VM forum and in others sites and I'm not get a solution for this problem.

The problem is cache and VM, it not works properly from several previous versions, I'm going crazy, a lot of time triyng to solve this and I have not gotten any positive results.

When cache is enable shopping cart not works fine, quantity of products not refresh, if I add a new product it not appears in my shopping cart but worst of all is that what I add to the cart and not is refreshed appears to another person on another computer! (when a costumer is logged this problem not happen)

Also pagination in VM pages not works properly. I would like a way to operate cache properly (i have been testing different cache methods, progressive cache of Joomla, GK Cache, using Extended GK Cache, nothing work for me), or maybay dissabled cache for all VM (component and modules but i don't know to do that).

I know this is not a problem your, I'm desperate and do not know what else to do.

I will be very very grateful for any help you can give me.

Regards.

P.S. My website is www.juguetitossex.es (cache is not enabled now)
User avatar
Senior Boarder

GK User
Wed Jul 24, 2013 10:24 am
The issue with cache was resolved (of course when you use our cache plugins not default Joomla!) and all that you need is to update plugins.
User avatar
Platinum Boarder

GK User
Wed Jul 24, 2013 1:20 pm
Hi bkrztuk.

I updated plugins and template about 1 month ago (template is bike store).

I've configured cache using your cache plugins. You can see attachments but, this is the best configuration to activate cache? The time for first byte is a bit high (it's takes 2-4 seconds around), load of the rest is quite fast. Last test:

TTFB: 2.234
Total time: 2.732

I've tried optimize at maximun all resources (images, compression, javascript), now i get 96% grade of pagespeed and 82% grade of Yslow tested in gtmetrix. I will use CDN for some resources coming days but i think this will not affect to TTFB.

Using joomla native progressive cache it took 1 second around but shopping cart and pagination not worked properly.

Also i've tried javascript compression but i get some errors (you know some manual to configure javascript compression and url's excludes correctly?)

I dont know what else to do to improve the load time of the first byte but customers complain that the site loads a little slow.

Regards.
User avatar
Senior Boarder

GK User
Thu Jul 25, 2013 10:22 am
Probably the last thing is to switch to better hosting. In regard to topic title, with updated cache plugins the cart is working fine ? I know that with default J! cache the cart have problem but this is not template but VirtueMart issue.
User avatar
Platinum Boarder

GK User
Thu Jul 25, 2013 2:16 pm
Yes, with that cache configuration cart and VM configuration work fine but looks like not as powerful as with joomla cache, many modules not saved in cache.

I think problem is in database, my hosting is pretty good (VPS in dinahosting). Yesterday I did some modifications, now my website works with pagespeed API and response time is very good, but index takes enough time probably because requests to the database.

A few days ago the last nsp_gk4 module of index took a lot of time in response. It was configurated to show random products of all categories (around of 8000 products) and I changed it to show random products of 40 products and it decreased a lot TTFB. Now do not know what else to do (tables are optimizated), maybe some javascript that is loaded in index.php is taking too long to load but I tested and I don't know what is happening. In GTmetrix i get 95% pagespeed and 89% Yslow grade, response time of all resources is pretty good but index is still quite slow.

http://www.juguetitossex.es
User avatar
Senior Boarder

GK User
Fri Jul 26, 2013 11:01 am
Yes, with that cache configuration cart and VM configuration work fine but looks like not as powerful as with joomla cache, many modules not saved in cache.


When you look at the Joomla! cache plugin and our one you will see that they are exactly the same ;) of course in our plugin we trigger some additional functions necessary for our templates work but the whole cache idea and way how files are created is exactly the same. You may thing that cache files are not created for some modules but in fact our cache use gk_cache subdirectory and /desktop, /mobile variants.
User avatar
Platinum Boarder

GK User
Fri Jul 26, 2013 3:49 pm
Well... i thought it works fine but not... I had modificated /plugins/system/cache/cache.php for not activate cache for guests...

With default files it still not works, is better than Joomla cache but not perfect. I explain:

1- Looking a category and add a product to cart. Show cart (attachment 1). It works fine.
2- Looking other category and adding other product to cart. Show cart (see the same attachment 1, not modify). Not works, product apparently not added to cart. Now I update product quantity and two products appear correctly (attachment 2).
3- If I go to other category and return to cart only appears the first product (first cart page I see is the first page stored in cache).

It not works like I thought. I've tried changing code in /plugins/system/cache/cache.php but none have work. For example, I've tried deactivated cache in cart page like this:

original code (line 75):
Code: Select all
if ($user->get('guest') && $_SERVER['REQUEST_METHOD'] == 'GET') {

code that works fine in VM 1
Code: Select all
if ($user->get('guest') && !$_SESSION['cart']['idx'] && $_SERVER['REQUEST_METHOD'] == 'GET') {


But this code not works in VM2. How could exclude shopping cart from cache?

Regards.
User avatar
Senior Boarder

GK User
Fri Jul 26, 2013 6:56 pm
Yeah!

Looks like to be solved. After doing thousand tests I download rest of files of my template and update GK Extended Cache, it was 1.0 version, and now 1.0.1. I've tested and seems to works properly!

It's weird because about 1 month ago I updated the template and this plugin not updated but well, now works :)

Virtuemart pagination problem persists, when I go to page 2 or 3 (only sometimes), it reload page 1. I think it's a duplication pagination problem (Joomla and VM pagination). I will continue researching and if I find the solution I will share with you.

Thank you bkrztuk for your time, I appreciate it.
User avatar
Senior Boarder

GK User
Mon Jul 29, 2013 9:07 am
Yes I said that we have fixed this problem with VirtueMart in one of the plugin updates. In fact the problem still exist with default Joomla! cache and Virtuemart but this is not the template issue.
User avatar
Platinum Boarder


cron