VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: daduke on April 11, 2012, 15:36:00 PM

Title: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: daduke on April 11, 2012, 15:36:00 PM
Hi,

I just upgraded my testing environment to 2.0.4 and now the cart popup does not get displayed any more when I put an item into the cart. Am I the only one to experience this?

Update: the item is added to the cart, there's just now way for the user to tell as there's no popup and no refresh

Update II: Chrome JS console shows error
Uncaught TypeError: Cannot read property 'settings' of undefined
d.extend._Deferred.f.resolveWithjquery.min.js:16
vjquery.min.js:16
d.support.ajax.d.ajaxTransport.send.c

when hitting the add-to-cart-button

thanks,
-Christian
Title: Re: cart popup not displayed any more in 2.0.4
Post by: Namit on April 11, 2012, 16:45:20 PM
no, youre not the only one. I upgrade virtuemart 2.0.2 to 2.0.4 today and have similar problem. When I click cart button on category page, popup doesnt show up. Everything works fine when I refresh site - then popup works correct.
Title: Re: cart popup not displayed any more in 2.0.4
Post by: Studio 42 on April 11, 2012, 18:35:42 PM
I tested without error.
DO you have updated the allinone ?
Title: Re: cart popup not displayed any more in 2.0.4
Post by: Namit on April 11, 2012, 19:39:23 PM
I'm quite confused because on my localhost everything works fine. On server, something is wrong and problem exist.

Allinone was updated.
Title: Re: cart popup not displayed any more in 2.0.4
Post by: slutsker on April 11, 2012, 19:44:38 PM
i also have the same problem after updating to VM 2.0.4 - when i click add to cart button there is nothing happening

there is a JS error "$.facebox is undefined"

also my Virtuemart 2 All in one Installer tells me that it is 2.0.3 and there is a 2.0.4 version but after update it shows again the same version and update opportunity
Title: Re: cart popup not displayed any more in 2.0.4
Post by: slutsker on April 11, 2012, 20:05:02 PM
i think some error was in components/com_virtuemart/assets/js/vmprices.js it is different from VM's 2.0.2
i found old version and it began to work

i attached vmprices.js from 2.0.2 version (it is in txt and you need to change it's to .js)

[attachment cleanup by admin]
Title: Re: cart popup not displayed any more in 2.0.4
Post by: Milbo on April 12, 2012, 12:48:06 PM
Quote from: slutsker on April 11, 2012, 19:44:38 PM
my Virtuemart 2 All in one Installer tells me that it is 2.0.3 and there is a 2.0.4 version
Sry my fault, I just did not update the xml.
Title: Re: cart popup not displayed any more in 2.0.4
Post by: rottenberg on April 12, 2012, 13:26:32 PM
I got the same problem :  the cart popup does not get displayed any more int the V2.0.4

I went back to 2.0.2 and the cart popup is displayed.

I got also problem to upgrade to V2.0.4 inside the Virtuemart Admin : after the upload I got an empty page and the version remains to 2.0.2

After I upoladed the upgrade with the classical way (extension management). It was OK for Virtuemart but for Virtuemart All In One, I uploaded with the extension management. When I opened the component in  admin the version was the 2.0.3 and it was impossible to update to 2.0.4 with the automatic upgrade.

Title: Re: cart popup not displayed any more in 2.0.4
Post by: McD on April 14, 2012, 03:40:48 AM
I was having exactly the same problem.  The cart pop up was working fine with vm 2.0.2.  When I updated to 2.0.4 it stopped working.  Installed older version of vmprice.js and it works again.  Must be some sort of problem with the 2.0.4 version.
Title: Re: cart popup not displayed any more in 2.0.4
Post by: McD on April 17, 2012, 05:33:18 AM
Updated to 2.0.6.  Cart pop up didn't work again.  Tried the same fix as last time (using vmprices from 2.0.2), but didn't work this time.  In fact now add to cart button doesn't work.  This is a mess. 

Joomla: 2.5.4
VM: 2.0.6
http://www.mcdonaldfarm.ca/index.php/order-now (http://www.mcdonaldfarm.ca/index.php/order-now)
Title: Re: cart popup not displayed any more in 2.0.4
Post by: tamerg on April 17, 2012, 08:34:19 AM
Same here...no cart pop up after update from 2.0.2 to 2.0.6
popup was working before
items are added though (after refresh)
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: mark R on April 17, 2012, 08:58:45 AM
I had a problem with my upgrade from 204 to 206. I mine just turned out to be the firebox cache..... Clear your browser cache and try again..... Worth a try.

Sent from my Transformer TF101 using Tapatalk 2
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: slutsker on April 17, 2012, 09:17:38 AM
i don't know what to say - i was sure that after that bug after 2.0.4 update (i solved it by using 2.0.2 js file) there wouldn't be such problem in 2.0.6 that is why i update to it on localhost without looking at forum - that was my mistake!

now - js file from 2.0.2 doesn't help!

i see a js error on each page
Uncaught ReferenceError: Virtuemart is not defined
this error is connected with line in each page Virtuemart.addtocart_popup = '1' ;
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 17, 2012, 16:42:39 PM
Tried clearing out cache earlier and didn't help.  Also tried with explorer and chrome.  No luck. 
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: mark R on April 17, 2012, 18:34:06 PM
Quote from: mark R on April 17, 2012, 08:58:45 AM
I had a problem with my upgrade from 204 to 206. I mine just turned out to be the firebox cache..... Clear your browser cache and try again..... Worth a try.

Sent from my Transformer TF101 using Tapatalk 2

It seams I was a little quick with my findings....... mine no longer works..  :(
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on April 17, 2012, 19:22:02 PM
The reason is that you use an other jquery then virtuemart. We use now our own namespace to avoid this errors. So the normal stuff works for you now also without changing any settings.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: mark R on April 17, 2012, 22:08:55 PM
Many thanks Milbo, but please forgive my lack of understanding, is there a fix for 2.0.6.

Sent from my Transformer TF101 using Tapatalk 2
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on April 17, 2012, 23:22:10 PM
Just enable the use of the virtuemart jquery. I think you disabled it and used hte one with the template.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 18, 2012, 01:22:17 AM
So are there settings in the admin section that I can use to avoid any jquerry conflict?  I have tried all of the different combinations of selecting/de-selecting "Use external google jquery library" under Configuration - Shop and "Using the Virtuemart jQuery" under Configuration - Templates.

Also I have a hard time imagining that this is the issue as the cart worked fine for me in 2.0.2
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on April 18, 2012, 02:13:20 AM
hmpf, seems like we solved the people for one problem, but created a new for others.

The new base idea is that we use our own namespace for the jquery, so that there shouldnt be conflicts anymore. It is quite easy to deactivate the additional loaded js by the templates.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: alejandro_quin on April 18, 2012, 03:50:52 AM
same for me
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 18, 2012, 04:11:37 AM
How would I go about deactivating the js loaded by the template? 

Just for interests sake, I was messing around selecting and de-selecting things and noticed that when I de-selected "Using the product Scripts" in Configuration - Templates the pop up window works.  Of course that messes up a bunch of other things so it isn't a solution , but I was wondering if that means anything?

On the bright side now when I hit refresh the products appear in the cart! :)  Would be really nice to get the pop up working though.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: slutsker on April 18, 2012, 08:25:37 AM
developers, please tell me how can i make my cart pop window to be displayed in 2.0.6
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: tamerg on April 18, 2012, 08:56:40 AM
thanks...just deletet the jquery file in my template, pop up works again
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 18, 2012, 19:15:00 PM
Quote from: Milbo on April 17, 2012, 19:22:02 PM
The reason is that you use an other jquery then virtuemart. We use now our own namespace to avoid this errors. So the normal stuff works for you now also without changing any settings.

Any news on this? what about me, my template doesn't load any extra jquery files, only VM ones, so, I don't need to deactivate any .js, or are you talking about deactivating mootools?  please help, this issue is killing our projects, thanks...
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: spider2 on April 18, 2012, 22:21:05 PM
Hi,

i also have the same problem after updating to VM 2.0.6 - when i click add to cart button there is nothing happening.
If I change back to default joomla template  (Beez2) it is working perfect.
How can I solve this problem with my not default template? This is my site: www.hegesztobolt.hu

Thank You!
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: luizwbr on April 18, 2012, 22:50:38 PM
Guys, i used 2 Jquery's in product_details, because i'm dev a shipping plugin and i had the same error then you.

So i changed the facebox javascript, to execute on document.ready, and it works!

The error before i've got before:

vmprices.js

faceboxHtml is not defined in facebox.js in line 56
$.facebox.settings.faceboxHtml = faceboxHtml;


The fix:
facebox.js
jQuery(document).ready(function() {

//[..facebox content..]

});


[attachment cleanup by admin]
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 19, 2012, 00:39:12 AM
here's one more hint for developers:  using Google Chrome javascript debug, this is what I get after clicking on "Add to cart button"

GET http://xxxxx.xxx/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%3D195%26virtuemart_manufacturer_id%3D1%26virtuemart_category_id%255B%255D%3D18&_=1334788620712

error: 406 (Not Acceptable)

how can we fix? is that the reason popup won't work?

Thanks,
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: TechnoMage on April 19, 2012, 00:57:16 AM
It is also not working at me. (Joomla 1.5.25 // VM 2.0.6).
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 19, 2012, 04:23:02 AM
Hi Luizwbr.  I get the same error "Uncaught ReferenceError: faceboxHtml is not defined -  vmprices.js line 56".  I tried your fix and it didn't work for me.  Can you provide more details?  Where in facebox.js did you insert your fix?  Did you replace the following -

jQuery('a[rel*=facebox]').facebox()
*  })

with your fix?

//[..facebox content..]

});

EDIT:

My site uses jquerry (http://www.mcdonaldfarm.ca/index.php/order-now (http://www.mcdonaldfarm.ca/index.php/order-now)).  After reading multiple threads here it seems that the most likely cause of these problems is a javascript conflict.  However I have tried turning off VM jQuerry in Configuration - Templates as suggested with no success.  The theory being that if you allow your template jQuerry to load without VM loading there is no conflict and the popup will work.  I'm not as knowledgeable about this as I should be I suppose, but is there a solution out there for each particular jQuerry conflict? 

Thanks for the help.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: walkyrie on April 19, 2012, 11:53:17 AM
Same for me. When i click on "add to cart", no pop up, and the card page loads automatically...  :( (The information "Product added to cart" is diplayed twice))

Deactivating jquery in template configuration is worth : the card page loads, but the product isn't added.

Deactiviting Google jquery doesn't change anything...

Any way to go back to the old good popup, with VM 2.0.6?
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: luizwbr on April 19, 2012, 13:45:04 PM
Quote from: McD on April 19, 2012, 04:23:02 AM
Hi Luizwbr.  I get the same error "Uncaught ReferenceError: faceboxHtml is not defined -  vmprices.js line 56".  I tried your fix and it didn't work for me.  Can you provide more details?  Where in facebox.js did you insert your fix?  Did you replace the following -

jQuery('a[rel*=facebox]').facebox()
*  })

with your fix?

//[..facebox content..]

});

EDIT:

My site uses jquerry (http://www.mcdonaldfarm.ca/index.php/order-now (http://www.mcdonaldfarm.ca/index.php/order-now)).  After reading multiple threads here it seems that the most likely cause of these problems is a javascript conflict.  However I have tried turning off VM jQuerry in Configuration - Templates as suggested with no success.  The theory being that if you allow your template jQuerry to load without VM loading there is no conflict and the popup will work.  I'm not as knowledgeable about this as I should be I suppose, but is there a solution out there for each particular jQuerry conflict? 

Thanks for the help.

No McD, just replace the facebox.js by the facebox.txt that 've attached in post. =)

Try this, maybe work for you too.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 20, 2012, 03:48:15 AM
Thanks Luizwbr.  Tried it, but no luck for me.  Anyone else have a solution that they have tried? 
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: joejvgvirtuemart on April 20, 2012, 06:27:55 AM
I had problem and it was due to modules that were using jQuery. I figured it out by disabling all modules and the popup worked. Then I located the offending modules by turning back on one by one until it stopped working. Eventually I found three modules that had parameter Include jQuery. Changed it to No and the cart popup works fine again as do the offending modules.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 20, 2012, 07:49:04 AM
I only use VM's jquery and I still face this problem, on a previous post VM lead developer said VM now used its own namespace, I don't get what he means, but it would be so nice if they could go back to 2.0.2 or a previous version when add to cart popup worked fine for us using only VM jquery.

Please help us, thanks
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: spider2 on April 20, 2012, 07:56:43 AM
Quote from: spider2 on April 18, 2012, 22:21:05 PM
Hi,

i also have the same problem after updating to VM 2.0.6 - when i click add to cart button there is nothing happening.
If I change back to default joomla template  (Beez2) it is working perfect.
How can I solve this problem with my not default template? This is my site: www.hegesztobolt.hu

Thank You!

How would I go about deactivating the js loaded by the template? 
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Zuske on April 21, 2012, 02:18:27 AM
virtuemart 2.0.6 joomla 2.5.1

i have the same issue no add to cart pop up and now item in the cart after browser refresh.

-i,ve tried turning off jquery in my template config, didnt work
-i,ve tried turning off jquery in virtuemart config, didnt work
-i,ve tried turning off al the modules in joomla, to detect conflicting modules, didnt work,
-i,ve tried luizwbrs  his solution (replacing the facebook.js, with his code), didnt work
-i,ve tried replacing the complete JS folder using the one from version 2.0.2 (components/com_virtuemart/assets/JS, didnt work )
-i've tried replacing the facebook.js folder using the 2.0.2. 
-i've tried disabling, System - Cache plugin, didnt work
-i'vetried enabling jQuery++ Integrator by tushev.org, didnt work
-all the time i cleared joomla cache and browser cache.
-i disabled external google jquery library, but tried also enabled
-i enabled also:
the VirtueMart CSS    
the Virtuemart jQuery    
the product Scripts    
the Script ajax Countries / Region
-i also tried disabling them.
-i tested it in FF 11.0, Chrome and Iron
-I am using default joomla template beez2

After pushing add to cart nothing happens,

my url is : http://www.mongolianlife.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=17&virtuemart_category_id=6&Itemid=118&lang=nl
also in this url i use dispatch template, with jquery turend off in the template

in vm2.02 it worked all fine.

error console gives this:faceboxhtml is not defined





[attachment cleanup by admin]
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: slutsker on April 21, 2012, 16:35:24 PM
ok
i had the same problem
but now it seems that everything is working!

1 -you need to download file facebox.txt attached to this thread
rename it to facebox.js and place in components\com_virtuemart\assets\js

2 - go to VM admin - Preferences - Order preferencies

Display modal popup upon 'Add to cart' check it

3 - try to reload page

p.s.
if it still not working - try to rename your js folder of your template and disable js using modules
if lead to working cart popup - problem in conflict with template or modules js files


(how do disable category showing while VM search - read it (http://audio.probudget.ru/programmirovanie/rezultati-poiska-v-virtuemart-2))
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 22, 2012, 12:22:10 PM
I upgraded from 2.0.2 to 2.0.4 then to 2.0.6 and now the add to cart ajax popup doesn't work.  When you click on the add to cart the page actually goes to the checkout cart page with the new item in the list so it a workaround.
I tried the above suggestion with the vmprices.js but that didn't work.
This seems to be to be a basic requrement to work before releasing a version.
Anyone got a solution yet.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: patrik60 on April 22, 2012, 12:26:12 PM
Did you check the new option at VW 2.0.6: Cofiguration->Checkout

Display modal popup upon 'Add to cart' ?
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 22, 2012, 12:35:24 PM
Thanks just noticed that setting.  Have check it and now I'm getting what everyone else is getting nothing happening when add to cart.  If I refresh the page the cart show the item so the popup is just not displaying.  Using IE9
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: John2400 on April 22, 2012, 12:40:01 PM
I had trouble just tonight ,

I found it in another thread - But ticking the box and I'm back to normal - thank god.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: PRO on April 22, 2012, 12:41:03 PM
Quote from: w2kr on April 22, 2012, 12:35:24 PM
Thanks just noticed that setting.  Have check it and now I'm getting what everyone else is getting nothing happening when add to cart.  If I refresh the page the cart show the item so the popup is just not displaying.  Using IE9


it will be a js conflict then,

did you have this before?
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 22, 2012, 12:47:41 PM
It was working fine on IE9 with 2.04 but was intermittent on IE7 so you might be right with a js conflict. 
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: MikeSt. on April 22, 2012, 12:48:41 PM
Hi,

I have the same problem. After upgrading VirtueMart 2.0.2 to 2.0.6 it is impossible to add product to cart. When I click "Add to cart" nothing happens. There is no pop-up and product is not in the cart :(
I tried to fix this problem replacing vmprices.js 2.0.2 -> 2.0.6 as Slutsker recommend and facebox.js as Luizwbr recommend but still nothing happens. I can`t add products to cart. I tried all suggestions. There is no conflict with JS libraries. Add to cart popup still not working and  add product to cart too.

I try to find something in virtuemart files.
There is a cart.php in /components/com_virtuemart/helpers
I uncomment lines:
191: vmdebug('$product',$product);
250: vmdebug('$sessionCart',$sessionCart);
382: vmdebug('my product add to cart after',$product);

In the VirtueMart Admin -> Configuration "Diagnostic mode" is set to ON.

When I try to trace what is going on when I push  "Add to cart" button i get these errors:

[_id] => 0
            [_data] => TableVmusers Object
                (
                    [virtuemart_user_id] => 0
                    [user_is_vendor] => 0
                    [virtuemart_vendor_id] => 0
                    [customer_number] => 0
                    [perms] => shopper
                    [virtuemart_paymentmethod_id] => 0
                    [virtuemart_shipmentmethod_id] => 0
                    [agreed] => 0
                    [_pkey:protected] => virtuemart_user_id
                    [_pkeyForm:protected] => virtuemart_user_id
                    [_obkeys:protected] => Array
                        (
                            [_pkey] => COM_VIRTUEMART__PKEY in record is missing ! Can't save the record with no COM_VIRTUEMART__PKEY.
                        )

                    [_unique:protected] =>
                    [_unique_name:protected] => Array
                        (
                        )
                       
[vendor] => TableVendors Object
        (
            [virtuemart_vendor_id] => 1
            [vendor_name] =>
            [vendor_phone] =>
            [vendor_store_name] =>
            [vendor_store_desc] =>
            [vendor_currency] =>
            [vendor_terms_of_service] =>
            [vendor_url] =>
            [vendor_accepted_currencies] => Array
                (
                )

            [vendor_params] =>
            [vendor_legal_info] =>
            [_pkey:protected] => virtuemart_vendor_id
            [_pkeyForm:protected] => virtuemart_vendor_id
            [_obkeys:protected] => Array
                (
                    [_pkey] => COM_VIRTUEMART__PKEY in record is missing ! Can't save the record with no COM_VIRTUEMART__PKEY.
                    [vendor_name] => The given Vendor name already exists.
                    [slug] => The given Sef Alias already exists.
                )

            [_unique:protected] => 1
            [_unique_name:protected] => Array
                (
                    [vendor_name] => The given Vendor name already exists.
                    [slug] => The given Sef Alias already exists.
                )
               
vmdebug exeSortSearchListQuery error in class VirtueMartModelPaymentmethod sql: Var1: Table 'a_b.h9nhe_virtuemart_paymentmethods_en_gb' doesn't exist SQL=SELECT SQL_CALC_FOUND_ROWS  * FROM `h9nhe_virtuemart_paymentmethods_en_gb` as l  JOIN `h9nhe_virtuemart_paymentmethods`   USING (`virtuemart_paymentmethod_id`)  WHERE  `h9nhe_virtuemart_paymentmethods`.`published` = 1  ORDER BY ordering DESC LIMIT 0, 8



Anybody knows how to fix it? maybe the problem is in the: the COM_VIRTUEMART__PKEY.

(sorry for my english).

--
MikeSt.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 22, 2012, 12:56:54 PM
If there is a js conflict is this related.
when loading my page that is dispaying the product details I have a script error
'Virtuemart' is undefined
for this reference index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=6&virtuemart_category_id=2, line 39 character 1
refering to this line
Virtuemart.addtocart_popup = '0' ;


Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 22, 2012, 13:02:36 PM
slutsker - can you attach your fixed as the txt file is not attached to your post.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: John2400 on April 22, 2012, 13:32:00 PM
The text file is further back in the post -

look for  luizwbr
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: slutsker on April 22, 2012, 14:55:48 PM
here is this file


did you check on 'show add to cart pop-up' in your VM admin's preferences-order tab?


p.s.
i know that it isn't good advice but after having problems with cart/themes/templates/js while updating i think that updating VM is very bad idea now!
there are thounthands files in this component and updates come 2 times a month so it can damage store even more seriously than hackers attack because it really hard to find problem reason

cart popup problems are very easy to detect but others errors can be so deep in component code - you will never know that some of your products isn't showing or there are other problems with order



[attachment cleanup by admin]
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 23, 2012, 00:02:08 AM
the funiest thing is VM team has gone missing on this one... I can guarantee my site does not has any JS conflict and still the problem is there, as I said before on a previous post a VM developer said they changed "namespace" and that created more problems to some people while fixing a couple problems for other... why don't we go back to a working vmprices.js version and undo the "namespace" changes, our projects are stalled, a shopping cart with a broke add to cart button is useles.... VM Team, please help... thanks
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: w2kr on April 23, 2012, 01:20:01 AM
The popup is now working on my site running 2.0.6 VM.  Issues for me was a javascript conflict with my template js files.  I used IE9 developer tools and viewed the console output you should see if you have errors when you click the add to cart.
I hope this helps others.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on April 23, 2012, 04:36:07 AM
Maybe some problems are already solved, just going into the vm config and enabling there the popup for the cart. Accidently it is not activated by  default. Maybe this is only in the svn.
For example this Virtuemart.addtocart_popup = '0' ;  indicates that the option is just turned off. Furthermore it is almost anytime template related.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: McD on April 23, 2012, 05:23:12 AM
I've tried all of the fixes suggested in this thread.  Thanks for all of the suggestions.

Unfortunately none of them have worked for me.  I get the same error consistently in Firefox, IE, Chrome:  'faceboxHtml' is undefined  - vmprices.js line 56.

It could be a js conflict but I have tried everything I could think of and everything suggested here to get it to work, but nothing happens.

Could the developers at least tell us if this is being addressed in the new version?  A little scared about updating now, but I will if this is fixed. 
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 23, 2012, 15:58:41 PM
Quote from: Milbo on April 23, 2012, 04:36:07 AM...
For example this Virtuemart.addtocart_popup = '0' ;  indicates that the option is just turned off. Furthermore it is almost anytime template related.

Hi Milbo, thanks for all the great work you and your team do for VM. Quick question, have you tried it with one of default Joomla templates? it doen't even work with them..., my template doesn't load any JS or query besides VM ones, and I still face this issue.
If you check it out with a default VM template you will see the button gets clicked and it stays like that, nothing else happens, just like if you are still clicking on it. Please go back to the same way vmprices.js was before, or at least include both JS files (new and old, with namespace and without it) so we use the one that would work in our case and therefore popup will works fine again.
Thanks
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 23, 2012, 16:01:16 PM
Quote from: w2kr on April 23, 2012, 01:20:01 AM
The popup is now working on my site running 2.0.6 VM.  Issues for me was a javascript conflict with my template js files.  I used IE9 developer tools and viewed the console output you should see if you have errors when you click the add to cart.
I hope this helps others.
Hi... good to hear it is working for you, could you please tell us what Joomla version are you using? what template are you using?  thanks
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: patrik60 on April 23, 2012, 16:18:45 PM
Quotehave you tried it with one of default Joomla templates? it doen't even work with them...

I don't agree with you. I have made a testsite where I'm using J 2.5.4 with Beez2 template, VM 2.0.6. It's a clean install without any other extensions but virtuemart. I'm using One Page Checkout. But it works also fine without template override.

You may have a look here:

http://www.panmusic.ch/virtuemart/

There must be some other problems. (You may check also what happens, when you use the english site and add an item to the cart.)
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 23, 2012, 20:15:27 PM
thanks, didn't try with that template, will take a look and report back...
I'm also thinking into doing a full VM clean install, I have been upgrading it since v 2.0.0, so I'm heading into doing a fresh install
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: teobgeno on April 24, 2012, 00:15:44 AM
I post this not as a part of the js conflict solution.It is just a modification i made just to be sure there will be no conflicts with the add to cart functionality on the site i currently working on. I disable on the vm backened configuration the Using the product Scripts and at

components/com_virtuemart/views/productdetails/tmpl/default_addtocart.php
I change the
<noscript><input type="hidden" name="task" value="add" /></noscript>

to

<input type="hidden" name="task" value="add" />

Of course there is no ajax add to cart anymore and when i add a product to cart redirect me to basket. In my case i don't mind about the ajax or the redirect.
As i said this is not a solution but an alternative that for my purposes  is ok.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on April 24, 2012, 00:34:35 AM
I use only joomla standard templates to write virtuemart. We do not use really special stuff. Btw here is another thread, with a solution I didnt read, here imho https://forum.virtuemart.net/index.php?topic=101215.0
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: maxboy on April 24, 2012, 10:05:45 AM
I can confirm it is working for me now... My website was originally installed using VM 2.0.0, since then I have been upgrading it using VM upgrade button, and probably that wasn't done properly.

What I did was to download a fresh copy of VM, unzip it and start off by identifying folders and uploading them, at some point my add to cart button started to work fine again.

I am still not sure if this was a template, jquery or any other kind of issue, but I'm glad is gone. Thanks to all who send your comments and solutions,


Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Studio 42 on April 24, 2012, 22:50:36 PM
HI,
Sorry guys for the late answer,i was on Joomla Day Alger.
First Joomla 2.5.4 have change some code for multilanguage and the Ajax call don't react corectly.
For the facebox, i have done a fix but after vm2.0.6 du to this code changes for multilanguage sites.

I hope all found now a solution, or try the Last files from github.
you can get the full file pack here https://github.com/VirtueMart/virtuemart
or javascript file here https://raw.github.com/VirtueMart/virtuemart/master/components/com_virtuemart/assets/js/vmprices.js

Sincerly yours,

Patrick
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Don2 on April 26, 2012, 20:37:15 PM
Have had similar problems but I did get it working yesterday but the rest of the check out process got busted fixing that. So re-installed database backup on server cpanel to get back where I started and unchecked Display modal popup upon 'Add to cart' in checkout settings. Now it just shows two text lines in blue confirming product added to cart. The cart also updates immediately. So everything now works except for the double entry. Saw some chat yesterday about that.

VM 2.06a
J 2.5

Use external google jquery library is checked.
Unstranslated strings in english is checked
All "Activate Css Styles & Javascripts" are checked.
language Javascript Fix is unchecked.

Hope this helps someone. Frankly the layout looks ugly as sin but I feel I am making progress without pulling too much hair out. www.dreamgreen.org/new

Newb
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: marrius on April 28, 2012, 01:00:00 AM
http://forum.virtuemart.net/index.php?topic=95979.msg337889#msg337889

+



Display modal popup upon 'Add to cart'

= popup display

Because the VM Shopping Cart module have some update issue, I desabled and insted I build a menu to the cart.

Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Artanis on May 05, 2012, 02:01:37 AM
So - just to wrap evertyhing in this thread together -

As I understand, affected by this bug is only multilangual VM 2 shops.
Solution that worked for me is replacing

YourSite\components\com_virtuemart\assets\js\vmprices.js
with
https://raw.github.com/VirtueMart/virtuemart/master/components/com_virtuemart/assets/js/vmprices.js
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: amalia on June 10, 2012, 20:02:27 PM
I have replaced my vmprices.js with the latest vmprices but the problem remains.

I have Virtuemart 2.0.6, Joomla 2.5.4, skylab joomla template and I have these options checked:

Display modal popup upon 'Add to cart'
Using the Virtuemart jQuery
Use external google jquery library

I tried to disable each one of them but nothing changes.

Any ideas?
Thanks :)
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on June 13, 2012, 13:48:41 PM
Did you just tried the 2.0.7E ?
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: amalia on June 14, 2012, 00:03:52 AM
I tried this vmprices.js version: https://raw.github.com/VirtueMart/virtuemart/master/components/com_virtuemart/assets/js/vmprices.js
with Virtuemart 2.0.6 but no popup appears. :/
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Minh BlackRed on June 17, 2012, 04:31:16 AM
I'm using 207E
Does anyone know why the cart popup does not display after I try to add a product to cart?
It worked before but one day, it does not
Add a product -> display cart page


[attachment cleanup by admin]
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Minh BlackRed on June 17, 2012, 04:42:34 AM
Sorry, I got it in Configuration > Checkout settings
Display modal popup upon 'Add to cart': YES
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: darias on June 27, 2012, 10:48:59 AM
Quote from: slutsker on April 21, 2012, 16:35:24 PM
ok
i had the same problem
but now it seems that everything is working!

1 -you need to download file facebox.txt attached to this thread
rename it to facebox.js and place in components\com_virtuemart\assets\js

2 - go to VM admin - Preferences - Order preferencies

Display modal popup upon 'Add to cart' check it

3 - try to reload page

p.s.
if it still not working - try to rename your js folder of your template and disable js using modules
if lead to working cart popup - problem in conflict with template or modules js files


(how do disable category showing while VM search - read it (http://audio.probudget.ru/programmirovanie/rezultati-poiska-v-virtuemart-2))

Works for me!!! Thanks

Only I need to add more code in facebox.js for do works the button "ask about the product"

In line 82 add this

$('a.ask-a-question').click( function(){
$.facebox({
iframe: '/25/tienda-on-line/climatizacion/plastic-ladder-16-1-2-3-4-5-6-92012-06-26-00-22-19-11-12-13-detail?task=askquestion&amp;tmpl=component',
rev: 'iframe|550|550'
});
return false ;
});



works for me...
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Maggern on July 11, 2012, 19:00:49 PM
Remove

<?php /** @todo Handle the manufacturer view */ ?>
   <input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $this->product->virtuemart_manufacturer_id ?>" />

from default_addtocart.php and the 406 (Not acceptable) will go away in product details add to cart.

Somehow the virtuemart_manufacturer_id-call is not accepted by server.

Joomla 2.5.
VM 2.0.8c
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: adriespo on July 13, 2012, 12:49:19 PM
FYI I had this problem and I found there was a conflict with the jquery library loaded by a module I installed. The module is mod_animate_hover.

So carefully search for any jquery js file in yours modules' folders.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: AlexJ on July 14, 2012, 22:38:12 PM
Quote from: adriespo on July 13, 2012, 12:49:19 PM
FYI I had this problem and I found there was a conflict with the jquery library loaded by a module I installed. The module is mod_animate_hover.

So carefully search for any jquery js file in yours modules' folders.


Thx adriespo!  ;D After a lot of searching i found your post and that it's jQuery Dropdown Login that causes my jQuery issue.
http://www.joomlaos.de/Joomla_1.6_Downloads/Joomla_1.6_Module/jQuery_Dropdown_Login.html (http://www.joomlaos.de/Joomla_1.6_Downloads/Joomla_1.6_Module/jQuery_Dropdown_Login.html)

I would really like to keep this module, so where is the collision between the jQuery scripts and how do we resolve it?
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Zoralina on July 24, 2012, 20:23:06 PM
I'm using the 2.0.8.
I deactivated the module "CN Photos". Now it works :-))
Maybe this can help somebody

Zoralina
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: simplyClear on July 25, 2012, 11:41:13 AM
Hi AlexJ,

-----------------------
Thx adriespo!  ;D After a lot of searching i found your post and that it's jQuery Dropdown Login that causes my jQuery issue.
http://www.joomlaos.de/Joomla_1.6_Downloads/Joomla_1.6_Module/jQuery_Dropdown_Login.html

I would really like to keep this module, so where is the collision between the jQuery scripts and how do we resolve it?
----------------------

You can try this plugin to solve your problem:
http://extensions.joomla.org/extensions/core-enhancements/performance/jquery-scripts/18327

hope this help you.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: her63 on July 27, 2012, 19:39:09 PM
thank you all my freind  , it's work for me. After 4 day think to solved this problem. just follow the step of facebox.txt and rename it. www.dewiflorist.com (http://www.dewiflorist.com).

God Bless You All.

herry

Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: AlexJ on July 28, 2012, 21:07:29 PM
Unfortunately it didn't help  :(
I'll just deactivate the VM popup for now and hope for a solution soon.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Kevin14688 on August 01, 2012, 22:56:51 PM
Hello 2 u all

As wrote in the "Your live Sites" Section. We are migrating at the moment to VM 2.0.8e.
The problem from above with the cart is still the same as on 2.04 / 2.06. Don't know what to do more. I tried your
hints and tips but nothing works.

So maybe somebody have THE Idea... Waiting until then and so long the customers have to surf over the "cart" page.

Best Regards
Kevin
Title: [SOLVED] Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: thebeuving on August 15, 2012, 00:02:42 AM
We have posted the solution to the cart popup issue here (http://srihosting.com/blog/2012/08/virtuemart-2-facebox-or-settings-undefined-error-when-adding-products-to-cart/) with a few more details and in place that will be easy for everyone to find in the future.

Thanks,
David
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: AlexJ on August 17, 2012, 14:26:44 PM
I now got a solution that seems to work like a charm. I was forced to find this when my jQuery_dropdown_login (JDL) clashed with jEvents RSVP Pro as well as add to cart popup.

First I turned of jQuery loading in VM and made JDL load the VM compatible version of jQuery (1.6.4) instead of JDL standard (1.4.2).

I then made these changes in my JDL jscript login.js:

// Login Form
$j = jQuery.noConflict(true);                    // <--- Added this
$j(function() {                                          // <--- Changed $ ->  $j
    var button = $j('#loginButton');           // <--- Changed $ ->  $j
    var box = $j('#loginBox');                    // <--- Changed $ ->  $j
    var form = $j('#loginForm');                 // <--- Changed $ ->  $j
    button.removeAttr('href');
    button.mouseup(function(login) {
        box.toggle();
        button.toggleClass('active');
    });
    form.mouseup(function() {
        return false;
    });
    $j(this).mouseup(function(login) {     // <--- Changed $ ->  $j
        // if(!($(login.target).parent('#loginButton').length > 0)) {    // also commented these 4 lines that gives errors on every click on the page.
            // button.removeClass('active');
            // box.hide();
        // }
    });
});


As i said, seems to work like a charm for the moment =D
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: hns on September 17, 2012, 19:38:10 PM
It was swMenuFree for me that caused that problem. Disabled jQuery link in swMenu settings and everything works again...for now...
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Paul66 on October 10, 2012, 11:54:47 AM
This is bloody crazy, I've spent the best part of 2 days trying to sort this out and it's still ropey.
"Works in chrome but not in IE, no, wait a minute, I have it working in IE now but not in Firefox, no, wait, it's not working in chrome now, it goes straight to an empty cart, hold on, it is working in chrome but not in safari, wait, it's back in, no, it's gone again......and on......and on........"

I mean the whole system falls down at the very point of "main" contact with the user, the "ADD TO CART" button!!!!!

Of what use is the rest of the component without this????!!!!

Any worthwhile, solid solution yet??????
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: bytelord on October 10, 2012, 12:46:30 PM
Hello,

Use firebug to examine your site for js conflicts. Also try the default joomla theme (beez) and vm default theme without overrides.

Firebug usage: http://forum.virtuemart.net/index.php?topic=98505.0
JS Conflicts: http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
and http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries


Regards

Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: CowBoyDave on October 11, 2012, 06:12:28 AM
Thanks slutsker! Downloaded your file and it worked like a charm for me. I'm defiantly not going to update anymore without doing my homework first.

I found the file that you posted earlier in the convo and that did not work, but the re-posted version did. I'm not sure if there is a difference between the two files or  not. The one thing I did do different was to uncheck that setting in config before uploading that file, and the checking once the file was uploaded. That may have forced the site to reference that code. I'm not sure about that. Either way, I've got it working now. Thanks again.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Baalfyre on October 11, 2012, 23:26:06 PM
Downloaded facebook.txt file and converted to .js. Worked like a charm and site was acting normal seconds later. Many thanks.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: tsvetipl on November 01, 2012, 14:42:47 PM
Quote from: luizwbr on April 18, 2012, 22:50:38 PM
Guys, i used 2 Jquery's in product_details, because i'm dev a shipping plugin and i had the same error then you.

So i changed the facebox javascript, to execute on document.ready, and it works!

The error before i've got before:

vmprices.js

faceboxHtml is not defined in facebox.js in line 56
$.facebox.settings.faceboxHtml = faceboxHtml;


The fix:
facebox.js
jQuery(document).ready(function() {

//[..facebox content..]

});


luizwbr Thank you so much for your solution. I spend to days, I try almost everything only your solution help to my problem.

Thanks again.  ;)



Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: togglewa on December 08, 2012, 15:45:06 PM
G'day I have:
Joomla 2.5.8
Virtuemart 2.0.14

It works in FF/Chrome and pretty much everything except IE9

I get the following error:
SCRIPT5007: Unable to get value of the property 'settings': object is null or undefined
vmprices.js, line 65 character 14

In IE9 Debugger.
Activate Css Styles & Javascripts
Only one ticked are:
Using the product Scripts    
Using the Script ajax Countries / Regions    

I'm using jQuery Easy with 1.7 and in noConflict mode.
I've tried disabling all modules.
Yes: Display modal popup upon 'Add to cart' is ticked.
Tried the Facebox.txt trick to no prevail.

Any ideas? Been working on this for days and days and feel so defeated lol..
Try this in IE9 to replicate error once you click on Add to Cart in debug mode.. sometimes it works the first time and then you find another product and then you get the above error...
http://www.toggleway.com.au/pre-release/tikraionline/index.php/products/him/chalkboard-brooch-thought-cloud-detail (http://www.toggleway.com.au/pre-release/tikraionline/index.php/products/him/chalkboard-brooch-thought-cloud-detail)

Please anyone! I've searched all over the forums etc for answers but none have work.. if it is a conflict.. how do I work out what is causing it.. as I've even tried beez stock standard with install sample data + virtuemart 2 with install data and get the same issue.. 2.5.3 with 2.0.14

Cheers in advanced! :)
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: kabana on December 27, 2012, 15:29:11 PM
jQuery Easy solve the problem for me. A must have extension.
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: giotoula on January 07, 2013, 22:15:57 PM
Quote from: slutsker on April 21, 2012, 16:35:24 PM
ok
i had the same problem
but now it seems that everything is working!

1 -you need to download file facebox.txt attached to this thread
rename it to facebox.js and place in components\com_virtuemart\assets\js

2 - go to VM admin - Preferences - Order preferencies

Display modal popup upon 'Add to cart' check it

3 - try to reload page

p.s.
if it still not working - try to rename your js folder of your template and disable js using modules
if lead to working cart popup - problem in conflict with template or modules js files


(how do disable category showing while VM search - read it (http://audio.probudget.ru/programmirovanie/rezultati-poiska-v-virtuemart-2))

Thanks!!!
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: R41f on May 27, 2013, 14:47:37 PM
Joomla! 2.5.9, Virtuemart 2.0.6
I used files vmprices.js and facebox.js attached to this topic.
Chrome console gives error "Uncaught ReferenceError: Virtuemart is not defined (anonymous function)" on the line "Virtuemart.addtocart_popup = '1' ; "
After pressing button "buy" console got error "Uncaught TypeError: Cannot read property 'settings' of undefined "
Please, help me to solve this problem.
The internal page of goods, for example, is http://znaikashop.ru/index.php/component/virtuemart/igri-dlja-samyh-malenkih/mioshi-igra-sorter-begemot-detail?Itemid=0

Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Milbo on May 27, 2013, 15:13:05 PM
Update immediatly to 2.0.21b
Title: Re: cart popup not displayed any more in 2.0.4 - still in 2.0.6
Post by: Delphin Sam on June 27, 2013, 08:19:40 AM
Quote from: luizwbr on April 18, 2012, 22:50:38 PM
Guys, i used 2 Jquery's in product_details, because i'm dev a shipping plugin and i had the same error then you.

So i changed the facebox javascript, to execute on document.ready, and it works!

The error before i've got before:

vmprices.js

faceboxHtml is not defined in facebox.js in line 56
$.facebox.settings.faceboxHtml = faceboxHtml;


The fix:
facebox.js
jQuery(document).ready(function() {

//[..facebox content..]

});




Thank you luizwbr, Its working great. :-)