"Add to Cart" Button Does Not Update Product Items

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Wed Sep 19, 2012 7:27 pm
It has just came to my attention that after pressing the Add to Cart button, the product items are not updated. Please see for example:
http://www.crystalp.gr/%CE%BA%CE%B1%CF% ... -gr-detail
I haven't noticed this issue before, since my website is under development.

Note that I have just downloaded the updated VM 2.0.10 override files for "yourShop" template that solved other important issues, while note that I do not use cache (system or Gavick). Also note that the Add to Cart button can be pressed only if I uncheck "Using the Virtuemart jQuery" in the VM2 configuration.

In older posts I have noticed that the no add to cart functionality may be caused due to my host's (SiteGround) security level. I am pretty sure that it is not a templates bug, since I have observed the same problem with the standards Joomla! templates.

I am a little bit confused, so any help by your experienced technical support, about what I have to take care of, is much appreciated.

Thanks
User avatar
Junior Boarder

GK User
Thu Sep 20, 2012 7:31 am
I've checked your site and see that there is javascript error on 'add to cart' button click. The problem is related with jQuery library which don't work in noConflit(). Please disable jQuery in VM settings, then make sure that any other extension don't include jQuery library.
User avatar
Platinum Boarder

GK User
Thu Sep 20, 2012 9:57 am
Thank you for your quick reply.

Actually, my problem was a SEF redirection issue as described in
http://forum.virtuemart.net/index.php?topic=95787.0

For other people how possibly face the same issue, when first uploading to a host, I solved it as follows:
1) Enable"Using the Virtuemart jQuery" in the VM2 configuration to load jQuery and noConflic in HEAD section.
2) Modifiy .htacess file as described in SiteGround Knowledge Base:
http://kb.siteground.com/article/How_to ... r_URL.html
User avatar
Junior Boarder

GK User
Sat Sep 22, 2012 7:28 pm
Thanks for sharing your solution - it will be helpful for other members.
User avatar
Platinum Boarder

GK User
Thu Oct 18, 2012 8:32 pm
Hi Gavick Folk -

I could use a little help with this. I too am not getting my cart to clear in Virtuemart 2.0.12b, with J1.73, esport template.

I have Virtuemart JQuery enabled in the config. What should I have my site cache settings (throughout the site) in order to get the cart to clear - currently when I click the X to clear an item from the cart it does not clear. This post left me unclear on the best settings and solution to the problem. (moderator indicates don't have any cache settings in the whole site, am I reading that correctly?). I have enabled gk cache and gk ext cache. Joomla global settings: checked yes; SEF URL's, Progessive Cache.

Thanks.
User avatar
Expert Boarder

GK User
Thu Oct 18, 2012 8:45 pm
You just need to update cache plugin from latest template - that's all. I've fixed problem with VM cart pages.
User avatar
Platinum Boarder

GK User
Tue Oct 30, 2012 4:34 am
...on the cache problem, here is my "bone-head question", since reading the forum (a lot on cache related) I would rather ask first then assume and then be adding to my worries:

Should I delete the plg_gkcache plug-in as an installed plugin (BEFORE, or as the first step) THEN upload from extension manager the plg_gkcahce plugin from the J1.7 restfiles that I just downloaded? I don't need to worry about the plg.system.gavickEXTcache.zip?

Note: I'm having no other issues with any cache function - AND the cart not clearing issue does not occur when I load the site from IE9, it only occurs in firefox.

Thanks - just being extra cautious as I'm not a "pro" and would be very bummed going steps backwards right now with another new problem, if I take the wrong step with this...

FYI - I'm on J 1.7 and my gavick esport is not updated (see screen shot)
- I REALLY need the site to be live NOW and since all is good I'm hesitant to do anything that could push back my launch any further. My thinking is if I resolve it without updating, the site is truly fully done -- then if I do updates and have problems popup, I still have my original working site to fall back on without adding some unforeable setbacks.
User avatar
Expert Boarder

GK User
Tue Oct 30, 2012 8:51 am
Please just download rest_files packages ,find GK Cache and GK Ext Cache plugins and install them again using build in Joomla! extension manager - this should work.
User avatar
Platinum Boarder

GK User
Tue Oct 30, 2012 3:13 pm
ok - thanks for helping me be extra careful... will let you know if problem persists.
User avatar
Expert Boarder

GK User
Thu Nov 22, 2012 4:10 am
Hi Bkrztuk,

Yikes! Well not awful, but bad timing (my site was just promoted to a big money group of emirate and uk guys yesterday, need to fix this fast).

Here's the status and what I've done:

Per your advice, I have pulled from the current rest files and updated the plugins for gk cache and gk ExtCache. No issues appeared from that update.

But, my cart still won't clear when you check the "x" "remove item from cart", it just stays on the same page with the no change.Joomla Global cache is set for disabled. Both plugins are enabled. The order in the plugins is SEF, the GK cahce, then GK ExtCache as forum noted. Use GK Cahce is "On" in template settings. I've confirmed all these prior to sending you this. I've cleared all joomla maintenance functions in global (and refreshed).

Problem number two: which is even more a problem... In my cart there are no prices, in fact the only thing that shows is the quantity, even though I have checked all check boxes in the Virtuemart config, and checked all check boxes in the vm groups for both anonymous and default groups. (screen shots here).

I need to get the cart working right asap - the group I've been working to network into are headed to my site, it's going to be a disaster if they can't get around the cart! Please help!!

My Virtuemart is current 2.0.12. Site is https://golfsgreatheritage.com, eSport, Joomla 1.73
(I'm PM again my access to site as well so you have that)
User avatar
Expert Boarder

GK User
Thu Nov 22, 2012 8:39 am
Yes in fact the problem exist, I've asked you about ftp details via PM - please send me all necessary informations.
User avatar
Platinum Boarder

GK User
Thu Nov 22, 2012 10:42 am
ok, sending again on PM for ftp
User avatar
Expert Boarder

GK User
Fri Nov 23, 2012 5:41 pm
Per PM message - see this screen shot.
Thanks!
User avatar
Expert Boarder

GK User
Fri Nov 23, 2012 8:27 pm
Please switch template to 'Beez' and check whether the other issues than updating cart occur. I suspect this is more VM issue than template problem.
User avatar
Platinum Boarder

GK User
Sat Nov 24, 2012 5:22 am
Yes, I think it's VM issue, the VM forum indicates instability from posts on VM 2.0.X. Here is the Beez screen shot with the same thing. I have no clue what to do to solve it... I have all the boxes checked to "show everything" as you see in my earlier screen shots, I've done nothing custom here to the site, the VM forum is awful - I've searched it but the information is not conclusive (thankfully Gavick Group has a clue) and without a fix I'm really worthless on this site... Hope you have an idea where the solution lies.... With this resolved the site is exceptional and functional - with flying colors, without a price showing up in the cart - it's not so great... so close, can you please help me!!
Thanks!
User avatar
Expert Boarder

GK User
Sat Nov 24, 2012 6:03 am
here a links I've seen, not sure how to apply them here, so forwarding to hopefully help you diagnose the issue:

https://www.gavick.com/forums/eshop-com ... ice#p72847

https://www.gavick.com/forums/140/vm-2- ... ice#p71451

The second one looks like me, but I need a little extra guidance... Thanks! ;)
User avatar
Expert Boarder

GK User
Sat Nov 24, 2012 11:15 pm
If the same happen on Beez you should ask question on VM support forum because VM as a 3rd party extension is beyond our support.
User avatar
Platinum Boarder

GK User
Sun Nov 25, 2012 6:49 am
The template people at Omega had this solution: Maybe Gavick could offer a Gavick template suggestion (I'm not the only post with this problem at the Gavick Forum)? I think a functioning cart was assumed as part of the esport template that I downloaded (VM was part of that package download). Here is the link to this post: http://www.omegatheme.com/ot-petshop/pr ... ckout.html

Omega Posted:
Prices not showing in VirtueMart Checkout. 4 months, 2 weeks ago #1719

I bought the OT-Petshop template because of the way it worked with VirtueMart. I have the template loaded and loaded VM 2.08c. The problem is the prices do not show it the checkout page.

I changed the default template to the joomla default and the prices show on the checkout page fine. When I switch back to the OT-Petshop template the prices disappear again.

Is there an update for the template, or can someone send me info on what to do?

Thanks
Reply Quote
Re: Prices not showing in VirtueMart Checkout. 4 months, 2 weeks ago #1727
Moderator
Posts: 817
Karma: 21

Hi,
This template currently support VM 2.0.6 (with the patch we provided).
Until we update to newest VM, you can try doing this:
Rename this file templates/ot_petshop/html/com_virtuemart/cart/default_pricelist.php to templates/ot_petshop/html/com_virtuemart/cart/_default_pricelist.php

Thanks
Reply Quote
The following user(s) said Thank You: burntwear
Re: Prices not showing in VirtueMart Checkout. 4 months, 2 weeks ago #1736


thanks that worked for me, I had installed 2.0.8 before reading this and could not figure it out, after read this I put back 2.0.6 and the patch again and working now.
User avatar
Expert Boarder

GK User
Sun Nov 25, 2012 5:27 pm
This is the fix per Virtuemart

"look into default_pricelist.php in the template's folder. That one needed some updates; replaced it with the one in the component folder and now it works well."
User avatar
Expert Boarder

GK User
Mon Nov 26, 2012 1:34 pm
Of course your template is up to date and you are using latest supported VM so 2.0.12f ?
User avatar
Platinum Boarder

GK User
Tue Nov 27, 2012 3:38 am
Hi - thanks, making headway and learning more about the process. I'll confirm in another day, I think it should be resolved then. My lack of understanding of some terms used in the discussion was part of the problem. You're right with what your advising... got some excellent help at the virtuemart forum that really helped me too.
User avatar
Expert Boarder

GK User
Tue Nov 27, 2012 10:20 am
Yes VirtueMart forum is doing great job and support for this free extension. If you have some problems which might be related with our template please let me know.
User avatar
Platinum Boarder

GK User
Tue Dec 04, 2012 6:29 pm
Hello,
I am experiencing a similar cache problem as described above but probably not the same (yourShop template).
When I add a product to the cart from the frontpage, the number is updated in the cart symbol at the top of the page. if i then go to the checkout page the item is following as it should. However, if I then go back to the frontpage (by pressing the home button fex), the previous cached value is there, not the updated one.

I am using the latest gk_cache plugins, in correct order, and I have enabled caching in the templates configuration.

This does not happen when template caching is disabled.
Are you familiar with this issue or is there something I have missed?

Thanks again,
User avatar
Junior Boarder

GK User
Wed Dec 05, 2012 12:38 am
Hi again,
I have tested some more here now and realize that the same issue occurs as the system cache is on while the gk cache for the template is turned off, unlike I described in the previous post. This means that it is not a template problem but rather a virtuemart consideration. Sorry about that hehe.

Instead of using system cache I tested JotCache with specifically disabling the VM cart files (as described earlier in the forum). That did solve the problem although I'm not too satisified with the site speed.

Will the gk template cache plugins will function without the joomla system cache enabled but rather JotCache?

Thanks again,
regards
User avatar
Junior Boarder

GK User
Wed Dec 05, 2012 9:54 am
Our cache plugins exclude VM cart pages from cache and if only you have configured our cache properly and disable Joomla! cache you should have any problems.
User avatar
Platinum Boarder

GK User
Wed Dec 12, 2012 3:40 am
Hi,
Thanks for your reply Bkrztuk, and also thanks Teitbite for answering my email.
I used JotCache and did some other changes as well as writing a cron script that generates cache's on a regular basis and it runs quite ok now. The cart issues were solved. Regarding the image show I thought I would try to run the javascripts in a different prioritized manner, before all the vm etc is loaded up.

Thanks again
User avatar
Junior Boarder

teitbite
Thu Dec 13, 2012 2:01 pm
Hi

Ok. I was asked to jump into the discussion here, but I can see it's solved now.
About the image show issue, I've discovered recently that VM plugin "stockable" can be the problem here. Pleas try to use a different module since this problem will be solved or unpublish this plugin if You are not using it.
User avatar
Moderator


cron