Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › White flash when product loads to cart
- This topic has 8 replies, 3 voices, and was last updated 13 years, 7 months ago by
tiger.
-
AuthorPosts
-
February 27, 2013 at 11:32 am #8652
tiger
Memberwhen i add a product to shopping cart the page goes white while it loads, i had similar problem with plugins clashing when you openend pages on my site but i managed to stop that by putting a black html line in my theme css that hides the flash but it doesnt seem to work with the cart?
February 27, 2013 at 12:00 pm #54094Peter
Memberplease post a link to your shopping cart so we can see for ourselves.
February 27, 2013 at 1:58 pm #54095tiger
Member[removed site url at the request of the user] Then the page called Another Mans Army
February 27, 2013 at 9:56 pm #54096Peter
Membersomething appears to be loading an older version of jquery library in addition to the jquery library loaded by wordpress and this is interfering with correct operation of lightbox in eStore.
Please do the following theme/plugin conflict tests to find the culprit which is causing the problem:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
Also, check this post:
February 28, 2013 at 12:41 pm #54097tiger
Memberits the html5 audio player that i have linked the cart to, if i turn off the extra shortcodes it doesnt flash but obviously doesnt load song into the cart..
the way i have linked it is ..in the html5 audio player add track menu you get a choice to put your sell button..i put this in..
?wp_eStore_add_to_cart id=1
this seems to be the only way i can see that it will link the 2, i turned off lightbox because all im doing with the cart is linking from the player..
i read somewhere about putting jquery scripts into queues but i have no idea where to do this?
February 28, 2013 at 11:20 pm #54098wpCommerce
ModeratorHi, this is what’s happening:
your HTML5 audio player plugin is hardcoding the following jQuery script
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>But Another copy of jQuery is already included on that page
<script type='text/javascript' src='http://www.yourdomain.com/wp-content/plugins/jquery-updater/js/jquery-1.8.2.min.js?ver=1.8.2'></script>That’s where the problem is. You can’t have two copies of jQuery on the same page (they will conflict with each other).
WordPress has a proper API to avoid this issue which is to invoke the
enqueuefunction when a theme or plugin needs to include jQuery. That way no matter how many plugins include jQuery there will always be one copy of it. Unfortunately, your plugin is not following the API.March 2, 2013 at 9:10 pm #54099tiger
Memberit was doing it before i added the
<script type=’text/javascript’ src=’http://www.yourdomain.com/wp-content/plugins/jquery-updater/js/jquery-1.8.2.min.js?ver=1.8.2′></script>
and now still doing when i have deleted the jquery -updater plugin..
its weird because when you add the track to cart you can see this in the address bar..
[http://www.yourdomain.com/ama/?wp_eStore_add_to_cart=1]
its like its making a brief page out of it?
March 2, 2013 at 11:26 pm #54100wpCommerce
ModeratorHi, The following script needs to be removed (It is still on that page):
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>Also, when I go to the URL you specified it tells me that product 1 doesn’t exists?
March 4, 2013 at 2:19 pm #54101tiger
Memberi have sent this on to the developer and he said to say thank you as he will fix in his next update.
and thanks from me for your help
-
AuthorPosts
- You must be logged in to reply to this topic.