VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: uniqueoperator on December 16, 2011, 07:09:47 AM

Title: add to cart button not working
Post by: uniqueoperator on December 16, 2011, 07:09:47 AM
joomla 1.7.3 and vm 2.0 (1.9.8m) for new install.

categories and products loaded.
jquery on

problem: arfter selecting category, ten product, then details then quantity all ok; click on "add to cart" nothing happens, doesn't go to cart; but navigate to cart and there is nothing add reflecting action of "add to cart".

search other topics reporting almost the same problem but not the same as mine, i checked the solutions and no fix.

vm debug shows no java errors, no html errors. its like there is no script fro add to cart. browser debug shows no errors. joomla debug no errors.

sorry for short explanation, broke right arm and it takes time to do all the testing.

please give some direction. i'm not sure how to turn on jquery in joomla, no module found, no place in global config. so far vm 2,0 is working, simple cart, but should do wat i need.

thx,
Title: Re: add to cart button not working
Post by: PRO on December 16, 2011, 11:46:26 AM
if your template or other modules use jquery, disable vmart jquery and test
Title: Re: add to cart button not working
Post by: uniqueoperator on December 17, 2011, 06:31:49 AM
disabled jquery in vm, still not working. url www.scorpionantennascompany.com  >>online store>>accessories>>any product details>> add to cart. this is simple store.

still dont know where there is a joomla jquery config; not in site global; no module; no plugin; ???

thx again.
Title: Re: add to cart button not working
Post by: PRO on December 17, 2011, 13:36:01 PM
go to vmart templates

TURN vmart jquery back oon

THEN, also in your config you have an option to turn off google external jquery , turn that off
Title: Re: add to cart button not working
Post by: uniqueoperator on December 17, 2011, 19:14:14 PM
turned google off, jquery was on. no change of problem noted, no change noted anywhere on site.

tried changing site default template, no change to add to cart. changed bact to original template; no chg to problem.

can change product quanity and it will increase up and down in value; clicking add to cart appears to have no observed activity on page no in bebugger.

othere parts of continuing site developement are working as expected. this will be a great product.

thx again






Title: Re: add to cart button not working
Post by: PRO on December 17, 2011, 22:55:44 PM
you have 2 jquery files loaded. 1 from vmart and 1 from something else.

Your menu has lots of JS, and for a menu like that, it does not need much.

Your template has NO doctype.

Could be java conflict, or html errors.

Title: Re: add to cart button not working
Post by: uniqueoperator on December 18, 2011, 19:54:43 PM
using firefox debug i dont see jquery running. i see some java scripts have run. maybe i dont understand or follow your observations and things to check,

i was checking shopper groups. i dont want to require having a buyer register, want shop open. would the add to cart only work for either a registered buyer or to all buyers depending on vm config >> checkout ?? and are there also othere requirements for type of shopper def like, -anonymous- with prices checked to show ... etc.

if i have missed some setting would i experience the same problem im having?

i noticed shopper groups can easily be defined for  viewing. however shopper auto fills with the system users i defined for joomla. BUT .. the editing any one of these seems to have just usrname & email for one of the super users in all shoppers, they cant be chg'd. why i checked this  was tried to see if buyer had to be registered for add to cart. could not validate this theory since i couldnt get a buyer reg to appear. even set up menue for "system" reg & login. setting up acl took time.

this is where i jumped into the rabbit hole with "shopper" def.

no clear idea on how all this should work together.

do i have an add to cart button problem or a buyer not defined to "checkout"  ???

i perplexed.
Title: Re: add to cart button not working
Post by: jenkinhill on December 18, 2011, 20:12:38 PM
You load jQuery here:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script> 
which looks like it is for your template "supersize" - the next line is
<script type="text/javascript" src="templates/js_scenica/js/supersized.3.1.3.min.js"></script>

and then here:

<script src="/components/com_virtuemart/assets/js/jquery.min.js" type="text/javascript"></script>

That is two  copies of jQ.

Also the debugger in IE9 throws up an error in modal.js :

SCRIPT5009: 'Hash' is undefined
modal.js, line 4 character 1


And, as no Doctype is defined it will be expected to be HTML5 in modern browsers. So you get this error report. (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.scorpionantennascompany.com%2Findex.php%3Foption%3Dcom_virtuemart%26view%3Dvirtuemart%26Itemid%3D524)
Title: Re: add to cart button not working
Post by: uniqueoperator on December 19, 2011, 17:46:34 PM
Thanks for explaining, learned something good, never had this type of conflict before.

i see why too.

changed template which did change the errors of jquery, not removing them. turned vm jquery off and jquery errors gone.

installed jQuery Easy extension. All jQuery errors gone. only one jquery.min.js .  but add to cart still not working. turned vm jquery back, no jquery errors suggesting new extension is effective with solving jq conflict errors.

switched back to my orig template. vm jquerry is on, no jquery conflict errors. add to cart still not working. there is still one error reported. "get" errror in index related to template. ive opened tckt with them for response.

i dont understand why when using a default joomla template still had errors. there is nothing custom with this fresh joomla install or with vm. i even unpub all modules and plugins not needed.

thx again, norm
Title: Re: add to cart button not working
Post by: uniqueoperator on December 20, 2011, 05:17:34 AM
switched to standard joomla template Atomic.

turned on VM jQuery.

no errors or conflicts on any pages ,,,,,,

except when click on add to cart.

here is error

GET http://www.scorpionantennascompany.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&quantity%255B%255D%3D1%26option%3Dcom_virtuemart%26view%3Dcart%26virtuemart_product_id%255B%255D%3D1%26virtuemart_manufacturer_id%3D1%26virtuemart_category_id%255B%255D%3D1&_=1324353777783 402 (Payment Required)

whats wrong??

Title: Re: add to cart button not working
Post by: GuillaumeHullin on December 26, 2011, 16:20:05 PM
I add the same problem, I handled it by uncheck "Use external google jquery library" in Shop settings.
:) Is it working for you?
Title: Re: add to cart button not working
Post by: uniqueoperator on December 28, 2011, 17:52:59 PM
Thanks for the suggestion on external google jquery library. Tried it earlier but then again after your comment. I've tried every combination of jquery library toggles on my site including commenting out all calls to jquery which caused everything to break.

I don't think the problem is with jquery conflicts. I've loaded an extension, jQuery Easy, that appears to have eliminated all jquery conflicts. Seems to work well. All my other extensions using different jquery libraries do not have any problems using their own jquery library. excellent product.

The jquery error I have now only impacts the template.

I've had several programmers check it out now and they say the problem is with a GET within VM 2.0 . They quit at this point saying VM has problem either in configuration or in code for add to cart varriables.

I also had JoomShack check out the Template and they say it's most likely a VM problem and not their problem. The template is working correctly and the errors are not impacting.

I loaded Joomshopping to check out if a different Cart will work. It works without errors. It has jQuery calls without conflicts. If I can't find a solution quick to this problem, I just have to learn a new Cart. I've used VM for more than 3 years. I have to move my hosting and upgrading to Joomlla 1.7.3 seemed like a good idea at the time and upgrading to VM2.0 also seemed like a good idea.

Pardon my rant, Frustrated but learning more than I wanted.
Title: Re: add to cart button not working
Post by: PRO on December 28, 2011, 19:26:03 PM
Quote from: uniqueoperator on December 28, 2011, 17:52:59 PM
Pardon my rant, Frustrated but learning more than I wanted.

You still dont have a doctype, or most of the header correct

change it to this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

also, you are not loading mootools. THATS why the modal doesnt work on your site.
IF you are using J1.7
under this in your template
<?php
// No direct access.
defined('_JEXEC') or die;

ADD THIS

$app = JFactory::getApplication();


ALSO: when viewing source, I see the script declartation is doubled for every declaration.


<script type="text/javascript">
jQuery.noConflict();
siteurl = 'http://www.scorpionantennascompany.com/' ;
vmCartText = ' was added to your cart.' ;
vmCartError = 'There was an error while updating your cart.' ;
loadingImage = '/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = "<div id='facebox' style='display:none;'><div class='popup'><div class='content'></div> <a href='#' class='close'><img src='/components/com_virtuemart/assets/images/facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

      window.addEvent('domready', function() {

         SqueezeBox.initialize({});
         SqueezeBox.assign($$('a.modal'), {
            parse: 'rel'
         });
      });
      window.addEvent('domready', function() {
         $$('.hasTip').each(function(el) {
            var title = el.get('title');
            if (title) {
               var parts = title.split('::', 2);
               el.store('tip:title', parts[0]);
               el.store('tip:text', parts[1]);
            }
         });
         var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
      });

   jQuery(document).ready(function($) {
      $('a.ask-a-question').click( function(){
         $.facebox({
            iframe: '/index.php?option=com_virtuemart&amp;view=productdetails&amp;task=askquestion&amp;virtuemart_product_id=2&amp;virtuemart_category_id=1&amp;tmpl=component&amp;Itemid=546',
            rev: 'iframe|550|550'
         });
         return false ;
      });
   });

jQuery.noConflict();
siteurl = 'http://www.scorpionantennascompany.com/' ;
vmCartText = ' was added to your cart.' ;
vmCartError = 'There was an error while updating your cart.' ;
loadingImage = '/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = "<div id='facebox' style='display:none;'><div class='popup'><div class='content'></div> <a href='#' class='close'><img src='/components/com_virtuemart/assets/images/facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;

      window.addEvent('domready', function() {

         SqueezeBox.initialize({});
         SqueezeBox.assign($$('a.modal'), {
            parse: 'rel'
         });
      });
      window.addEvent('domready', function() {
         $$('.hasTip').each(function(el) {
            var title = el.get('title');
            if (title) {
               var parts = title.split('::', 2);
               el.store('tip:title', parts[0]);
               el.store('tip:text', parts[1]);
            }
         });
         var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
      });

   jQuery(document).ready(function($) {
      $('a.ask-a-question').click( function(){
         $.facebox({
            iframe: '/index.php?option=com_virtuemart&amp;view=productdetails&amp;task=askquestion&amp;virtuemart_product_id=2&amp;virtuemart_category_id=1&amp;tmpl=component&amp;Itemid=546',
            rev: 'iframe|550|550'
         });
         return false ;
      });
   });

jQuery.noConflict();
      window.addEvent('domready', function() {

         SqueezeBox.initialize({});
         SqueezeBox.assign($$('a.modal'), {
            parse: 'rel'
         });
      });
  </script>
Title: Re: add to cart button not working
Post by: Globacide Solutions on December 30, 2011, 19:17:53 PM
Hey @uniqueoperator,

I think I may know what your problem is, since I may have encountered the same one.

Can you please tell me what hosting do you use?
Title: Re: add to cart button not working
Post by: Rabble on January 01, 2012, 21:56:54 PM
I am also having this problem.  The "Add to Cart" button works on the Atomic template, but not on the RocketTheme template I've been planning to use.

I have tried every combination of the JQuery toggles in the back end.  JQuery is only loading once on the page.  I don't have any other modules installed yet.  This is a fresh install of Joomla 1.7.3, VM 2.0, and a RocketTheme tempate. I have disabled as much of the standard RocketTheme JS as possible, including the menu system.  Still, the Add to Cart button will not work with this template.

The site is currently in offline mode, but here is a copy of the doctype and the scripts that are loading...  any ideas on how to fix this?

Title: Re: add to cart button not working
Post by: obsolum on January 02, 2012, 16:36:58 PM
I'll add my voice to this thread after having spent the greater part of a day trying to get the "Add to cart" button to work, and having tried every suggestion posted in this thread, with no result.

I'm using J1.5, I've tried with different Joomla templates, the results are all the same.

I'll keep an eye on this thread in the hope that someone eventually does come up with a solution.

EDIT: I did one more test with the default Joomla template (hadn't tried that yet) and lo and behold, the add to cart button works fine. So this leads me to believe that the problem is indeed a jQuery conflict, as the default Joomla template does not use jQuery.

But that still doesn't solve the problem, as disabling jQuery in VM doesn't seem to help  :(
Title: Re: add to cart button not working
Post by: dontflinch on January 02, 2012, 19:27:42 PM
here's what I did and it worked for me.

I disabled the jquery load of my template and associated mega menu.

I also commented out the facebox code on lines 57-77 in components/com_virtuemart/views/productdetails/tmpl/default.php like this:

/*$document->addScriptDeclaration("

jQuery(document).ready(function($) {

$('a.ask-a-question').click( function(){

$.facebox({

iframe: '".$url."',

rev: 'iframe|550|550'

});

return false ;

});

});

"); */


probably, 'noconflicting' that would be better but I didn't notice any problems with it being commented out (yet anyway).


then I set the vm configuration as follows:


and all four of the following checked:

I don't know if this will help anyone else as I think this is something one must just tinker with until they get the right jquery load setup to have full js functioning.

This is the best answer I've seen:
Quote from: Electrocity on December 27, 2011, 11:54:46 AM
If you remove the virtuemart jquery you must provide another method to add jQuery but you must never add 2 time jquery/scripts in your document or you get conflicts
Title: Re: add to cart button not working
Post by: obsolum on January 02, 2012, 21:05:27 PM
Quote from: dontflinch on January 02, 2012, 19:27:42 PM
here's what I did and it worked for me.
That's not doing anything for me, either.

Quote from: dontflinch on January 02, 2012, 19:27:42 PM
I don't know if this will help anyone else as I think this is something one must just tinker with until they get the right jquery load setup to have full js functioning.
Then I'm out of luck because I don't know enough about jQuery coding to begin tinkering with it myself  :(

This is a showstopper for me to get my website launched so I'm really hoping someone comes up with a SOLUTION that WORKS. Not a workaround, that might work in some cases... Clearly it's a problem for many users.

Other than this issue, though, I'm very impressed with Virtuemart.
Title: Re: add to cart button not working
Post by: Rabble on January 04, 2012, 05:30:47 AM
Bump for help!  To my knowledge, JQuery is only loading once, yet Add to Cart fails every time on my RocketTheme template.  (Momentum)

If I switch templates, the Add to Cart button works (even if it's another RocketTheme template).
Title: Re: add to cart button not working
Post by: obsolum on January 04, 2012, 08:48:13 AM
I've given up on VM2 for the moment and am currently testing VM 1.1.9. Add to cart button seems to be working correctly on that one. If I can get some nicer looking templates and get it configured the way I want it to I'll probably be using that.

If this Add to Cart problem gets properly addressed and fixed in a future release maybe I'll contemplate upgrading to VM2, although if I can get 1.1.9 working the way I want it to I don't see any need to do so.
Title: Re: add to cart button not working
Post by: PRO on January 04, 2012, 16:25:17 PM
Quote from: obsolum on January 04, 2012, 08:48:13 AM
If this Add to Cart problem gets properly addressed and fixed in a future release maybe I'll contemplate upgrading to VM2, although if I can get 1.1.9 working the way I want it to I don't see any need to do so.

add to cart works, of course there will be conflicts with other modules, temnplates and things that use java. But that does not mean it doesnt work.

I could say "the template doesnt work"

Title: Re: add to cart button not working
Post by: siebertl on January 05, 2012, 14:27:32 PM
Hi,

same problem at my site....

What i can see is, that "add to cart" button works fine with SSL disabled, and works not with SSL enabled in any case.

Does anybody know why?

Thanks a lot
siebertl.
Title: Re: add to cart button not working
Post by: SashaMacic on March 04, 2012, 04:33:56 AM
Same problem here. Simply does't work. Not working with any of the joomla defult templates....
Title: Re: add to cart button not working
Post by: bob@robertclinton.com on March 21, 2012, 01:59:22 AM
It's almost always a JQUERY conflict. Download, install and enable the jQuery++ Integrator plugin...

http://extensions.joomla.org/extensions/core-enhancements/scripts/12995?qh=YToxMzp7aTowO3M6NjoianF1ZXJ5IjtpOjE7czo3OiInanF1ZXJ5IjtpOjI7czozMjoiJ2pxdWVyeScsJ2pxdWVyeXVpJywnanF1ZXJ5Zm9ybSciO2k6MztzOjk6IidqcXVlcnknLCI7aTo0O3M6ODoiJ2pxdWVyeSciO2k6NTtzOjc6ImpxdWVyeSciO2k6NjtzOjg6ImNvbmZsaWN0IjtpOjc7czo5OiJjb25mbGljdHMiO2k6ODtzOjExOiJjb25mbGljdGluZyI7aTo5O3M6MTE6ImNvbmZsaWN0aW9uIjtpOjEwO3M6MTI6ImNvbmZsaWN0aW9ucyI7aToxMTtzOjk6ImNvbmZsaWN0JyI7aToxMjtzOjE1OiJqcXVlcnkgY29uZmxpY3QiO30%3D

Worked like a charm.
Title: Re: add to cart button not working
Post by: faulk511 on June 26, 2012, 07:04:30 AM
Quote from: bob@robertclinton.com on March 21, 2012, 01:59:22 AM
It's almost always a JQUERY conflict. Download, install and enable the jQuery++ Integrator plugin...

http://extensions.joomla.org/extensions/core-enhancements/scripts/12995?qh=YToxMzp7aTowO3M6NjoianF1ZXJ5IjtpOjE7czo3OiInanF1ZXJ5IjtpOjI7czozMjoiJ2pxdWVyeScsJ2pxdWVyeXVpJywnanF1ZXJ5Zm9ybSciO2k6MztzOjk6IidqcXVlcnknLCI7aTo0O3M6ODoiJ2pxdWVyeSciO2k6NTtzOjc6ImpxdWVyeSciO2k6NjtzOjg6ImNvbmZsaWN0IjtpOjc7czo5OiJjb25mbGljdHMiO2k6ODtzOjExOiJjb25mbGljdGluZyI7aTo5O3M6MTE6ImNvbmZsaWN0aW9uIjtpOjEwO3M6MTI6ImNvbmZsaWN0aW9ucyI7aToxMTtzOjk6ImNvbmZsaWN0JyI7aToxMjtzOjE1OiJqcXVlcnkgY29uZmxpY3QiO30%3D

Worked like a charm.

Look - I don't know where bob found this - Holy Cow - My "Add To Cart" was not working and yes it clearly was a jquery conflict.  I added the plugin - enabled it and tested all browsers.  All of them work correctly.  It's the simple things in life that make me happy.

Visit pestpoolandlawn.com to see it worknig now!   Thanks for the find!  Questions Message me
Title: Re: add to cart button not working
Post by: dezziner on July 05, 2012, 09:10:08 AM
Hello there,


My problem is:

I have set true to display modal popup upon"Add to cart". it is displayed on category page but does not add products into cart. On product detail page it is not displayed.

any idea about this issue please advise me.

Thanks,

Imran Javed
imran.cranberry@gmail.com
Title: Re: add to cart button not working
Post by: will77 on July 10, 2012, 23:44:17 PM
I too had the same problem and found my issue and corrected it. I hope they rest of you can benefit from what i found.

It appears some SEO SEF plugins will screw up the cart functions. I was using ACESEF  on my site setup and it was creating the problem. I have to look at my configurations for a workaround to get it working with virtuemart...but if you disable....

"SEO Settings in your joomla global configurations"
Search Engine Friendly URLs
Use URL rewriting
Adds Suffix to URL

You will regain cart functionality immediately. at least that was my issue. Hope it helps.
Title: Re: add to cart button not working
Post by: bobcameron on August 12, 2012, 17:10:23 PM
QuoteLook - I don't know where bob found this - Holy Cow - My "Add To Cart" was not working and yes it clearly was a jquery conflict.  I added the plugin - enabled it and tested all browsers.  All of them work correctly.  It's the simple things in life that make me happy.
Just in case this helps anyone else:
Having the same issue with the "Add to Cart" not working, I installed the JQuery plugin and enabled it. Still no action when clicking on "Add to Cart" button. I had my shop address listed as https, and noticed that I did not have my Joomla setting for SSL turned on. Once I turned ssl on, everything worked perfectly.
Joomla 2.5.4
Virtuemart 2.0.8e
Title: Re: add to cart button not working
Post by: airone93 on August 25, 2012, 12:53:11 PM
Just updated to VM 2.0.10, updated AIO and updated plugin tables.
Same problem.
Already installed Jquery Easy.
Add to cart button doesn't show since 2.0.8e.

Already tryed disabling all the facebook and google+ code, but no way.

test url: http://www.hivecityonline.com/_hosted/alm2
Title: Re: add to cart button not working
Post by: jenkinhill on August 25, 2012, 13:09:06 PM
airone93 you do have a JavaScript conflict on page load -
SCRIPT5009: 'Virtuemart' is undefined
orecchini-gufi-kawaii-azzurri-detail, line 33 character 1

That line is Virtuemart.addtocart_popup = '1'

Are you sure you need to load 3 different versions of jQuery and two different versions of no_conflict.js ?

From your page header:

<script src="/_hosted/alm2/plugins/system/jquery/jquery/jquery-1.7.1.min.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/plugins/system/jquery/jquery/no_conflict.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="/_hosted/alm2///js/jquery.noConflict.js" type="text/javascript"></script>
  <script src="/_hosted/alm2///js/vmsite.js" type="text/javascript"></script>
  <script src="/_hosted/alm2///js/facebox.js" type="text/javascript"></script>
  <script src="/_hosted/alm2///js/vmprices.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/media/system/js/core.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/media/system/js/modal.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script src="/_hosted/alm2/templates/alchemian2/javascript/md_stylechanger.js" type="text/javascript" defer="defer"></script>
Title: Re: add to cart button not working
Post by: airone93 on August 25, 2012, 17:07:41 PM
Fixed.
One instance of min.js and no_conflict.
Jquery easy enabled.
Jquery VM disabled.
Other Jquery extensions disabled.
Still no add to cart button :-(

Title: Re: add to cart button not working
Post by: airone93 on August 26, 2012, 11:00:41 AM
I keep on testing.
JQuery easy disabled, disabled each module using Jquery.
VM Jquery enabled.
Nothing changes.
I keep reading that "ReferenceError: Virtuemart is not defined" in the javascript console error. What does it mean?
Title: Re: add to cart button not working
Post by: jenkinhill on August 26, 2012, 17:52:42 PM
Make sure you have selected Activate Css Styles & Javascripts (under Activate Css Styles & Javascripts on VM config/templates)

AJAX is not being invoked, maybe try disabling the style changer (md_stylechanger.js)
Title: Re: add to cart button not working
Post by: airone93 on August 27, 2012, 21:17:55 PM
No luck...
Disabled the style changer. That was inherited from the template I modified, but I don't need it.

In the "Activate Css Styles & Javascripts", I have no "Activate Css Styles & Javascripts" flag in it, but each and every flag is enabled:
Using the VirtueMart CSS    
Using the VirtueMart jQuery    
Using the product Scripts    
Using the Script ajax Countries / Regions    
Use external google jQuery library

I also spent an hour disabling and enabling every combination of these, clearing cache and refreshing (no success), but now all are on.

Another issue: it was end 2011 when I installed VM 2.0.0rc2, then updated until 2.0.10 last week. Updated virtuemart aio consequently. In spite of this, my extension manager shows 2.0.0rc2 in every VM module.
Is it a known bug?
Title: Re: add to cart button not working
Post by: jenkinhill on August 27, 2012, 23:36:51 PM
On my first test site I looked at with VM2.0.10 the modules show as 2.0.0RC3  - so I don't see that as an issue.

Try turning off the template override you are using - or switch to beez to see if that allows AJAX updating of the cart.
Title: Re: add to cart button not working
Post by: airone93 on August 28, 2012, 20:15:11 PM
No way.
Set up beez_20 with just a category menu.
When I browse the categories and click to a product's details page the add to cart button doesn't work and is shown as a simple button.

I also tried the facebox.js modification reported in this thread, without success:
http://forum.virtuemart.net/index.php?topic=101067.15

I really love VM and I hope I'll get through this...

I think I should resolvethat "virtuemart is not defined" in the Ie9 debugger.

Where is the Virtuemart js object defined?
What is not loaded in this page and why?
It cannot be a template issue, as also beez_20 does the same.
I removed each and every override, also.

Extreme measure is to reinstall VM and see if this comes from an update conflict.
Before I do this (takes me a lot of time to set up multilanguage settings): can somebody tell me where does "virtuemart is not defined" come from?
Title: Re: add to cart button not working
Post by: airone93 on August 31, 2012, 00:21:00 AM
 :'(

Reinstalled.
No change.
Anybody can tell me the reason for this error in the debug "Virtuemart is undefined"?
Title: Re: add to cart button not working
Post by: airone93 on September 01, 2012, 00:49:56 AM
News!
I launched "Renew config by file" and voilĂ ! The add to cart button is there again.  :-\
Now I'm double-checking each and every option.
I'll write again as soon I succeed.
Title: Re: add to cart button not working
Post by: airone93 on September 02, 2012, 12:58:04 PM
Success!  ;D
The configuration blocking ajax was this:
Virtuemart -> Configuration -> Templates -> Media Files Settings -> General Assets URL

The wrong path was "/"
The right path (for me) is "components/com_virtuemart/assets/"

(for me) [SOLVED]
Title: Re: add to cart button not working
Post by: jenkinhill on September 02, 2012, 20:18:01 PM
Good detective work there!
Title: Re: add to cart button not working
Post by: raycarter on October 04, 2012, 21:24:55 PM
If you are having trouble with jquery and the add to cart pop up while SSL is on then just add https with every url. Even if its from google library.

FOr me i was using jblibrary plugin, i added a condition in the plugins/system/jblibray/jblibrary.php around line 54:

$https = ($_SERVER['HTTPS'] == "on") ? "https": "http";
   
then around line 83: $https.'://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';

line 92: $this->_jqpath = $https.'://ajax.googleapis.com/ajax/libs/jquery/'.$jQueryVersion.'/jquery.min.js';
Title: Re: add to cart button not working
Post by: ngodoan on October 31, 2012, 09:59:10 AM
My website has error with button ADD TO CART. After customize website with css of Allrounder v.1.4 template, now button Add to cart dont show popup when I try click. (It updated to Cart but have to refesh page).

When I dont use this template or use another template, popup Add to cart show when I click Add to cart button.


my website: http://nguyenthuyartera.com/shopping
link Add to Cart: http://nguyenthuyartera.com/shopping/vi/component/virtuemart/cham-soc-toc/sp-smoothen-shampoo-250ml-detail.html?Itemid=0

Please help me fix them. thanks so much.

----------
p/s: FIXED