Author Topic: add to cart button not working  (Read 30856 times)

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #30 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 :-(


airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #31 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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28263
  • Always on vacation
    • Jenkin Hill Internet
Re: add to cart button not working
« Reply #32 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)
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #33 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?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28263
  • Always on vacation
    • Jenkin Hill Internet
Re: add to cart button not working
« Reply #34 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #35 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?

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #36 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"?

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #37 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.

airone93

  • Beginner
  • *
  • Posts: 19
Re: add to cart button not working
« Reply #38 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]

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28263
  • Always on vacation
    • Jenkin Hill Internet
Re: add to cart button not working
« Reply #39 on: September 02, 2012, 20:18:01 pm »
Good detective work there!
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

raycarter

  • Beginner
  • *
  • Posts: 39
Re: add to cart button not working
« Reply #40 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:

Code: [Select]
$https = ($_SERVER['HTTPS'] == "on") ? "https": "http";   
then around line 83:
Code: [Select]
$https.'://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
line 92:
Code: [Select]
$this->_jqpath = $https.'://ajax.googleapis.com/ajax/libs/jquery/'.$jQueryVersion.'/jquery.min.js';

ngodoan

  • Beginner
  • *
  • Posts: 16
Re: add to cart button not working
« Reply #41 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