VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: samehelhakim on November 11, 2012, 22:54:19 PM

Title: Display modal popup upon 'Add to cart'not working !!
Post by: samehelhakim on November 11, 2012, 22:54:19 PM
Hello ,
I have a problem when i mark on this option Display modal popup upon 'Add to cart'   
from the backend the add to cart button not work anymore and i have to refresh the page by myself to see the updates .. but if unmarked it .. then it work normal that redirect me to shopping cart !
i think its a problem with the Jquery but i didn't make any update for my virtuemart or anything !
VM version 2.0.6
Joomla version 2.5
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: bytelord on November 11, 2012, 22:59:10 PM
Hello,

To help you on examination please post a live url. Also consider to upgrade your vm to 2012f/2013a.

Use firebug to examine your site code and styling .. also for checking js conflicts ...
http://forum.virtuemart.net/index.php?topic=102850.0

Javascript conflicts:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries

Regards
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: samehelhakim on November 11, 2012, 23:33:37 PM
i just checked the JS conflicts and nothing ! and i updated to the last version and same issue too !
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: bytelord on November 11, 2012, 23:34:41 PM
Any live url?
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: bytelord on November 12, 2012, 20:52:08 PM
Hello,

Just checked you web site and there are js conflicts. Probably you didn't checked correctly.

QuoteSyntaxError: missing ) after argument list
[Break On This Error]    
sName+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" "

This one caused by spotlight widgetkit of your custom joomla template.

Also you are loading jquery twice, please remove one instance. Also you are loafing ja.js for google analytics three times. This should be corrected because affect your site performance.

<script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js">
<script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js">
<script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js">
<script type="text/javascript" src="/final/media/system/js/mootools-core.js">
<script type="text/javascript" src="/final/media/system/js/core.js">
<script type="text/javascript" src="/final/media/system/js/mootools-more.js">
<script type="text/javascript" src="/final/media/system/js/modal.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
<script type="text/javascript" src="/final/components/com_k2/js/k2.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js">
<script type="text/javascript" src="http://hatlly.com/final/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js">
<script type="text/javascript" src="http://hatlly.com/final/components/com_virtuemart/assets/js/jquery.noConflict.js">
<script type="text/javascript" src="/final/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/final/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/final/components/com_virtuemart/assets/js/vmprices.js">
<script type="text/javascript" src="/final/cache/widgetkit/widgetkit-fa51980f.js">
<script type="text/javascript" src="/final/templates/shaper_istore/js/popbox.js">
<script type="text/javascript" src="/final/plugins/system/helix/js/menu.js">
<script type="text/javascript" src="/final/plugins/system/helix/js/equalheight.js">
<script type="text/javascript" src="/final/plugins/system/helix/js/totop.js">
<script type="text/javascript" src="/final/plugins/system/helix/js/jquery.js">
<script type="text/javascript" src="/final/media/com_acymailing/js/acymailing_module.js">
<script type="text/javascript" src="...........mod_ice_virtuemart_cart/assets/vmprices_2.js"

You could unload jquery from vm under the configuration -> Templates and use only jquery 1.7 from k2.

Regards
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: samehelhakim on November 12, 2012, 21:03:37 PM
Which file that  i have to correct it ! in which directory so but i'm still beginner with VM :)
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: samehelhakim on November 12, 2012, 21:20:03 PM
I just removed one of <script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js">
and fixed the Jquery load to just 1.7 & disabled the widgetkit but nothing happened !
Title: Re: Display modal popup upon 'Add to cart'not working !!
Post by: bytelord on November 12, 2012, 21:33:40 PM
Hello,

I am not aware how your template is working, uses it's own framework, but what as i see the script still loads, also a lighbox widget still loads, if  you try with joomla default template you will see that is working, is an issue with your joomla template that loads too many javascipt files. Please examine better using firebug because i cannot make further tests from here. But this is caused by your widgets or your joomla template.
May be you disable them but your template maybe reloads them.

You could ask for support here: http://www.joomshaper.com/forums/75-istore/ for that template http://www.joomshaper.com/joomla/club-templates/istore


Regards