Author Topic: Add to Card AJAX Box Appears Only One Time For Each Pages !!  (Read 2106 times)

hakanhak

  • Beginner
  • *
  • Posts: 2
When i click Add to Card button the AJAX Box appears  with two buttons 'Continue and Cart' just only one time for each page. But I want it to appear for every add to cart in a page. What should i do ??

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27669
  • Always on vacation
    • Jenkin Hill Internet
Re: Add to Card AJAX Box Appears Only One Time For Each Pages !!
« Reply #1 on: June 09, 2009, 23:39:05 pm »
This is the way that AJAX calls work in VirtueMart 1.1.3.

If not a production site try VirtueMart 1.1.4RC1 which should allow multiple calls.
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 VM 3.6.11 10292 on Joomla 3.9.16 PHP 7.0.33

hakanhak

  • Beginner
  • *
  • Posts: 2
Re: Add to Card AJAX Box Appears Only One Time For Each Pages !!
« Reply #2 on: June 10, 2009, 00:10:43 am »
there must be a way to do it  in VirtueMart 1.1.3. ??

mvannus

  • Beginner
  • *
  • Posts: 3
Re: Add to Card AJAX Box Appears Only One Time For Each Pages !!
« Reply #3 on: June 10, 2009, 21:01:46 pm »
Hi,

Same problem here. Any solutions?

greetz M

wdwd

  • Beginner
  • *
  • Posts: 1
Re: Add to Card AJAX Box Appears Only One Time For Each Pages !!
« Reply #4 on: August 27, 2009, 17:48:39 pm »
I download the 1.1.4RC1 and checked the fixed and found this.

Add the following code in /component/com_virtuemart/themes/default/theme.js at line number 27, right above the function handleAddToCart( formId, parameters ).

Code: [Select]
var timeoutID = 0;
your code would probably be like this.
Code: [Select]
var timeoutID = 0;

function handleAddToCart( formId, parameters ) {
formCartAdd = document.getElementById( formId );

var callback = function(responseText) {

hendrix

  • Beginner
  • *
  • Posts: 39
Re: Add to Card AJAX Box Appears Only One Time For Each Pages !!
« Reply #5 on: September 02, 2009, 18:55:09 pm »
Great, it works. Thank you!
Joomla! 1.5.14 and VirtueMart 1.1.4 stable