VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: stuclark on January 06, 2012, 18:30:11 PM

Title: Add to cart issues - what's the actual solution?
Post by: stuclark on January 06, 2012, 18:30:11 PM
EXPLANATION IN POST 2   BANQUETTABLES.PRO


There's lots of posts on these forums about issues getting products to add to the cart properly in VM2. I've been suffering from this issue myself and haven't been able to find a full fix; so I thought it might be helpful to try to link all the discussions together so everyone can try to understand what does and doesn't work.

In my case, I'm using the JS_Elated template, which does indeed load jquery within the template. The solution I have so far (which works *most of the time* with Firefox and Chrome, but NOT in IE) was to delete the jquery line from the main JS_Elated template file so it's only loaded when Virtuemart wants it. I then turned ON all the json options in Virtuemart configuration, as turning off ANY of them caused add to cart to break completely.

However, as I've just said, this has NOT fixed the problem in IE for me so is only a partial fix.

Other threads discussing the same issue are:
http://forum.virtuemart.net/index.php?topic=95765.0
http://forum.virtuemart.net/index.php?topic=95977.0
http://forum.virtuemart.net/index.php?topic=95879.0
http://forum.virtuemart.net/index.php?topic=92815.0
http://forum.virtuemart.net/index.php?topic=95699.0
http://forum.virtuemart.net/index.php?topic=95394.0
http://forum.virtuemart.net/index.php?topic=92421.0

...and others I'm sure.

Please add useful tips on what you may have done to fix these issues in this thread. (admins, can this be a sticky so *everyone* can find it?)
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on January 06, 2012, 18:50:17 PM
This is NOT a virtuemart problem 1st of all


There will NOT be a single answer that applies to everyone.
THIS IS A JAVA CONFLICT 99% OF THE TIME
Vmart jquery does NOT conflict with standard joomla mootools.

also, make sure "system cache" plugin is disabled


JQUERY HAS to be loaded for add to cart to work
Virtuemart product scripts have to be loaded.


Templates Have javascript
Modules have Javascript

If a template uses Jquery, let it use jquery, and turn off vmart jquery.
UNLESS the template jquery version is LESS THAN
jQuery JavaScript Library v1.6.1
in that case use vmart jquery and turn of your template jquery.

NOW: If you are using standard joomla template and get the conflict. Are you using modules? Menus? That use javascript?
Disable all modules, and see if the cart works. Then enable them one by one


ALSO; do not edit the add to cart form classes etc. unless you know what you are doing

ALSO Re; css and java script compressors like jch optimize, and all those.
I have not seen a single example of these working with 2.0 yet without messing up cart functions. I have tried on mine, with many configurations etc. Still conflicts with cart functions.

AND see here
http://forum.virtuemart.net/index.php?topic=95879.msg315642#msg315642
Title: Re: Add to cart issues - what's the actual solution?
Post by: stuclark on January 06, 2012, 18:52:55 PM
Ok, so if this is NOT a VM issue, how come so many people are having issues getting this feature of VM to work???

If it's a JavaScript / template / Joomla / something else issue, then why is it people only get the error with VM? and why is it then SO varied as to whether people are able to fix it???

And how do we find out what version of jQuery might be in use by a particular template / module?
Title: Re: Add to cart issues - what's the actual solution?
Post by: stuclark on January 06, 2012, 18:54:14 PM
Another example of the same issue, with DEFAULT JOOMLA TEMPLATES: http://forum.virtuemart.net/index.php?topic=95724.0
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on January 06, 2012, 18:55:51 PM
more coming in 2nd post, just hold on
Title: Re: Add to cart issues - what's the actual solution?
Post by: Cleanshooter on January 10, 2012, 15:28:31 PM
Quote from: stuclark on January 06, 2012, 18:52:55 PM
And how do we find out what version of jQuery might be in use by a particular template / module?

If a module/template/component is using jQuery it should tell you which version in the Javascript Library ( /js directory for most). 

For example if you open component/com_virtuemart/assets/js/jquery.js you will see right at the top it uses version 1.4.2
Another example is the Phoca Gallery component which if you go into components/com_phocagallery/assets/jquery/jquery1.4.2.min.js it tells you right in the file name which version it uses .

All you need to do is look in the directory of the mod/temp/comp in question.

Also a note for VM2 newbies, to turn off jQuery please see picture below:

(http://joemotacek.ergecreative.com/jQuerySS.png)
Title: Re: Add to cart issues - what's the actual solution?
Post by: nflmerch on January 10, 2012, 22:35:35 PM
Quote from: stuclark on January 06, 2012, 18:52:55 PM
Ok, so if this is NOT a VM issue, how come so many people are having issues getting this feature of VM to work???
If it's a JavaScript / template / Joomla / something else issue, then why is it people only get the error with VM? and why is it then SO varied as to whether people are able to fix it???
It's a Javascript conflict, and Java is obviously its own entity, separate from Virtuemart.  You can have ANY shopping cart or website with java, and if you have another java script.... ANY two java scripts might conflict with each other.
And it doesn't have to be a script in the template;  banquettables pointed out that it can also be modules or menus, etc.
Also make sure Product Scripts is on,  under VM admin>Config>Templates>Activate Css Styles & Javascripts
Title: Re: Add to cart issues - what's the actual solution?
Post by: dontflinch on January 17, 2012, 19:57:54 PM
I hate to be picky but for the sake of those who do not know - Javascript and Java are two totally different things.

these problems are Javascript conflicts, nothing to do with "Java"
Title: Re: Add to cart issues - what's the actual solution?
Post by: nflmerch on January 18, 2012, 22:44:03 PM
Quote from: dontflinch on January 17, 2012, 19:57:54 PM
I hate to be picky but for the sake of those who do not know - Javascript and Java are two totally different things.

these problems are Javascript conflicts, nothing to do with "Java"
You're right, thanks for pointing that out.  I was making the dumb mistake of typing quick and shortening "javascript" without realizing  ;)
Title: Re: Add to cart issues - what's the actual solution?
Post by: kyteasdale on January 25, 2012, 15:59:08 PM
Thanks for the info all - does anyone have a fix for this?  As much as I understand these things happen - especially through mixing free to use services.  But I'd love to have my customers on IE able to purchase too lol

Do you think here will be a fix for this with the J2.5 version of VM?

I was recommended this Plugin (http://tushev.org/products/jqueryintegrator), which on the surface looks to tick the boxes. However I am a JS/Jquery dummy! So if anyone has any luck with it feedback would rock!

Thanks all
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on January 25, 2012, 16:48:33 PM
Quote from: kyteasdale on January 25, 2012, 15:59:08 PM
Thanks for the info all - does anyone have a fix for this?  As much as I understand these things happen - especially through mixing free to use services.  But I'd love to have my customers on IE able to purchase too lol

Do you think here will be a fix for this with the J2.5 version of VM?

I was recommended this Plugin (http://tushev.org/products/jqueryintegrator), which on the surface looks to tick the boxes. However I am a JS/Jquery dummy! So if anyone has any luck with it feedback would rock!

Thanks all

there is not a single fix that helps everyone.

, post your url
Title: Re: Add to cart issues - what's the actual solution?
Post by: kyteasdale on January 25, 2012, 16:51:43 PM
prodanceportugal.com/eu thanks
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on January 25, 2012, 17:32:07 PM
Quote from: kyteasdale on January 25, 2012, 16:51:43 PM
prodanceportugal.com/eu thanks



  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
  <script src="http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="/eu/plugins/system/jcemediabox/js/jcemediabox.js?version=111" type="text/javascript"></script>
  <script src="/eu/modules/mod_artnewsticker/js/jquery.js" type="text/javascript"></script>
  <script src="/eu/modules/mod_artnewsticker/js/jquery.nc.js" type="text/javascript"></script>
  <script src="/eu/modules/mod_artnewsticker/js/script.js" type="text/javascript"></script>


^^^ you have a few versions of jquery there.

You only need one, the latest versioned one.
Title: Re: Add to cart issues - what's the actual solution?
Post by: kyteasdale on January 25, 2012, 17:49:59 PM
Thank you - is this more accurate

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
  <script src="/eu/plugins/system/jqueryintegrator/jqueryintegrator/jquery.noconflict.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/core.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/caption.js" type="text/javascript"></script>
  <script src="/eu/plugins/system/jcemediabox/js/jcemediabox.js?version=111" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="http://prodanceportugal.com/eu/modules/mod_artnewsticker/js/jquery.js" type="text/javascript"></script>
  <script src="http://prodanceportugal.com/eu/modules/mod_artnewsticker/js/jquery.nc.js" type="text/javascript"></script>
  <script src="http://prodanceportugal.com/eu/modules/mod_artnewsticker/js/script.js" type="text/javascript"></script>
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on January 25, 2012, 17:57:17 PM
then you also have 2 more down lower in the source

<script type="text/javascript">if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>
<script type="text/javascript" src="/eu/templates/pdp_ocean/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="/eu/templates/pdp_ocean/script.js"></script>
<script type="text/javascript">if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>
Title: Re: Add to cart issues - what's the actual solution?
Post by: bunglehaze on January 25, 2012, 17:59:48 PM
Quote from: kyteasdale on January 25, 2012, 17:49:59 PM
Thank you - is this more accurate

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
  <script src="/eu/plugins/system/jqueryintegrator/jqueryintegrator/jquery.noconflict.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/core.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/eu/media/system/js/caption.js" type="text/javascript"></script>
  <script src="/eu/plugins/system/jcemediabox/js/jcemediabox.js?version=111" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
  <script src="/eu/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>





  <script src="http://prodanceportugal.com/eu/modules/mod_artnewsticker/js/script.js" type="text/javascript"></script>

prodanceportugal.com/eu/modules/mod_artnewsticker/js/jquery.js
prodanceportugal.com/eu/modules/mod_artnewsticker/js/jquery.nc.js

Those are two others, I am having similar issues with a gavick module ignoring the jquery version loading in the template and needing its own script enabling too - these are essentially reloading the same functions and causing issues - look at only having a single jquery instance load.
Title: Re: Add to cart issues - what's the actual solution?
Post by: kyteasdale on January 25, 2012, 22:34:49 PM
Thanks for the help - I think I have progress!  I removed all the other jquery loads (The physical jquery.js/jquery.ncs.js files, I have renamed on the ftp so they're inaccessible instead of playing in the module which I wouldn't understand)

So now my lightbox is back to working in chrome/firefox, and now in IE when you click "add to cart" it take you to the shopping cart - plus side is that the button is now working, the downside is that the shopping cart stays empty :S
Title: Re: Add to cart issues - what's the actual solution?
Post by: juagicre on January 26, 2012, 12:11:51 PM
Hi,
My cart was working perfectly with vm2.0.0 and this morning I updated to vm2.0.1 and now the cart does not get the products into...
if this is a jquery incompatibility, why it was working on vm2.0.0? may the developers look at the changes made in this way?
I updated to 2.0.1 to get the confirmation mails, and those are not being sent anyway... :(
Title: Re: Add to cart issues - what's the actual solution?
Post by: juagicre on January 26, 2012, 13:13:43 PM
ok's sorry i just saw the solution and for me it's working, here you go:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
Title: Re: Add to cart issues - what's the actual solution?
Post by: bunglehaze on January 26, 2012, 15:49:24 PM
Quote from: kyteasdale on January 25, 2012, 22:34:49 PM
Thanks for the help - I think I have progress!  I removed all the other jquery loads (The physical jquery.js/jquery.ncs.js files, I have renamed on the ftp so they're inaccessible instead of playing in the module which I wouldn't understand)

So now my lightbox is back to working in chrome/firefox, and now in IE when you click "add to cart" it take you to the shopping cart - plus side is that the button is now working, the downside is that the shopping cart stays empty :S

The problem you have doing that is your site will look for the file every time it loads and create an error, the best way to deal with it is in the module file, is there no option in the backend to force disable the script?
Title: Re: Add to cart issues - what's the actual solution?
Post by: bunglehaze on January 26, 2012, 18:56:30 PM
Just to let you know, I am having exactly the same problem myself now too - updated to 2.0.1 and add to cart will not add items into the cart, ajax also seems broken as this was working in 2.0.0 and not now. Nothing else changed with my site, modules or templates - only VM2

ADDED:

No Caches enabled
Single instance of jquery loaded by template

^^^^^^^^^^^^

Enabled VM2 jquery as well and ajax now works, this should not need to be done as the latest jquery is already in the header.
Title: Re: Add to cart issues - what's the actual solution?
Post by: prismalight on February 16, 2012, 17:38:53 PM
All was working fine in 2.0.0 with no SEO or just the Joomla SEO. Then I tested 2.0.1 H and I can not get it to work at all. It call the cart but does not add any product.
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 16, 2012, 18:21:27 PM
prismalight, NOBODY can help without a url
Title: Re: Add to cart issues - what's the actual solution?
Post by: prismalight on February 16, 2012, 19:23:29 PM
http://www.prismalight.com.mx/test/index.php
Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on February 16, 2012, 23:47:09 PM
There is a lot of JavaScript you are loading and sure enough, IE9 picks up a conflict on hitting add to cart:

SCRIPT5009: 'siteurl' is undefined
vmprices.js, line 44 character 4

In this bit of code:

$.getJSON(siteurl+'?option=com_virtuemart&nosef=1view=cart&task=addJS&format=json',encodeURIComponent(datas),
function(datas, textStatus) {
if(datas.stat !=0){
var value = form.find('.quantity-input').val() ;
var txt = value+" "+form.find(".pname").val()+' '+vmCartText;
                                                $.facebox.settings.closeImage = closeImage;
                                                $.facebox.settings.loadingImage = loadingImage;
                                                $.facebox.settings.faceboxHtml = faceboxHtml;
$.facebox({ text: datas.msg +"<H4>"+txt+"</H4>" }, 'my-groovy-style');
} else {
                                                $.facebox.settings.closeImage = closeImage;
                                                $.facebox.settings.loadingImage = loadingImage;
                                                $.facebox.settings.faceboxHtml = faceboxHtml;
$.facebox({ text: "<H4>"+vmCartError+"</H4>"+datas.msg }, 'my-groovy-style');
}
if ($(".vmCartModule")[0]) {
$.ajaxSetup({ cache: false })
$(".vmCartModule").productUpdate();
}
if ($(".pp_vmcart_module_hori")[0]) {
$.ajaxSetup({ cache: false })
$(".pp_vmcart_module_hori").productUpdate_mini1();
}
if ($(".pp_vmcart_module_vert")[0]) {
$.ajaxSetup({ cache: false })
$(".pp_vmcart_module_vert").productUpdate_mini2();
}
});
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 17, 2012, 13:16:06 PM
Quote from: prismalight on February 16, 2012, 19:23:29 PM
http://www.prismalight.com.mx/test/index.php

you are NOT loading jquery at all.

"JQUERY HAS to be loaded for add to cart to work
Virtuemart product scripts have to be loaded."

http://forum.virtuemart.net/index.php?topic=95979.msg315424#msg315424
Title: Re: Add to cart issues - what's the actual solution?
Post by: prismalight on February 17, 2012, 16:27:06 PM
Great Job guys  :),
it was simply the on module which was not compatible with the new version. After disabling it everything works fine.
Now it works also with Joomla native SEO and extension.
Sorry for the trouble and once again appreciate your support and work.
Title: Re: Add to cart issues - what's the actual solution?
Post by: buhnad on February 18, 2012, 18:52:29 PM
i cant solve it any tips plz
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 18, 2012, 19:43:55 PM
Quote from: buhnad on February 18, 2012, 18:52:29 PM
i cant solve it any tips plz , site url [storeq80.com]

just worked for me in firefox, and IE
Title: Re: Add to cart issues - what's the actual solution?
Post by: buhnad on February 18, 2012, 20:34:39 PM
how come it doesnt work with me in the desktop and the laptop both chrome and firefox
Title: Re: Add to cart issues - what's the actual solution?
Post by: capricornio on February 19, 2012, 09:44:42 AM
hmm tried it over and over with both IE and Chrome, but still don't get the product on my cart.

website is www.mylittleloft.nl, created a temporary user account test, password test@342

Any help is appreciated.

Using VM 2.01k on top of Joomla 2.5.1.
Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on February 19, 2012, 13:01:27 PM
@capricornio you are not loading jQuery on your site. You need that for the cart to work.
Title: Re: Add to cart issues - what's the actual solution?
Post by: capricornio on February 20, 2012, 09:47:46 AM
Thnx Kelvyn,

But if I activate VM JQuery at Configuration - Templates, nothing happens when I click on the Add to Cart button.
When I uncheck this box, the cart opens at least, but the article isn't added.

What should I do now to get it working properly ?
Title: Re: Add to cart issues - what's the actual solution?
Post by: webworks on February 20, 2012, 17:46:08 PM
Tried a couple of the simple solutions and still having the same problems :( Using Joomla 1.7 and Virtuemart 2.0.0

Websites is www.webworkscms.co.uk/3i

Any help would be appreciated
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 20, 2012, 18:50:59 PM
Quote from: webworks on February 20, 2012, 17:46:08 PM
Tried a couple of the simple solutions and still having the same problems :( Using Joomla 1.7 and Virtuemart 2.0.0

Websites is www.webworkscms.co.uk/3i

Any help would be appreciated

Quote from: BanquetTables.pro on January 06, 2012, 18:50:17 PM
This is NOT a virtuemart problem 1st of all


There will NOT be a single answer that applies to everyone.
THIS IS A JAVA CONFLICT 99% OF THE TIME
Vmart jquery does NOT conflict with standard joomla mootools.

also, make sure "system cache" plugin is disabled

JQUERY HAS to be loaded for add to cart to work
Virtuemart product scripts have to be loaded.

Templates Have javascript
Modules have Javascript

If a template uses Jquery, let it use jquery, and turn off vmart jquery.
UNLESS the template jquery version is LESS THAN
jQuery JavaScript Library v1.6.1
in that case use vmart jquery and turn of your template jquery.

NOW: If you are using standard joomla template and get the conflict. Are you using modules? Menus? That use javascript?
Disable all modules, and see if the cart works. Then enable them one by one


ALSO; do not edit the add to cart form classes etc. unless you know what you are doing

ALSO Re; css and java script compressors like jch optimize, and all those.
I have not seen a single example of these working with 2.0 yet without messing up cart functions. I have tried on mine, with many configurations etc. Still conflicts with cart functions.

AND see here
http://forum.virtuemart.net/index.php?topic=95879.msg315642#msg315642

the product scripts have to be loaded, they are what adds the product to the cart.


Title: Re: Add to cart issues - what's the actual solution?
Post by: TBoele on February 20, 2012, 19:50:49 PM
And what about the "add to cart" problem with the version 2.0.1N ? Also a js conflict in the Template and no VirtueMart problem ?
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 20, 2012, 19:59:05 PM
Quote from: TBoele on February 20, 2012, 19:50:49 PM
And what about the "add to cart" problem with the version 2.0.1N ? Also a js conflict in the Template and no VirtueMart problem ?

add to cart works for me. I have never once had an add to cart problem. on any of the releases.



Title: Re: Add to cart issues - what's the actual solution?
Post by: TBoele on February 20, 2012, 20:22:10 PM
Ok that could be.
With my template the add to cart also works with all versions, only with the latest version 2.0.1.N not. And i don't see any conflicts with firebug.
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 20, 2012, 21:01:48 PM
how can anyone help without a url
Title: Re: Add to cart issues - what's the actual solution?
Post by: archos on February 20, 2012, 21:14:06 PM
Quotehow can anyone help without a url

Yes we can  :D

Try to add the following plugin

JQuery Easy or JQuery ++integrator

They are able to load the last Jquery and able to kill redondant Jquery.
They add the Jquery noconflict procedure (you can enable/disable it with JQuery ++integrator)

In my case with the gantry framework the conflict is linked to the cart module position !. It plays clearly a role on the js scripts order,
problem could be from the gantry framework.
Title: Re: Add to cart issues - what's the actual solution?
Post by: nflmerch on February 21, 2012, 00:27:32 AM
You guys are going to give the developers ulcers.   :P 
Always test new versions of virtuemart with a default joomla template.
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on February 21, 2012, 03:34:45 AM
I found this topic... so maybe its better to write here...

I got the problem with the last update 2.0.1 N .. and I didnt do anything before....
In last version my website was working 100% fine ... adding the products to the cart...
But now the botton "add.." doesnt work like before the popup and the VM cart Module doesnt work together in the displaying live / real time like he did until i install the new 2.0.1 N ..

If the problem was in my clean and new teamplate (0 errors css / html in firebug ) of course i'd go back to reset the lastest steps ...
but i cant find yet a solution here...
Title: Re: Add to cart issues - what's the actual solution?
Post by: prema on February 22, 2012, 17:11:06 PM
Hi,

i had also the same issue with the add to cart button. I was searching for more days, and then i have found this little plugin.
http://extensions.joomla.org/extensions/core-enhancements/scripts/18327
It was perfectly solving my problem, now i can sue my othet Jquery modules. And it's for free.

P.
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on February 23, 2012, 03:23:18 AM
i'll hope that version 2.0.1 O,P,Q... comes soon as possible... i wouldnt like to install 3rds party's extensions (like that plugs) because everything was working fine in the lastest versions before the 2.0.1 N version come to us ....
why we should do that.. to add more garbage in system? no, we dont want that! :/
Title: Re: Add to cart issues - what's the actual solution?
Post by: TBoele on February 23, 2012, 07:13:36 AM
Prolipes, do use Joomla 1.7.3 ? I had the same problem with Joomla 1.7.3 and VM 2.0.1N, no errors or conflicts but the add to cart button won't work.
Now i tested it with Joomla 2.5.1 and VM 2.0.1N, no problems.
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on February 23, 2012, 17:21:48 PM
I'm in joomla 1.7.5 because the VM developers sayd many times that they dont support VM2 in Joomla 2 ...
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 24, 2012, 11:58:44 AM
Quote from: prolipes on February 23, 2012, 17:21:48 PM
I'm in joomla 1.7.5 because the VM developers sayd many times that they dont support VM2 in Joomla 2 ...

2.0 is J2.5 compatible.
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on February 24, 2012, 14:35:34 PM
in N version works?
because many times users asking about VM2 and J2.5 and the answer topic link was to "stop about ask vm2 and J2.5 compatibility" ...
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 24, 2012, 14:39:44 PM
Quote from: prolipes on February 24, 2012, 14:35:34 PM
in N version works?
because many times users asking about VM2 and J2.5 and the answer topic link was to "stop about ask vm2 and J2.5 compatibility" ...

if you look at the date on the post, it was probably 2 days, or a week after 2.5 came out.

I am using 2.51





Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on February 24, 2012, 22:19:53 PM
Yep. I confirm that the add to cart in live/real time function  (that i've described before) in J1.7.5 with VM2 is no more supported..  i tested with the new vm 2.0.2 .. and dont work again.. only works with version 2.0.1 K ...

All VM2 users must abandon Joomla 1.7.X and upgrade to J2.5x

With Joomla 2.5 and VM 2.0.2 works everything fine!
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on February 27, 2012, 09:32:07 AM
I have Joomla 2.5.1 and Virtuemat 2.0.2 but add to cart wont work
Site www.puzzleonline.sk

Any solution ? Thanks
Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on February 27, 2012, 16:39:43 PM
MKI it works for me using Firefox although the site was very slow and maybe something has a minor conflict with the cart updating AJAX
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on February 27, 2012, 18:46:03 PM
MKI-Miro, I checked your link and it seems to work for you now. What was your solution?

I also have J2.5.1 and VM2.0.2 and I have had no problems so far, but after I updated from 2.0.1k to 2.0.2, the Add to cart button would not show the popup, and the basket is not updated unless I reload the page.
It's working in Chrome, but not in Firefox and Explorer. http://ny.udviklingsvej.dk/webshop (http://ny.udviklingsvej.dk/webshop)

I tried the jQuery Easy plugin, but it didn't have any effect.

Does anybody have a solution?
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on February 27, 2012, 19:41:27 PM
Quote from: HC on February 27, 2012, 18:46:03 PM
MKI-Miro, I checked your link and it seems to work for you now. What was your solution?

I also have J2.5.1 and VM2.0.2 and I have had no problems so far, but after I updated from 2.0.1k to 2.0.2, the Add to cart button would not show the popup, and the basket is not updated unless I reload the page.
It's working in Chrome, but not in Firefox and Explorer. http://ny.udviklingsvej.dk/webshop (http://ny.udviklingsvej.dk/webshop)

I tried the jQuery Easy plugin, but it didn't have any effect.

Does anybody have a solution?


you are running 3 jquery versions.



[attachment cleanup by admin]
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on February 27, 2012, 21:41:27 PM
I tried chrome and firefox on 2 pc but add to cart doesnt work hmm
Title: Re: Add to cart issues - what's the actual solution?
Post by: capricornio on February 28, 2012, 22:47:22 PM
Quote from: capricornio on February 19, 2012, 09:44:42 AM
hmm tried it over and over with both IE and Chrome, but still don't get the product on my cart.

website is www.mylittleloft.nl, created a temporary user account test, password test@342

Any help is appreciated.

Using VM 2.01k on top of Joomla 2.5.1.

Tried it again with jquery easy enabled, but still no success using VM 2.02 on Joomla 2.5.1.
What's next to try ????
Title: Re: Add to cart issues - what's the actual solution?
Post by: haidamaka on February 29, 2012, 23:09:03 PM
Really the same problem. I checked? there is no any conflicts, only this version (2.0.2) have this problem and no any decision from developers.
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 01, 2012, 09:40:13 AM
Hi BanquetTables.pro
Quoteyou are running 3 jquery versions.

I tried to install a fresh J2.5.1 with demo material and VM 2.0.2 and still the problem persists. It only works in Chrome.
There must be another problem somewhere...?
http://test.udviklingsvej.dk/index.php/shop/handtools/hand-shovel-detail (http://test.udviklingsvej.dk/index.php/shop/handtools/hand-shovel-detail)

I have tried to disable the jQuery in Configuration / Templates, but that only makes the Add to Cart-button not work at all (just links directly to the basket without adding the product).
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 01, 2012, 14:23:29 PM
Quote from: HC on March 01, 2012, 09:40:13 AM
Hi BanquetTables.pro
Quoteyou are running 3 jquery versions.

I tried to install a fresh J2.5.1 with demo material and VM 2.0.2 and still the problem persists. It only works in Chrome.
There must be another problem somewhere...?
http://test.udviklingsvej.dk/index.php/shop/handtools/hand-shovel-detail (http://test.udviklingsvej.dk/index.php/shop/handtools/hand-shovel-detail)

I have tried to disable the jQuery in Configuration / Templates, but that only makes the Add to Cart-button not work at all (just links directly to the basket without adding the product).


try with using vmart jqury.

TURN off the google jquery
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on March 01, 2012, 14:45:51 PM
Quote from: MKI-Miro on February 27, 2012, 09:32:07 AM
I have Joomla 2.5.1 and Virtuemat 2.0.2 but add to cart wont work
Site www.puzzleonline.sk

Any solution ? Thanks

And whats wrong at my page ? add to cart wont work
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 01, 2012, 15:10:11 PM
Quote from: MKI-Miro on March 01, 2012, 14:45:51 PM
Quote from: MKI-Miro on February 27, 2012, 09:32:07 AM
I have Joomla 2.5.1 and Virtuemat 2.0.2 but add to cart wont work
Site www.puzzleonline.sk

Any solution ? Thanks

And whats wrong at my page ? add to cart wont work


worked for me
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on March 01, 2012, 15:13:23 PM
Quote from: BanquetTables.pro on March 01, 2012, 15:10:11 PM
Quote from: MKI-Miro on March 01, 2012, 14:45:51 PM
Quote from: MKI-Miro on February 27, 2012, 09:32:07 AM
I have Joomla 2.5.1 and Virtuemat 2.0.2 but add to cart wont work
Site www.puzzleonline.sk

Any solution ? Thanks

And whats wrong at my page ? add to cart wont work


worked for me

I tried two computers but chrome and firefox dont work (win 7)
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 01, 2012, 15:15:34 PM
worked for me in firefox
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on March 01, 2012, 15:17:44 PM
Quote from: BanquetTables.pro on March 01, 2012, 15:15:34 PM
worked for me in firefox

do i have to make video to prove that it wont work ? i am trying now on virtuals win 2008, and somtime it added product and sometimes not
Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on March 01, 2012, 15:27:39 PM
Works for me, Chrome 17, Firefox 10, IE9
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on March 01, 2012, 15:47:55 PM
For me the "add to Cart" doesnt work in J1.7 ... so i did the upgrade to J2.5.1

works with J2.5.1 VM2.02 in Chrome 17.0.963, Firefox 10.0.2, IE9.0.8112 and Opera 11.61  (i dont have jungle safari to test it)

it's perfect.. ! :)
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 01, 2012, 16:21:16 PM
Quote from: MKI-Miro on March 01, 2012, 15:17:44 PM
Quote from: BanquetTables.pro on March 01, 2012, 15:15:34 PM
worked for me in firefox

do i have to make video to prove that it wont work ? i am trying now on virtuals win 2008, and somtime it added product and sometimes not

I've tested your site, MKI-Miro, and I can get the Show cart-popup in FF and Chrome, but not IE (all my browsers are up to date).

What I don't understand is that a default Joomla installation with the VM2.0.2 doesn't work - I also tried in J1.7.5 with the same result.
I've tried to clear cache and cookies in the browser without luck.
It seems that it is different browsers that has the problem so there is not a consistency as in a browser problem..?

I tried to turn off the Googgle jquery in config and turn on the VM query in config/templates, but there is no difference.
Title: Re: Add to cart issues - what's the actual solution?
Post by: MKI-Miro on March 02, 2012, 07:30:26 AM
for me it work in IE9 but not in chrome and firefox (only sometimes it add to cart)
Title: Re: Add to cart issues - what's the actual solution?
Post by: eastland on March 03, 2012, 14:59:54 PM
Quote from: BanquetTables.pro on January 06, 2012, 18:50:17 PM
This is NOT a virtuemart problem 1st of all
Oh yes! It's simply a problem of users 2.0.2 version. ( But not 2.0.0 )
And if they dont want to lose the clients with older browsers, they sipmly should add the message "Your browser is old, please updete it!" Like a google, huh.
Good solution, isnt it ?  >:(
Title: Re: Add to cart issues - what's the actual solution?
Post by: lipes on March 03, 2012, 15:05:14 PM
LOOL!!! xD
Your solution could be great for ie 6,7,8, users  :D
Title: Re: Add to cart issues - what's the actual solution?
Post by: eastland on March 03, 2012, 15:34:48 PM
Quote from: prolipes on March 03, 2012, 15:05:14 PM
LOOL!!! xD
Your solution could be great for ie 6,7,8, users  :D
Not only... K-Meleon 1.5.4, Opera 9.24, Firefox/3.0.15 too :D
But 2.0.0 works on it no problem
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 03, 2012, 16:32:49 PM
Quote from: eastland on March 03, 2012, 14:59:54 PM
Quote from: BanquetTables.pro on January 06, 2012, 18:50:17 PM
This is NOT a virtuemart problem 1st of all
Oh yes! It's simply a problem of users 2.0.2 version. ( But not 2.0.0 )
And if they dont want to lose the clients with older browsers, they sipmly should add the message "Your browser is old, please updete it!" Like a google, huh.
Good solution, isnt it ?  >:(

Nice jokes guys   :-X
The short of it is that VM2.0.2 does NOT work properly!

If I reinstall the 2.0.0 it works fine, so I can only conclude that something IS wrong with the 2.0.2 update. I really hope that an update will come very soon, because my payment methods don't work with 2.0.0 (Epay and Quickpay).
Title: Re: Add to cart issues - what's the actual solution?
Post by: eastland on March 03, 2012, 19:01:39 PM
Quote from: HC on March 03, 2012, 16:32:49 PMthat something IS wrong with the 2.0.2 update. I really hope that an update will come very soon
I mean that coding from 2.0.0 to 2.0.2 is good and including many interesting features for the future.
But some of the features is so early, and present time im not ready to accept it, if it require client-side browser update to the lastest versions.
So big jump in requirements of VM.

UPD :
So i mean there are lot of VM users would be glad to see an update to VM 2.0.2 where the button "Add to cart" works not only in newest browsers.
Title: Re: Add to cart issues - what's the actual solution?
Post by: Milbo on March 05, 2012, 02:08:26 AM
We wonder what we changed that it was compatible in vm2.0.0, but not in vm2.0.2 anylonger
Title: Re: Add to cart issues - what's the actual solution?
Post by: xaxier on March 05, 2012, 06:14:15 AM
Hi There,

Am having some problem here, can you guys please help? The add to cart button has no response when I clicked it. The funny thing is that when I use the administrator ( View site option), I am able to see the pop out window for add to cart and it has no problem adding it to cart. Any issue with that?

You can view the site here: http://www.crystalaves.com.my/~crystala/index.php/beli-sekarang/minuman-sarang-burung/minuman-sarang-burung-perisa-buah-kurma-detail.html
Sorry as it is in a foreign language but you should see the add to cart button there :)


I am using joomla 1.7 and virtuemart 2.0.0
Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on March 05, 2012, 09:43:39 AM
xaxier you are loading a lot of JavaScript there. To start with you have a JavaScript conflict to do with the YJSimpleGrid Framework you are using in your Joomla template. First issue is in mouseover13.js - whatever that is there for.
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 05, 2012, 12:59:57 PM
OK, Milbo and others, it now works for me in all browsers (IE, FF, Chrome, Safari) after installing the update 2.0.3, so thats great  :)
http://ny.udviklingsvej.dk/webshop/online-kurser-og-uddannelser/testprodukt-detail (http://ny.udviklingsvej.dk/webshop/online-kurser-og-uddannelser/testprodukt-detail)

Hopefully it works for everybody...
Thanks a million
Title: Re: Add to cart issues - what's the actual solution?
Post by: eastland on March 05, 2012, 14:21:09 PM
Milbo and others, Thanks a lot!!!
2.0.3 for me now works on all 4 of 4 old browsers i've tested (K-Meleon 1.5.4, IE 6.0.2600, Opera 9.24, FireFox 3.0.15)

HC, i've test your link also :)
KM, Opera, FF works
IE ask for update :), but then without update work too!
Title: Re: Add to cart issues - what's the actual solution?
Post by: xaxier on March 05, 2012, 14:57:49 PM
Hi jenkinhill

Thanks for the advice, as this is the first time I am building using Joomla and new to CMS, hope I do not sound noob and stupid here :(. In this case, if you are saying that this javascript (mouseover.js) conflict with the virtuemart javascript, but I do not understand why if I view it using the IP address, I have no problem of getting the message pop out the moment I press the add to cart button and when I am viewing it using normal site, I have problem?

FYI, I have no problem running it on localhost as well
Title: Re: Add to cart issues - what's the actual solution?
Post by: eastland on March 05, 2012, 15:14:10 PM
xaxier, may be your firewall/browser allow pop-up windows on localhost/trusted area and block pop-up windows from the internet ?
If it is, the "Add to cart" button could fail in 2.0.3 too.
Title: Re: Add to cart issues - what's the actual solution?
Post by: xaxier on March 05, 2012, 15:36:15 PM
Hi eastland,

Thanks for the suggestion, but I doubt this should be the cause. I had disabled the pop out blocker and enable exception to my site but still nothing happen. I wonder what went wrong, it is doing great when I view it using IP and localhost.
Title: Re: Add to cart issues - what's the actual solution?
Post by: xaxier on March 06, 2012, 04:24:15 AM
Hi there,

I was thinking is this problem cause by the following events?

1) I tested in Localhost, no problem with add to cart button
2) I transfer the files to FTP site of my host while waiting for my domain to be ready.
3) I view and edit the setting using the IP address given by my host, no problem with the add to cart button also
4) once I tried using the actual domain name, the add to cart button fail

Can it be that somehow this link to the add to cart problem failure?
Title: Re: Add to cart issues - what's the actual solution?
Post by: xaxier on March 06, 2012, 10:06:03 AM
Hi guys,

Managed to solve it by changing the configuration file and point the live site to my actual site. Originally it is in IP view

Thanks for the help so far :)
Title: Re: Add to cart issues - what's the actual solution?
Post by: another_reality on March 06, 2012, 17:50:21 PM
Hello,

I have try every sollution that is given in this thread and other of course, but the Add to cart cannot work. I was with J1.7 & VM2. Yesterday updated to J2.5.2 & VM2.02 But the problem persist. At the moment i have enabled VM Jquery & OFF Extrnal Google Jquery, I have try all the other combinations, also trying with EasyJquery & Jquery Integrator, Also removed all core Jquery but the problem continue to persist!
http://tinyurl.com/7kxkamj

Thanks for your help!

<script src="media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="media/system/js/core.js" type="text/javascript"></script>
  <script src="media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="plugins/system/jat3/jat3/base-themes/default/js/core.js" type="text/javascript"></script>
  <script src="plugins/system/jat3/jat3/base-themes/default/js/menu/mega.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/jquery.min.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/jquery-ui.min.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/jquery.noConflict.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
  <script src="components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="media/system/js/modal.js" type="text/javascript"></script>
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 06, 2012, 18:13:29 PM
Quote from: another_reality on March 06, 2012, 17:50:21 PM

I have try every sollution that is given in this thread and other of course, but the Add to cart cannot work. I was with J1.7 & VM2. Yesterday updated to J2.5.2 & VM2.02 But the problem persist. At the moment i have enabled VM Jquery & OFF Extrnal Google Jquery, I have try all the other combinations, also trying with EasyJquery & Jquery Integrator, Also removed all core Jquery but the problem continue to persist!
http://tinyurl.com/7kxkamj

Thanks for your help!

Try the 2.0.3 update - it worked for me.
http://dev.virtuemart.net/attachments/download/390/com_virtuemart.2.0.3_extract_first.zip (http://dev.virtuemart.net/attachments/download/390/com_virtuemart.2.0.3_extract_first.zip)
Title: Re: Add to cart issues - what's the actual solution?
Post by: another_reality on March 06, 2012, 20:34:50 PM
I updated it to 2.0.3 and the add to cart don't work. Also i tried it with the joomla deafult template, and the button still dont work!

Quote from: HC on March 06, 2012, 18:13:29 PM
Quote from: another_reality on March 06, 2012, 17:50:21 PM

I have try every sollution that is given in this thread and other of course, but the Add to cart cannot work. I was with J1.7 & VM2. Yesterday updated to J2.5.2 & VM2.02 But the problem persist. At the moment i have enabled VM Jquery & OFF Extrnal Google Jquery, I have try all the other combinations, also trying with EasyJquery & Jquery Integrator, Also removed all core Jquery but the problem continue to persist!
http://tinyurl.com/7kxkamj

Thanks for your help!

Try the 2.0.3 update - it worked for me.
http://dev.virtuemart.net/attachments/download/390/com_virtuemart.2.0.3_extract_first.zip (http://dev.virtuemart.net/attachments/download/390/com_virtuemart.2.0.3_extract_first.zip)
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 06, 2012, 20:41:47 PM
Quote from: another_reality on March 06, 2012, 20:34:50 PM
I updated it to 2.0.3 and the add to cart don't work. Also i tried it with the joomla deafult template, and the button still dont work!

try disabling that floating thing at the top of your site and see
Title: Re: Add to cart issues - what's the actual solution?
Post by: another_reality on March 06, 2012, 21:07:45 PM
Removed the floating module and also all other modules. This is a clean pure installation of joomla, all modules & most of the plugins unpublished! But guess... The add to cart function does not work.

Thanks

Quote from: BanquetTables.pro on March 06, 2012, 20:41:47 PM
Quote from: another_reality on March 06, 2012, 20:34:50 PM
I updated it to 2.0.3 and the add to cart don't work. Also i tried it with the joomla deafult template, and the button still dont work!

try disabling that floating thing at the top of your site and see
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 06, 2012, 21:20:29 PM
if i could see products, I would test.

also, do you have somthing set for "live site" in your configuration.php file.

Have you tried WITHOUT sef turned on?

have you tried to disable your .htaccess to see if thats a problem?

Is there a configuration tht isnt allowing users to order in the backend?
Title: Re: Add to cart issues - what's the actual solution?
Post by: another_reality on March 06, 2012, 21:34:56 PM
http://tinyurl.com/6rhhvjd . I will take a look now for the configuration.

Quote from: BanquetTables.pro on March 06, 2012, 21:20:29 PM
if i could see products, I would test.

also, do you have somthing set for "live site" in your configuration.php file.

Have you tried WITHOUT sef turned on?

have you tried to disable your .htaccess to see if thats a problem?

Is there a configuration tht isnt allowing users to order in the backend?
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on March 06, 2012, 21:59:01 PM
Quote from: another_reality on March 06, 2012, 21:34:56 PM
http://tinyurl.com/6rhhvjd .

virtuemart add to cart functionality works. Some do have java conflicts.

You do not have java problems.

Its going to be
A wrong setting in vmart config.
A Server setting
Are the filespermissions 644?
htaccess problem/security setting

Title: Re: Add to cart issues - what's the actual solution?
Post by: another_reality on March 06, 2012, 23:24:00 PM
Thanks for your reply, yes file permissions are 644. What i must look closer about that, i think that the configuration (from the admin area) is configured properly. What i must look closer.

I have try it, with SEF enable and disable, i have  Firewall - csf on this server and trying to disable it.

I have 2 days that trying to make these function work, i have read almost all posts regarding to this & trying all solutions, but the problem persist.

Quote from: BanquetTables.pro on March 06, 2012, 21:59:01 PM
Quote from: another_reality on March 06, 2012, 21:34:56 PM
http://tinyurl.com/6rhhvjd .

virtuemart add to cart functionality works. Some do have java conflicts.

You do not have java problems.

Its going to be
A wrong setting in vmart config.
A Server setting
Are the filespermissions 644?
htaccess problem/security setting
Title: Re: Add to cart issues - what's the actual solution?
Post by: dontflinch on March 07, 2012, 00:27:21 AM
I am not sure if this is it or not but the "base href" of your page is messed up - it should be the directory not a file.  it makes me think your config file has that wrong.
<base href="http://www.bodyfarm.gr/test/index.php" />
should be:
<base href="http://www.bodyfarm.gr/test/" />

specifically you should check the paths to your log and temp folders.  for example:
/home/yourserver/public_html/yourdomain.com/tmp

also the joomla system info page might be helpful, check that all permissions etc are right:
administrator/index.php?option=com_admin&view=sysinfo
then check directory permissions tab at least
Title: Re: Add to cart issues - what's the actual solution?
Post by: flaterik on March 13, 2012, 01:42:04 AM
I have a problem with add to cart ...
It works until i do a restore of the system with akeba backup
Now doesn't works

The site is www.nympheaestetica.com/ecommerce.html
Title: Re: Add to cart issues - what's the actual solution?
Post by: HC on March 13, 2012, 12:22:47 PM
Quote from: flaterik on March 13, 2012, 01:42:04 AM
I have a problem with add to cart ...
It works until i do a restore of the system with akeba backup
Now doesn't works

The site is www.nympheaestetica.com/ecommerce.html


It works fine for me in IE, FF and Chrome.
Good work  :)
Title: Re: Add to cart issues - what's the actual solution?
Post by: cyberholic on March 13, 2012, 17:36:14 PM
Hi everyone, i am also in trouble with the ADD-TO-CART situation.
I tried to find out where the problem could be and wanted to tell you about my path so that this might be of help for a solution.

My Situation:
In Details-view i can change the quantity with PLUS and MINUS.
I can click the ADD TO CART button but the page does not refresh, nor does the modal small window appear saying that the item has been added to the cart.
BUT: when i move to some other part of the page now, the cart gets refreshed and shows me the correct amount of items.

What i did as workaround to see where the failur is
From within this forum i found a thread where someone wanted to have the add-to-cart button on the categories view. i copied this and added it to the details view so that i have two add-to-cart buttons..
What happens is this: my first one works as the same as mentioned above.

The new one is clickable and the modal box comes up saying that the article was added.
BUT when i check the cart, there is an item without name nor price - only the quantity is shown.


A question i have too is:
When i change this:
$button_cls = 'addtocart-button';
into this
$button_cls = '';

The button once clicked moves over to the cart page, but nothing is added.
Does this mean that the jquery or whatever is controled through the class of a button?
Weird....

Hope this is of any help to you.
Greetings,
Carlos
Title: Re: Add to cart issues - what's the actual solution?
Post by: palpal on March 24, 2012, 08:51:37 AM
Hi Cyberholic,

I have the same situation as you described, once i installed the "jQuery Easy" plugin -  the quantity button working but the cart need to be refreshed to update.

when i upgrade my Firefox to v11. It was perfectly now. You may also try in different updated browsers.   :)



Title: Re: Add to cart issues - what's the actual solution?
Post by: Betuaelmon on March 26, 2012, 12:12:23 PM
Hi everyone, i am also in trouble with the ADD-TO-CART situation.

I'm creating a shop with Joomla 1.5 and Virtuemart 2.02 PHP version: 5.2.13-pl1-gentoo. http://vps16666.ovh.net/~admin/escueladeinteligencia.info/ (I havent a domain pointing to my hosting yet). I have to reload the web to see the cart updated only in IE 9. When you clic Add to Cart you will be redirected to http://vps16666.ovh.net/~admin/escueladeinteligencia.info/index.php?option=com_virtuemart&view=cart.  In Firefox, Chrome and Opera works great.

I installed the plugin System - jQuery++ Integrator by tushev.org, but it doesn't solve my problem.
Title: Re: Add to cart issues - what's the actual solution?
Post by: PatrickVisser on March 27, 2012, 06:01:06 AM
Hi All

I'm also having issues with the Add-to-cart button. It was all good during test phase of this particular website. We go live and no add-to-cart functionality.

check it out if you think you can help http://www.partystarter.co.nz

VM2.0.3
Joomla2.5.3e
Title: Re: Add to cart issues - what's the actual solution?
Post by: PatrickVisser on March 27, 2012, 21:01:32 PM
Ok, I've got the add-to-cart button working again by disabling htaccess and Apache mod rewrite.

Problem solved? Nope.

htaccess is an integral part of our onsite SEO.

Has anyone got a fix, or modified htaccess that allows add-to-cart functionality?
Title: Re: Add to cart issues - what's the actual solution?
Post by: StevenO on March 28, 2012, 17:40:04 PM
I have the same problem as patrick visser www.prinsesenridder.nl (http://www.prinsesenridder.nl). The cart doesnt update, except you navigate to another page (only in chrome it works). i have tried everything whats written in this forum. Nothing works. Does anyone knows a solution.

Joomla 2.5 / VM 2.0.2

Thanks, Steven
Title: Re: Add to cart issues - what's the actual solution?
Post by: stAn99 on March 29, 2012, 19:10:11 PM
Hello folks,
i must confirm that you should firstly check the javascript error console in FF (ctrl + shift + J) or in google chrome (f12) and if you see any errors there you should get them fixed as this can simply lead to add to cart malfunction.

Secondoly as i adviced during the early RC developement the add to cart is still missing a default action when json breaks:
http://forum.virtuemart.net/index.php?topic=90617.0
Json breaks when any of your system-plugins or other system parts of joomla issue a php notice while error reporting is turned on. This can be fixed either by the underlying plugin or by changing the javscript to issue form submit.

This issue has not been resolved till now (2.0.3H)

Best Regards,
Stan
Title: Re: Add to cart issues - what's the actual solution?
Post by: tzic on March 30, 2012, 14:59:17 PM
I have the same issues, quantity button does not work and also add to cart adds nothing. Can anyone please take a look and point me to a direction?
my page located http://www.ahealthcare.gr/component/virtuemart/%CE%B5%CF%80%CE%B9%CE%B8%CE%B5%CE%BC%CE%B1%CF%84%CE%B1-%CE%BA%CE%B1%CF%84%CE%B1%CE%BA%CE%BB%CE%B9%CF%83%CE%B5%CF%89%CE%BD/%CE%B5%CF%80%CE%AF%CE%B8%CE%B5%CE%BC%CE%B1-duoderm-detail?Itemid=0 (http://www.ahealthcare.gr/component/virtuemart/%CE%B5%CF%80%CE%B9%CE%B8%CE%B5%CE%BC%CE%B1%CF%84%CE%B1-%CE%BA%CE%B1%CF%84%CE%B1%CE%BA%CE%BB%CE%B9%CF%83%CE%B5%CF%89%CE%BD/%CE%B5%CF%80%CE%AF%CE%B8%CE%B5%CE%BC%CE%B1-duoderm-detail?Itemid=0)
Title: Re: Add to cart issues - what's the actual solution?
Post by: palpal on March 30, 2012, 15:04:09 PM
Hi stAn99,

The Add to cart button works fine when I use the latest browser like Chrome 18 and FireFox 11, but still not working in IE 7 or Safari 5.

i turn on the firebug in FireFox and realize the following two statements are executed to have the add to cark button working good.

GET babyshop.mysassyjane.com/index.php?option...emart_category_id%255B%255D%3D12&_=1333112006026         
GET babyshop.mysassyjane.com/index.php?option...osef=1&view=cart&task=viewJS&format=json&lang=en   

For those non-working browser version , i realized the second statement does not execute at all which includes the " JSON " you mentioned.

what do you actually mean when you said " fixed either by the underlying plugin" ?? Do you mean i should turn off some plugins ?? Great to have some clues from you. thanks!!

I am using joomla 2.5.2 / VM2.0.2 /  "jQuery Easy" plugin turn on.
Title: Re: Add to cart issues - what's the actual solution?
Post by: stAn99 on March 30, 2012, 23:13:52 PM
Hello, what i meant by the underlying plugins is that sometimes they trigger php notices, fatal errors or warnings even for ajax pages as they always trigger when called from joomla context. To see the notice, you have to put the url that you found directly to the browser bar ans see the json encoded data. On VM2 RC version there was a problem with mysqli and since then i tried to persuade VM team to add an error handler to the ajax-json function to have a disaster function as i propose which would simply submit the form.

The normal add to cart ajax page should look like this (vm 2.0.2):
http://vm2onj25.rupostel.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en&quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D5%26virtuemart_category_id%255B%255D%3D1&_=1333141662904

says:

{"msg":"<a class=\"continue\" href=\"\/index.php\/component\/virtuemart\/\" >Continue Shopping<\/a><a class=\"floatright\" href=\"\/index.php\/virtuemart\">Show Cart<\/a><div>The product quantity has been updated.<\/div>","stat":"1"}


If the page includes something like this:

Notice: undefined variable xyz...
{"msg":"<a class=\"continue\" href=\"\/index.php\/component\/virtuemart\/\" >Continue Shopping<\/a><a class=\"floatright\" href=\"\/index.php\/virtuemart\">Show Cart<\/a><div>The product quantity has been updated.<\/div>","stat":"1"}


Then add to cart function in all VM2 versions will not work.
There are two possible solutions:
- to deserialize json not directly from the ajax output, but only from the first occurance of {
- to add the disaster function .error on the  json statement in the add to cart function (sendtocart) which will simply submit the form (this used to be default in VM1 days)

To debug this it helps to enable Log XMLHttpRequests within google chrome (the little wheel at the right bottom corner when f12 is pressed) so you know what pages are loaded from within your main page load.
Title: Re: Add to cart issues - what's the actual solution?
Post by: rkneip on April 02, 2012, 08:21:42 AM
This little plug has worked wonders for me;

You must order it at the very top of your plugin order just after admintools if you have it and before mootools upgrade it must load before everything else. Dont mess with the config just load it and see what happens. I tried the others they didnt doit. This little guy worked wonders for me. Pay attention to the order of your plugins. Its very important and not well emphisised.



[attachment cleanup by admin]
Title: Re: Add to cart issues - what's the actual solution?
Post by: Betuaelmon on April 02, 2012, 14:17:10 PM
I've reinstalled my VPS. The new URL is http://46.105.20.141/escueladeinteligencia.info

I'll try rkneip's plugin.
Title: Re: Add to cart issues - what's the actual solution?
Post by: kg on April 03, 2012, 10:23:01 AM
Hi
I can confirm that the 2.0.3 H has some fixes for the add to cart issue.

The problems we had with IE7 not adding to cart for one of our sites, is solved in 2.0.3H (did a couple of different installs for that site, using 2.0.3H and it worked on all of them)

So if you have that problem, take a copy of your site and upgrade the copy to 2.0.3H to see if it works (do not upgrade your production site to 2.0.3H - it is not ready for production use yet)
Title: Re: Add to cart issues - what's the actual solution?
Post by: corymp on April 05, 2012, 03:14:43 AM
My problem is that add to cart doesn't work every time. it will add the first time and then wont add for 3 more times i click the button. although the popup comes up every click
Title: Re: Add to cart issues - what's the actual solution?
Post by: Milbo on April 05, 2012, 12:14:15 PM
Quote from: corymp on April 05, 2012, 03:14:43 AM
My problem is that add to cart doesn't work every time. it will add the first time and then wont add for 3 more times i click the button. although the popup comes up every click

In the pipe atm.
Title: Re: Add to cart issues - what's the actual solution?
Post by: corymp on April 05, 2012, 13:21:38 PM
Quote from: Milbo on April 05, 2012, 12:14:15 PM
Quote from: corymp on April 05, 2012, 03:14:43 AM
My problem is that add to cart doesn't work every time. it will add the first time and then wont add for 3 more times i click the button. although the popup comes up every click

In the pipe atm.
Does that mean this is a known bug? It seems it only happens on my slower internet connection. At my work plae, it seems fine...
Title: Re: Add to cart issues - what's the actual solution?
Post by: palpal on April 05, 2012, 17:28:59 PM
Hi all,

I have a fresh installation on version of VM 2.0.3.I. with Joomla 2.5.4. and the add-to-cart function is working on most of the browsers.
I am using default Beez2 template.

Firefox 11   / perfect
Chorm 18   / perfect
IE 7            / working, pop up box size not fit.
Safari 5   / perfect

I am looking forward to the VM2.0.3 stable version for my live site.
Title: Re: Add to cart issues - what's the actual solution?
Post by: przemopj on April 06, 2012, 12:04:32 PM
Hi!
I have joomla 1.5.26 with virtuemart 2.0.2
I have problem with cart button as almost everyone. I have tested most of the solutions witch was written on this forum on my live site - doesn't work.
So i installed fresh joomla + viruemart 2.0.2 (without other components, modules or plugins)  - problem with cart still exists, even on standard templates.
Please look on site www.gastrofun.eu - add to cart button doesn't work.

On the other hand i noticed that the same site on subdomain http://test.gastrofun.eu works fine!

Any clue?

Server dosn't use apache and site is redirected to folder...
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on April 06, 2012, 15:15:28 PM
Quote from: przemopj on April 06, 2012, 12:04:32 PM
Hi!
Server dosn't use apache and site is redirected to folder...


WHEN, I change the web address to NOT have www.

Every time I click "add to cart" it works.   BUT: The pop up does not appear.
I can go to index.php?option=com_virtuemart&view=cart
and see the products in the cart.

SO: Its a server, setup issue somewhere.

It could be from being redirected

Title: Re: Add to cart issues - what's the actual solution?
Post by: Steo on April 10, 2012, 17:07:25 PM
Please help, same 'Add to Cart' problem, no pop up window and no cart stays empty.

Joomla! 1.7.5 Stable, Virtuemart 2.0.4, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0)
Virtuemart Javascript: all ON
Google library: OFF

Test link : http://www.annybarlowimages.com/test (http://www.annybarlowimages.com/test)

Help highly appreciated!

Been reading all related post for the last 10 days, tried bit of everything, but no joy!!!
Title: Re: Add to cart issues - what's the actual solution?
Post by: groentjie on April 10, 2012, 17:48:07 PM
Solution: Install http://www.simplifyyourweb.com/index.php/downloads/category/8-loading-jquery (http://www.simplifyyourweb.com/index.php/downloads/category/8-loading-jquery)
Publish it according to settings and it works!
Title: Re: Add to cart issues - what's the actual solution?
Post by: Steo on April 10, 2012, 18:12:30 PM
...tried already, and no joy...
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on April 10, 2012, 19:04:37 PM
Quote from: Steo on April 10, 2012, 17:07:25 PM
Please help, same 'Add to Cart' problem, no pop up window and no cart stays empty.

Joomla! 1.7.5 Stable, Virtuemart 2.0.4, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0)
Virtuemart Javascript: all ON
Google library: OFF

Test link : http://www.annybarlowimages.com/test (http://www.annybarlowimages.com/test)

Help highly appreciated!

Been reading all related post for the last 10 days, tried bit of everything, but no joy!!!


looking in your source code, I see
vmSiteurl = 'http://annybarlowimages.com/test/' ;

BUT, when I try to access the site WITHOUT the www, i get redirected

Title: Re: Add to cart issues - what's the actual solution?
Post by: cpetitclerc73 on April 11, 2012, 03:21:01 AM
I am using Joomla 2.5.4 and Virtumart 2.0.4 PHP 5.3.6
The site is http://www.sharptech-inc.com/

I have tried everything and spend 3 days on this with no solution to the add to cart button not working. It was working and for some reason it is now not.
I have only installed JCE / JCE media / Akeeba back-up and a Virtumart theme. It was all working fine and now it is not in Google Chrome and IE 9.

I now upgraded to Virtumart 2.0.4
I tried unpublishing all modules except the shopping cart module / main menu.
I tried un-checking all javascripts individually in Virtumart / configuration / templates
I tried unchecking Use external Google J-query library under configuration/shop

I have all basic templates that come with Joomla including the default Virtumart theme.

I installed jQuery Easy and tried every configuration:  http://extensions.joomla.org/extensions/core-enhancements/scripts/18327

Still the add to cart button will not work.
Title: Re: Add to cart issues - what's the actual solution?
Post by: dontflinch on April 11, 2012, 04:06:47 AM
you have a lot of possible conflicts there - you should try switching to the default template.  google javascript or jquery or mootools conflicts then examine your source code.  but if you switch to beez and it works my first guesses would be one of these:


jQuery(document).ready(function ($){
var a = function(self){
self.anchor.fancybox();
};
$('#pikame').PikaChoose({buildFinished:a});
});




JCEMediaObject.init('/', {flash:"10,0,22,87",windowmedia:"5,1,52,701",quicktime:"6,0,2,0",realmedia:"7,0,0,0",shockwave:"8,5,1,0"});JCEMediaBox.init({popup:{width:"",height:"",legacy:0,lightbox:0,shadowbox:0,resize:1,icons:1,overlay:1,overlayopacity:0.8,overlaycolor:"#000000",fadespeed:500,scalespeed:500,hideobjects:0,scrolling:"fixed",close:2,labels:{'close':'Close','next':'Next','previous':'Previous','cancel':'Cancel','numbers':'{$current} of {$total}'}},tooltip:{className:"tooltip",opacity:0.8,speed:150,position:"br",offsets:{x: 16, y: 16}},base:"/",imgpath:"plugins/system/jcemediabox/img",theme:"standard",themecustom:"",themepath:"plugins/system/jcemediabox/themes"});
jQuery(document).ready(function() {
jQuery('#VMmenu9365_161 li.VmClose ul').hide();
jQuery('#VMmenu9365_161 li .VmArrowdown').click(
function() {

if (jQuery(this).parent().next('ul').is(':hidden')) {
jQuery('#VMmenu9365_161 ul:visible').delay(500).slideUp(500,'linear').parents('li').addClass('VmClose').removeClass('VmOpen');
jQuery(this).parent().next('ul').slideDown(500,'linear');
jQuery(this).parents('li').addClass('VmOpen').removeClass('VmClose');
}
});
});
  </script>






<script type="text/javascript">if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>

<script type="text/javascript" src="/templates/template4/jquery.js"></script>

<script type="text/javascript">jQuery.noConflict();</script>

<script type="text/javascript" src="/templates/template4/script.js"></script>

<script type="text/javascript">if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>


that last one tries to do noConflict mode but using tons of javascript is just tricky.

also, I have read that you are supposed to have mootools load first then jquery and yours is opposite.
Title: Re: Add to cart issues - what's the actual solution?
Post by: Steo on April 11, 2012, 04:40:04 AM
Quote from: BanquetTables.pro on April 10, 2012, 19:04:37 PM
Quote from: Steo on April 10, 2012, 17:07:25 PM
Please help, same 'Add to Cart' problem, no pop up window and no cart stays empty.

Joomla! 1.7.5 Stable, Virtuemart 2.0.4, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0)
Virtuemart Javascript: all ON
Google library: OFF

Test link : http://www.annybarlowimages.com/test (http://www.annybarlowimages.com/test)

Help highly appreciated!

Been reading all related post for the last 10 days, tried bit of everything, but no joy!!!


looking in your source code, I see
vmSiteurl = 'http://annybarlowimages.com/test/' ;

BUT, when I try to access the site WITHOUT the www, i get redirected

Thank you for pointing it out, but as you can see on the attached pic, from the backed it is with WWW

[attachment cleanup by admin]
Title: Re: Add to cart issues - what's the actual solution?
Post by: Steo on April 11, 2012, 04:51:12 AM
Quote from: BanquetTables.pro on April 10, 2012, 19:04:37 PM
Quote from: Steo on April 10, 2012, 17:07:25 PM
Please help, same 'Add to Cart' problem, no pop up window and no cart stays empty.

Joomla! 1.7.5 Stable, Virtuemart 2.0.4, Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0)
Virtuemart Javascript: all ON
Google library: OFF

Test link : http://www.annybarlowimages.com/test (http://www.annybarlowimages.com/test)

Help highly appreciated!

Been reading all related post for the last 10 days, tried bit of everything, but no joy!!!


looking in your source code, I see
vmSiteurl = 'http://annybarlowimages.com/test/' ;

BUT, when I try to access the site WITHOUT the www, i get redirected


Thank you BanquetTables.pro!!! Just changed my config.php to point to the www version, and it solved the problem!!! ;D ;D ;D ;D
Title: Re: Add to cart issues - what's the actual solution?
Post by: cpetitclerc73 on April 11, 2012, 06:00:19 AM
I still have an issue with the add to cart button not working.

I think this article might help someone:
http://www.designvsdevelop.com/jquery-in-joomla-i-was-wrong/

In reading that I have no idea how to get a no conflict to load first or even J Query before Mootools for that matter. How do you do that?

I have the Beezs template set up for now, Disabled Google JQuery.

Still having problems. I will post the solution if I ever find one.
Title: Re: Add to cart issues - what's the actual solution?
Post by: cpetitclerc73 on April 11, 2012, 07:46:39 AM
I changed the configuration.php file and added the http:// www in front my domain to match  Virtumart / Shop url.

That is what did the trick. i.e. http://www.mysite.com

Now the add to cart button is working.

FYI You may have to change the permissions of the configuration.php file from 444 to 777 to make the change and then back to 444.
Title: Re: Add to cart issues - what's the actual solution?
Post by: John2400 on April 11, 2012, 08:53:09 AM
I lost the ability to add to the cart today,

I did this by simply telling the server - (on the server Cpanel) to redirect my site to the www.   

ie: my site on some search engines was coming up http://mysite.com    so I told the server to redirect all to  http://www.mysite.com

I then lost my ability to add to the cart and the small icon - show cart on the pop up also disappeared. -

fixed but - I have done this on some vm1 site to correct - some issues.
Title: Re: Add to cart issues - what's the actual solution?
Post by: cpetitclerc73 on April 11, 2012, 15:45:42 PM
That was short lived.  :-[
My add to cart button stopped working again. I added a couple products in the back end and POW, It stopped working. This button is very unstable and flakey. The site is https://www.sharptech-inc.com/
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on April 11, 2012, 16:09:34 PM
Quote from: cpetitclerc73 on April 11, 2012, 15:45:42 PM
That was short lived.  :-[
My add to cart button stopped working again. I added a couple products in the back end and POW, It stopped working. This button is very unstable and flakey. The site is https://www.sharptech-inc.com/

if you view source, it say "vmSiteurl = 'http://www.sharptech-inc.com/' ;"

so, when I change the https, to http   the add to cart works

Title: Re: Add to cart issues - what's the actual solution?
Post by: cpetitclerc73 on April 11, 2012, 16:51:43 PM
I went to another computer and the add to cart works. Wierd. I have tested on IE7, IE9 and Google Chrome.
Cross my fingers and hope it stays working. I remember having this issue on the last website I built at https://comedycave.com/
Both are working and I hope they stay that way. I am loosing sleep over this issue. The store is pointless without this feature working. Its a good learing experience.  ;)
Title: Re: Add to cart issues - what's the actual solution?
Post by: Studio 42 on April 13, 2012, 07:04:34 AM
HI all,
The actual solution is that joomla provide a way to test jquery.
why this exist ?
JHTML::_('behavior.mootools');
and not
JHTML::_('behavior.jQuery');

Simply write in joomla forum, they support jquery as native and then we can sing . Joomla , What a wonderfull word ...

For joomla team example :

/**
* Write a <script></script> element
* @param   string   path to file
* @param   string   library name
* @param   string   library version
* @param   boolean   library version
* @return  nothing
*/

public static function scriptlibrary($path,$namespace,$version='', $minified = null)
{

static $loaded = array();

// Only load once
// using of namespace assume same library have same namespace
// loading 2 time jquery with this method simply return and do not load it the second time

if (!empty($loaded[$namespace])) {
return;
}

$version = $version ? '.'.$version : '';
$min = $minified ? '.min' : '';

JHtml::script( $namespace.$version.$min.'.js', $path);
$loaded[$type] = true;

}

   
        example of use assuming this is integrated in jhtml

   JHTML::scriptLibrary('mypath','jquery','1.6.1',true);

I know myself how to prevent 2 load of files or javascript, but when only one person implement it then the work is done for nothing.
If, with the time, it's integrated to joomla you have no more conflicts because loading 2 tiime same library.

Another good sample :
   JHTML::scriptLibrary('mypath','jquery','1.6.1',true);
   JHTML::scriptLibrary('//ajax.googleapis.com/ajax/libs/jquery/1.6.4/','jquery',false,true);
   JHTML::scriptLibrary('templates/'.$this->template,'jquery','1.5.2');
only load one time the library

template loading vmprices version :
JHTML::scriptLibrary('templates/'.$this->template,'vmprices');
in Virtuemart :
JHTML::scriptLibrary( 'components/com_virtuemart/assets/js/','vmprices');
only load template modified version of vmprices


Title: Re: Add to cart issues - what's the actual solution?
Post by: ah-solutions on April 13, 2012, 15:18:41 PM
Hello,

I'm developing at the moment a webshop based on Joomla 2.5.4 and Virtuemart 2.0.4 with actually 2 Languages (German und English). Following "Add to Cart"-Issue I have recognized. It is possible to add a product to the cart without any problem in the default language of the site, but if you switch to the other language, the button is not working any more.

For Example: if the default language is German, you can press the "Add to Cart"-Button without any problems. If you switch to the English Version of the site, nothing happens any more. The moment you change the default language in Joomla from German to English, it is the other way round, the English "Add to Cart" works, the German not.

I think, the problem comes from the origninal initialization of the Javascript, but unfortunately I haven't found a solution yet, but maybe someone of you has already found one. The moment I find something out so solve this, I will post it here.

Best regards
Bernhard Hödl
Title: Re: Add to cart issues - what's the actual solution?
Post by: jjk on April 13, 2012, 20:48:18 PM
Quote from: ah-solutions on April 13, 2012, 15:18:41 PM
...If you switch to the English Version of the site, nothing happens any more. The moment you change the default language in Joomla from German to English, it is the other way round, the English "Add to Cart" works, the German not.

I'm using Joomla 2.5.4 and VM 2.0.4 on a bilingual german/english installation too. The 'Add to cart' button always works for me. I can add a product in one language, switch to the other language and add another product, switch language again, etc. ...it always works.
Maybe you have a Javascript conflict with another extension or your template somewhere.
Title: Re: Add to cart issues - what's the actual solution?
Post by: Studio 42 on April 15, 2012, 11:07:04 AM
Quote from: jjk on April 13, 2012, 20:48:18 PM
Quote from: ah-solutions on April 13, 2012, 15:18:41 PM
...If you switch to the English Version of the site, nothing happens any more. The moment you change the default language in Joomla from German to English, it is the other way round, the English "Add to Cart" works, the German not.

I'm using Joomla 2.5.4 and VM 2.0.4 on a bilingual german/english installation too. The 'Add to cart' button always works for me. I can add a product in one language, switch to the other language and add another product, switch language again, etc. ...it always works.
Maybe you have a Javascript conflict with another extension or your template somewhere.
A have add a fix in config(checkout tab), seems this only come in some joomla version.
Tested on a live site and local server(next final release is comming next)
Title: Re: Add to cart issues - what's the actual solution?
Post by: janssenrik86 on April 23, 2012, 17:10:18 PM
When you use a template of Joomlart with T3 support, you can fix your problem:

Go to your template in the backend of joomla
>>
You see the options 'Optimize CSS' and 'Optimize JS'.

Set:
Optimize CSS to 'Join & minify'
Optimize JS to 'No'

Problem was solved!!!
Title: Re: Add to cart issues - what's the actual solution?
Post by: stuclark on April 24, 2012, 15:48:25 PM
I found a very simple way of fixing this using my Joomlashack template. It really is amazingly simple!

I previously tried all the tricks people were talking about here, but I could only ever get either my template functions working correctly, or my VM functions working correctly - never both together.

...then, looking at the source code it suddenly hit me... load the JS libraries in the other order...

To do this, I modified my template's main PHP file (in this case it's /templates/<template name>/template.php but usually /templates/<template name>/index.php) and made the following change (from the top version to the bottom version):

<?php
/**
* @copyright Copyright (C) 2010 Joomlashack LLC. All rights reserved.
*/
// no direct access
defined'_JEXEC' ) or die( 'Restricted access' );
?>

<doctype>
<html>
<head>
<w:head />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->document->template ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->document->template ?>/js/superfish.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery('document').ready(function(){
jQuery('#navbar ul.menu')
.find('li.current_page_item,li.current_page_parent,li.current_page_ancestor,li.current-cat,li.current-cat-parent,li.current-menu-item')
.addClass('active')
.end()
.superfish({})
jQuery('a.sf-with-ul').parent().addClass('sf-with-ul');
});
</script>


<?php
/**
* @copyright Copyright (C) 2010 Joomlashack LLC. All rights reserved.
*/
// no direct access
defined'_JEXEC' ) or die( 'Restricted access' );
?>

<doctype>
<html>
<head>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->document->template ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->document->template ?>/js/superfish.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery('document').ready(function(){
jQuery('#navbar ul.menu')
.find('li.current_page_item,li.current_page_parent,li.current_page_ancestor,li.current-cat,li.current-cat-parent,li.current-menu-item')
.addClass('active')
.end()
.superfish({})
jQuery('a.sf-with-ul').parent().addClass('sf-with-ul');
});
</script>
<w:head />


If you didn't spot the change, I'll expain... I simply moved the <w:head />tag from loading first to loading last. This had the effect to force VM to load it's JS after the template JS, meaning it took control.

Hey presto - problem fixed!
Title: Re: Add to cart issues - what's the actual solution?
Post by: marrius on April 25, 2012, 23:18:28 PM
My problem was as follows. If you activate jquerry, lightbox does not work well, if I disable jquerry in VirtueMart, not work basket. So I found the following compromise solution for the configuration consisting of Joomla 2.5.4 + VirtueMart 2.0.6 + Template shape5 vertex + xmap + joomla watch:

- I disable the VirtueMart function: Use external library jquery google
- I disabled the function: Using the jQuery VirtueMart
- I disabled system cache, instead I activated progressively cache
I installed JQuery EASY with the following settings:
   = Enable jQuery
  = Strip Conflict No Code: Yes
  = Add No Conflict Code: Thru script declaration

With this settings, both cart and lightbox works fine.
Title: Re: Add to cart issues - what's the actual solution?
Post by: Studio 42 on April 27, 2012, 17:11:44 PM
We rewrote some code, next revision must correct many little conflict/errors.
BTW we removed some unnneeded FE scripts from default load to gain page speeding.

You can now use vmJsApi::js() function to load script in your module(after loading the virtuemart config file)

vmJsApi::js( false,'jquery','',true);
load jquery for eg
(looking in template or fallback to virtuemart and load it)

Some explains :
/**
* Write a <script></script> element
* @param   string   path to file
* @param   string   library name
* @param   string   library version
* @param   boolean  load minified version
* @return  nothing
*/

public static function js($path=false,$namespace,$version='', $minified = null)


It's better to use it always, if the script is only for virtuemart, this prevent errors in modules for eg.
BUt you MUST make your own NAMEspace if you write a personnal library/script.
such as mod_mymodulescript.js give
vmJsApi::js('modules/mod_mymodule','mod_mymodulecript','',true);
the function auto add the "ROOT" from joomla and the extention ".JS" to load the file

YOu can look in JOOMLAROOT\administrator\components\com_virtuemart\helpers\config.php
To see many example
(This work same for external script loading)

More info http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
Title: Re: Add to cart issues - what's the actual solution?
Post by: goulader on May 13, 2012, 00:39:40 AM
really useful information, i will change my official website Κατασκευή Ιστοσελίδων  (http://webdesignsm.com) Simple (http://webdesignsm.com) by using joomla virtuemart.

very good post
Title: Re: Add to cart issues - what's the actual solution?
Post by: Tom Goedhart on May 13, 2012, 23:58:12 PM
Unfortunately i've got the same problem. I had multiple instances of jQuery loaded so i turned them all off. Without result. When i play with various jQuery load-options i get some strange results:

When i load jQuery via the jQuery Easy plugin, the popup works but won't add anything to my cart. Also all the other jQuery won't work on the Virtue-mart-pages.

When i load jQuery manually in my template after the <jdoc:include type="head" /> the popup wont work and i'm redirected to my cart. Still empty. However all the other jquery is working on the Virtue-mart-pages.

When i load jQuery manually in my template before the <jdoc:include type="head" /> the popup works and when i look in my cart it is updated. However all the other jQuery-elements are again not working.

What is going wrong? When you look at the site now i placed the jQuery manualy before the <jdoc:include type="head" />.

You can visit the site here: http://www.verbiest.nl/index.php/dansen/cursussen-paren/bruidsparencursus-spoedcursus-detail
My virtue-mart settings are:

Virtuemart jQuery = Off
Product Scripts = On
Script Country's = Off

$live_site = '';
Title: Re: Add to cart issues - what's the actual solution?
Post by: Actlas on May 15, 2012, 12:19:14 PM
Good question. To repeat the topic title: What is the actual solution now?
Title: Re: Add to cart issues - what's the actual solution?
Post by: Lorrein on May 15, 2012, 12:29:10 PM
Hi,

I'd like you to know I found some cashing problems preventing add to card to work properly.

http://forum.virtuemart.net/index.php?topic=102534.msg340427#msg340427
Title: Re: Add to cart issues - what's the actual solution?
Post by: Tom Goedhart on May 16, 2012, 09:55:12 AM
Tnx lorrein! I've read your post and spathe issues described sound formilliar! I don't think it will fix the jquery problem but I hop it does fix the add-to-cart functions! I'll test it and let you know!
Title: Re: Add to cart issues - what's the actual solution?
Post by: anjousa on May 25, 2012, 02:40:09 AM
Quote from: marrius on April 25, 2012, 23:18:28 PM
My problem was as follows. If you activate jquerry, lightbox does not work well, if I disable jquerry in VirtueMart, not work basket. So I found the following compromise solution for the configuration consisting of Joomla 2.5.4 + VirtueMart 2.0.6 + Template shape5 vertex + xmap + joomla watch:

- I disable the VirtueMart function: Use external library jquery google
- I disabled the function: Using the jQuery VirtueMart
- I disabled system cache, instead I activated progressively cache
I installed JQuery EASY with the following settings:
   = Enable jQuery
  = Strip Conflict No Code: Yes
  = Add No Conflict Code: Thru script declaration

With this settings, both cart and lightbox works fine.

My problem is, I did what you say and my virtuemart works, but after I installed jquery my joomla menu is not working:
Site | Menus | Content | Components | Extensions | Tools | Help
Just the bottons works, do you know how to turn jquery off?
Thanks!
Title: Re: Add to cart issues - what's the actual solution?
Post by: RedJohn on July 03, 2012, 10:30:03 AM
In my case I had multiple instances of jQuery loaded.
One from google or virtuemart (doesn't matter), and second with external module slider (mod_btslideshow).
The simple solution is disable for test modules OR copy all files to local hard drive and search all js files to find and delete (from serwer) this twice declarated file.

PS. sory for my english, i hope that You understands and i can help.
Title: Re: Add to cart issues - what's the actual solution?
Post by: communion on July 10, 2012, 08:30:46 AM
FYI Add to cart is broken in IE9. Works fine in compat mode (IE8 mode). This happens on clean install of VM 2.0.6 or 2.0.8 with barebones Joomla 1.5.26 install. No special plugins or anything installed. It works in every other browser, FF, Chrome, Safari, etc. but IE9.

Might want to look into that...It pretty much makes this offering, although generally awesome, useless to the masses.

Title: Re: Add to cart issues - what's the actual solution?
Post by: communion on July 10, 2012, 13:39:57 PM
FYI Add to cart is also broken under Joomla 2.5 with 2.0.6-2.0.8 in IE9. It just links to the cart page without updating the contents. Working in IE 8 compat mode, although the facebox popup is really wide, may need a css exception for IE8.

Will continue testing, but hoping this can be fixed in the next release, I have clients that need VM2!

Title: SOLVED: Re: Add to cart issues - what's the actual solution?
Post by: DukeURL2 on July 11, 2012, 22:15:16 PM
Hi all,

I too was having the same "add to cart" problem. However, I solved the issue by unchecking the "aad to cart"... checkbox in VirtueMart configurations.

DukeURL2
Title: Re: Add to cart issues - what's the actual solution?
Post by: sopetite on July 12, 2012, 16:25:32 PM
Unfortunately I can also attest taht the Add to Cart function is broken for 2.08c. It broke after I updated from 2.08a to 2.08c on my site, taglovely.com

Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on July 15, 2012, 21:28:47 PM
Quote from: sopetite on July 12, 2012, 16:25:32 PM
Unfortunately I can also attest taht the Add to Cart function is broken for 2.08c. It broke after I updated from 2.08a to 2.08c on my site, taglovely.com



^^ all products are set to "notify me"

So how can we look?

have you tried with another template?

beez_20 has a lot of java
Title: Re: Add to cart issues - what's the actual solution?
Post by: communion on July 19, 2012, 03:29:16 AM
Mine is working in everything but IE9 specifically. Can someone take a look here:

http://www.leeoskarpaintings.com/test

Thanks in advance
Title: Re: Add to cart issues - what's the actual solution?
Post by: communion on July 19, 2012, 22:16:44 PM
Ok, after further testing, I disabled the "Add to Cart Modal Window" function in the Configuration, and the product is still not added to the cart on IE9, the browser just redirects to the cart page but the product is not added. Also quantity buttons are not working on IE9 either.

Can someone take a look here:
http://www.leeoskarpaintings.com/test
Title: Re: Add to cart issues - what's the actual solution?
Post by: sopetite on July 22, 2012, 20:23:49 PM
Quote from: BanquetTables.pro on July 15, 2012, 21:28:47 PM
Quote from: sopetite on July 12, 2012, 16:25:32 PM
Unfortunately I can also attest taht the Add to Cart function is broken for 2.08c. It broke after I updated from 2.08a to 2.08c on my site, taglovely.com



^^ all products are set to "notify me"

So how can we look?

have you tried with another template?

beez_20 has a lot of java
That was the whole point. It was showing just "notify me" because of the bug that was fixed. When you click a child class the "add to cart" button appears.
After the update to build e, Add to Cart function works again.
Title: Re: Add to cart issues - what's the actual solution?
Post by: sopetite on July 22, 2012, 20:27:28 PM
My website running on the latest version as of today (build e) is running great on IE 9
Title: after login On my website add to cart is not working becoz
Post by: rupesh on July 25, 2012, 18:23:10 PM
 after login On my website add to cart is not working becoz

1)i have turned on sef urls in joomla backend!

2) i have added
RewriteCond %{HTTP_HOST} !^www.YourSite.com$ [NC]
RewriteRule ^(.*)$ http://www.YourSite.com/$1 [L,R=301]

in htaccess

before login add to cart works perfectly!

see this:http://www.elifeshopping.com/index.php?lang=en

login
user:rupesh1989
pass:abcdef10
Plz help me!!
Title: Re: Add to cart issues - what's the actual solution?
Post by: rupesh on July 26, 2012, 12:19:17 PM
i solved it finally ! jus turn off "system language filter" and now add to cart starts working!


thank you
Title: Re: Add to cart issues - what's the actual solution?
Post by: Kevin14688 on August 01, 2012, 23:09:42 PM
Quote from: rupesh on July 26, 2012, 12:19:17 PM
i solved it finally ! jus turn off "system language filter" and now add to cart starts working!


thank you

hmm.. good idea.. but now my whole Shop doesn't work either..
Title: Re: Add to cart issues - what's the actual solution?
Post by: skrystos on August 07, 2012, 14:32:29 PM
I've got problem with price update based on quantity in Viruemart 2.0.6 product detail page. When I hit +/-, JS is doing something (I see some changes in font color) but didn't change price at all. I can't update now to 2.0.8 because I have some modifications on my shop and I don't want to start again. This is only one thing, which makes problem for me. Ofcourse when I change quantity number and add product to cart, the price is correct.

Here is url to my shop:
http://ciechan.home.pl/ciechannew/sklep/napoje/venga-energize-detail (http://ciechan.home.pl/ciechannew/sklep/napoje/venga-energize-detail)
Title: Re: Add to cart issues - what's the actual solution?
Post by: PRO on August 08, 2012, 17:04:26 PM
Quote from: skrystos on August 07, 2012, 14:32:29 PM
I've got problem with price update based on quantity in Viruemart 2.0.6 product detail page. When I hit +/-, JS is doing something (I see some changes in font color) but didn't change price at all. I can't update now to 2.0.8 because I have some modifications on my shop and I don't want to start again. This is only one thing, which makes problem for me. Ofcourse when I change quantity number and add product to cart, the price is correct.

Here is url to my shop:
http://ciechan.home.pl/ciechannew/sklep/napoje/venga-energize-detail (http://ciechan.home.pl/ciechannew/sklep/napoje/venga-energize-detail)

is it set for "price modifier for profit margin"

????
Title: Re: Add to cart issues - what's the actual solution?
Post by: walter on October 06, 2012, 00:43:00 AM
I a having issues with a site from a friend. She asked me to install VM on her Joomla 1.5.26. I used the VM2.0.12 version. Everything seems to work, except the cart functionality. Is there a checklist/troubleshoot I can follow to find the cause of this error?

Check  on http://www.yorajewels.be/shop.php?view=category&virtuemart_category_id=6
(Menu button is hidden with overflow, but will be visible when the eshop is working)
Title: Re: Add to cart issues - what's the actual solution?
Post by: walter on October 06, 2012, 00:50:44 AM
I disabled the popup for "add to cart" and now products are added. This is good enough.
Title: Re: Add to cart issues - what's the actual solution?
Post by: mrowley on October 15, 2012, 16:50:01 PM
I used <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> to fix this issue, not the cleanest of fixes but it works. It Needs to be the FIRST thing after the <head> tag in your themes index.php

Hope it helps someone.
Title: Re: Add to cart issues - what's the actual solution?
Post by: nickwiebe on October 24, 2012, 18:50:04 PM
I have read through many posts, but I have to say the jQuery is the problem.  For me, my main navigation bar was loading a jQuery.  I took this navigation off the page and wala the store cart and state load are now working like they should.  Will have to find navigation to put in my store that doesn't require jQuery I guess.
Title: Re: Add to cart issues - what's the actual solution?
Post by: graveir on November 05, 2012, 11:04:55 AM
I have a problem on firefox only. I had a problem with all the browsers, and yes it was jquery's fault, but I managed to make it work on IE, Chrome, Opera and Safari. The only browser that doesn't want to add the product to a cart is Firefox.

https://www.sklepweterynaryjny.pl/

Doesn't matter if you're logged in or not. Turning off all the modules on the site doesn't do the trick either. Jquery shouldn't be a problem - the site works like charm on all the other browsers.

I may create an administration account for anyone who is willing to help :)

Any ideas?
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on November 05, 2012, 17:14:21 PM
Hello graveir,

Something goes wrong with the jquery ... you are using 1.8 version of the library, could you try with 1.7.x please? As i see you are using jqueryeasy to avoid conflicts and the rest, good option, from that plugin please try an order version of jquery. By default vm uses 1.6.x but with 1.7.x will work great. Please test it.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: RevoLion on November 05, 2012, 21:21:58 PM
Just upgraded my VM from 2.0.10 to 2.0.12f and now non of my custom fields or add to cart buttons or price is showing and I have no idea how to downgrade? What did I do wrong? I have Joomla 2.5.7

#blank#
Title: Re: Add to cart issues - what's the actual solution?
Post by: graveir on November 05, 2012, 23:43:39 PM
Thanks for the reply, bytelord. I've tried several configurations of sole jquery, jquery + UI, 1.7 latest, 1.7.1, none of them make the button work on firefox, none of them break it under chrome. Basically, nothing changes...
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on November 06, 2012, 01:25:53 AM
graveir,


Seems that addJs is not working ... so is a jquery conflict. You could try to enable the usage of vm jquery without blocking it out with jqueryeasy. Go to Configuration-> Templates and at the left bottom Activate Css Styles & Javascripts please enable the options Using the VirtueMart jQuery and Using the product Scripts.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 02, 2012, 05:34:15 AM
Hello guyz,

I've been trying to fix this problem for about 2 dayz.
Well i cannot update or delete an item from the cart immediately.
Seems it uploads or deletes after some seconds delay and sometimes this results on removing a new product that i've added.
Maybe its a conflict i dunno but seriously PLZ YOU NEED TO HELP.
Site: www.imousakas.com
(have uploaded a testing product).

Mod Edit: Double post remove it.
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 02, 2012, 06:05:33 AM
*** forgot to add that i'm using a MULTILINGUAL SITE and vm2, joomla 2.5 i guess, template:theme257.
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on December 02, 2012, 06:16:03 AM
@kalogeros

Geia sou,

Everything is working fine, there is no any javascript confict, you just cache your site and vm2 also ... please exclude from the cache the cart page and the cart module if your cache plugin lets you to do it. I usually suggests to vm2 users, use JotCache if you search the forum you will find some good posts, like: https://forum.virtuemart.net/index.php?topic=108174.0

Always use firebug to examine your site code and styling.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 02, 2012, 19:35:47 PM
Thank you very much Nikos.
I rly appreciate the quick response. I'll try it out tomorrow, hope it works and let you know how it goes.
Geia kai se sena! (in case you're a Greek aswell) :D
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 03, 2012, 17:26:44 PM
@bytelord

Hi again,

Well i've configured some options of the jotcache and forum's technichs aswell. It seems it works better
but now i'm facing this problem that after i remove a product from cart, next time if i add one and try to update, it removes it again.
Does it still have to do with chache?
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 03, 2012, 17:50:41 PM
Also noticed that if it works better if i turn off SEF (but i still need SEF=on;). I'll leave SEF=off at the moment so that you can test.
But what i'm saying is that if i try to update and then remove it still updates twice and only if i go to the home page it seems it removes.
In reverse if i delete from cart and then try to add and update, i removes again. Dunno what to do. I've configured jotCACHE exclude all components caching,
added to cache.php if !$SESSION[cartid]..ect and also in the template removed user6. Also need SEF =on. why does this happen?

Thanks in advanced!
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on December 03, 2012, 21:29:56 PM
Hello kalogeros,

You have to exclude the cart module also from caching,
https://forum.virtuemart.net/index.php?topic=108174.msg370207#msg370207
https://forum.virtuemart.net/index.php?topic=108174.msg370680#msg370680

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 04, 2012, 02:35:27 AM
Ok i'm a bit of mad confused and dissapointed. :(
I need to find a solution with it(if you help me solve it i'll give you try one of my products that i'll upload free (if you're in greece))!

Well i've tried everything. I've definately tried excluding from the index.php the position of cart with jot comments and after going to
the jotcache component and added to the TPL Exclude (user6 and xhtml)-> Question:Do i need to do both?->(add the TPL Exclude on the component and also the index.php page?)
Secondly, i've tried on the URL Exclude:com_virtuemart both adding only cart and page=shop.cart,page=checkout.index,page=shop.product_details,pop=1 and both of them.
So Second Question(cause i'm confused with it). Do i have to put page=shop.cart,page=checkout.index,page=shop.product_details,pop=1 on the URL Exclude:com_component as
jotCache's forum says http://www.jotcomponents.net/forum/6-jotcache-installation-setup/88-virtuemart-2-shopping-cart-module#88 or on Browser Cache tab(Exclude URI) which
amlil71 said https://forum.virtuemart.net/index.php?topic=108174.msg370680#msg370680 ?? Cause what does he mean with Exclude URI?->if i put this whole params on the Exclude URI(browser Cache tab(on jotCache component)) it doesnt accept it.

So i dont know what to do i still have the problem wich when i add to cart and update and then delete it updates twice again. or it deletes in the main page.
And also what happens if i put SEF?

I cant switch on other e-shops cause i've already written to much code for joomla on the backend and all of my work will go waste.
PLZ FIND ME A SOLUTION.
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on December 04, 2012, 03:02:33 AM
Hello,

Your could not use cache and js/css compression Technics at the moment. I use css/js compresion and caching when my site is finished, i solve any issues and then i go live.
There is also possibility your template is not update, but for this i cannot do much, so,

Try without template overrides and without caching/compression on a local installation
If is working then please update your template files to your current vm2 version:

Please read this first: http://forum.virtuemart.net/index.php?topic=108212.0

changes between versions: http://virtuemart.net/index.php?option=com_content&id=416

Also there is layoutchanges.zip files after 206 that will show you exactly the areas that the code have been changed. Those are images comparing to previous versions will help you to update your template overrides easy.

http://dev.virtuemart.net/attachments/download/456/com_virtuemart.2.0.8_layout_changes.zip
http://dev.virtuemart.net/attachments/download/476/com_virtuemart.2.0.10_layout_changes.zip
http://dev.virtuemart.net/attachments/download/492/com_virtuemart.2.0.12_layout_changes.zip

Also useful links if you are not familiar with template overrides for vm2 or joomla:

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Overrides:
Creating Template overrides: https://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

PS: As i have seen also template monster has refused from many users that bought their product to update them in a newer version, so please contact them, if they cannot update your template files for you, you can do it by yourself with the instructions i gave you or use other template for vm2. Or place it as a commercial job so someone update the template for you under jobs sections.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 04, 2012, 03:41:51 AM
Well i'll try what you wrote above but it seems too wierd to me that it used to work before i went to multilingual site.
Cause that will be the second template i update. I also changed another one before cause of the same issue. So i firstly tested this one and then
bought it. Are you sure that i should change a template?
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on December 04, 2012, 04:42:59 AM
Hi,

I am not sure, no. Because those are not products that i have use them, especially third party templates, i create my own. As i suggest before the best is use the default template without overrides and test your site. If is working and the functionality is as you want it, enable your template back and check for any errors using firebug (e.g. javascript conflicts), also may be there is need to update your template files. Then after you finish your site try with cache and compression options to improve response and speed.

What's your exactly vm2 version you are using? hopefully 2.0.14.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 06, 2012, 19:32:42 PM
Well yes i'm using 2.0.14 and it says to update to 2.0.6(should i?). Anyway i've messed up everything. had taken a backup before and then removed some plugins and then restored the
whole (home) on the server. But the administrator's changes didnt restore and stayed as they were made. So now there are more problems.
Title: Re: Add to cart issues - what's the actual solution?
Post by: kalogeros on December 06, 2012, 20:31:04 PM
Man i'm rly tired of it. I can pay about 200-300 euro for someone to fix this problem and change template etc. Can you do it for me or someone else?
i'm rly sick and tired of it.
Title: Re: Add to cart issues - what's the actual solution?
Post by: bytelord on December 07, 2012, 00:20:05 AM
Hi,

I think means that you have version 2.0.6 (did you try to clean your cache?). I send you a PM.

Regards
Title: Re: Add to cart issues - what's the actual solution?
Post by: Denniz0229 on January 17, 2013, 14:39:53 PM
so... after reading this whole topic and a lot of other stuff via google I still haven't found a solution.

my website is running VM 2.0.18a and joomla 2.5.8 (website: www.novosmoke.nl)

everything worked perfect, until i made some adjustments to some products, by simply adding child products and making card variants for them.
after that i can't add anything to the cart, and also i am getting this error.
QuoteWarning: Invalid argument supplied for foreach() in /public/sites/www.novosmoke.nl/plugins/vmcustom/stockable/stockable.php on line 229

pretty weird that it happened after adding some products. also, the problem only appears in firefox.
and since alot of my customers do use firefox its a pretty nasty problem.

any help would be greatly appreciated.
Title: Re: Add to cart issues - what's the actual solution?
Post by: jjk on April 11, 2013, 07:11:40 AM
Do you have a link to a product where errors happen? I just tried to add a few of your child products to the cart using Firefox 20 and all of them were placed into the cart correcty without any errors showing up.
Title: Re: Add to cart issues - what's the actual solution?
Post by: WSS on May 07, 2013, 04:05:01 AM
Hi,

When your ready... Can I have some help with this issues too?
I click 'add to cart' the new cart screen opens however there is no products.

VM-2.0.20b
JL- 2.5.6
PHP- 5.2.17
www.windsurfnsnow.com
anything else?

Title: Re: Add to cart issues - what's the actual solution?
Post by: jenkinhill on May 07, 2013, 10:27:29 AM
@WSS you were answered here:  http://forum.virtuemart.net/index.php?topic=115373.0
Title: Re: Add to cart issues - what's the actual solution?
Post by: greaves on January 20, 2014, 20:14:40 PM
Hello, I also have a problem with the add to cart button, is there a conflict between those files :
  <script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/media/system/js/core.js" type="text/javascript"></script>
  <script src="/media/system/js/modal.js" type="text/javascript"></script>
  <script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>
  <script src="https://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
  <script src="/plugins/system/jqueryeasy/jquerynoconflict.js" type="text/javascript"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/noconflict.js" type="text/javascript"></script>
  <script src="/plugins/system/jsntplframework/assets/joomlashine/js/utils.js" type="text/javascript"></script>
  <script src="/templates/jsn_nuru_free/js/jsn_template.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jquery.mCustomScrollbar.js" type="text/javascript"></script>
  <script src="http://tw.mixew.com/modules/mod_virtuemart_quickcart/assets/jlscript.js" type="text/javascript"></script>

Thx in advance
Title: Re: Add to cart issues - what's the actual solution?
Post by: greaves on January 23, 2014, 19:43:38 PM
update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?
Title: Re: Add to cart issues - what's the actual solution?
Post by: Milbo on January 29, 2014, 19:44:05 PM
atm jquery1.6, but we have now a version running up to jquery1.10

btw I read in another thread this solution, maybe it helps also here

Quote from: Muszti on January 24, 2014, 15:11:24 PM
For me it was the same problem: add to cart button fancybox did not work.
tried my page with http://www.hermex.hu, then tried http://hermex.hu
One of them was working well with the add to cart popup, other didn't.

It turned out that in configuration php it was a setting for live site either one link with www or without it.

I just cleared out that setting in configuration.php like this:
public $live_site = '';

And now both way of domain name works correctly.
Title: Re: Add to cart issues - what's the actual solution?
Post by: foo on March 18, 2014, 00:07:40 AM
Can someone check and tell me if the add to cart button works on IE8 and IE9 for this website please? http://forfarfurnitureuk.co.uk/index.php/bedroom-furniture/view/productdetails/virtuemart_product_id/10/virtuemart_category_id/23

I don't want to waste time with virtuemart if I can't get the cart to work on IE

I have it working on Firefox and Chrome. To get it to work on FireFox I had to install JQuery Easy Plugin. With it set to JQuery enabled version 1.4 and subversion 4 (1.4.1).

I am using Joomla! 2.5.17 and Virtuemart 2.0.26d

PHP Built On    Linux lin197.gridhost.co.uk 2.6.32.21-grsec #6 SMP Fri May 20 17:37:06 BST 2011 x86_64
Database Version    5.5.28-29.1
Database Collation    utf8_general_ci
PHP Version    5.3.28
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.17 Stable [ Ember ] 18-December-2013 14:30 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0
Title: Re: Add to cart issues - what's the actual solution?
Post by: Milbo on March 19, 2014, 09:31:12 AM
You have a wrong impression.

The add to cart button works completly normal. The thread is now almost a year old and within this year only 2 people posted that they have a problem with it.

One time
Quote from: greaves on January 23, 2014, 19:43:38 PM
update : It seems to be cause by the quickcart extension, I'll keep you posted

Which JS file does the add to cart button use ?

in your case it will be similar, somehow connected to your template. We cannot prevent that a bad template destroys the features of VM. You may read in our template FAQ http://forum.virtuemart.net/index.php?board=137.0

I will unsticky this post now, because the thread was active almost a year ago and within this year only 2 people posted that they have a problem with it.
Title: Re: Add to cart issues - what's the actual solution?
Post by: GJC Web Design on May 17, 2014, 13:25:25 PM
As this is something that happens only "sometimes" on your site it must be something "on" your site

If it was a VM bug it would have been reported / noticed 100's of times

On yours I notice there is constant posting from Yandex
you also have google & counterrambling - what ever this is  - but at least unobstrusive Gets

as addto cart is Ajax posts etc maybe this amount of traffic is interfering?

try for a period of time with this traffic hogging switched off?  - just an idea..

[attachment cleanup by admin]
Title: Re: Add to cart issues - what's the actual solution?
Post by: borro on May 19, 2014, 11:37:58 AM
Thank you for idea
Quote from: GJC Web Design on May 17, 2014, 13:25:25 PM
try for a period of time with this traffic hogging switched off?  - just an idea..
I tried. I deleted them all (Yandex, Google and Rambler counter). Mistake was repeated again, it was still there. It's something else makes all priceses of a products in cart having the cost of a product which I was trying to add the last. But what is it?.. I've noticed that it usually happens when you trying to add something into a cart right after the loading some page with a products. May be some scripts have not enough time to be loaded from a server to make adding operation correct. In other words may be some scripts which influence the cart cann't be downloaded in time. What do you think?
It seems that in a holidays no such mistakes can be detected. May be it depends on hosting capacity. Here is the site (http://www.antilopagold.su/breloki)
Title: Re: Add to cart issues - what's the actual solution?
Post by: borro on May 29, 2014, 15:59:09 PM
After upgrade to VM 2.6.2 the problem of the same costs of all products in a cart has gone. But still sometimes the click on add-to-cart button right after a new category is opened redirects to a cart view. I can't find an multiple jquery loading at site. Please confirm or deny my vision by checking one typical page (http://www.antiloppagold.ru/vip-podarki). So what could be the reason of such rare redirections?