I modified the mini cart module to display the product thumbnail. My problem is everytime I add a new product the images on the cart disappears and i need to refresh to display it all
URL of my site is http://globalexcavator.philscan.com using VM 2.0.12f and PHP5
Hello,
Your site have a lot of jacascipt conflicts. Using firebug i check your header:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js">
<script src="/templates/philscan/js/jquery.selectbox-0.2.js" type="text/javascript">
<script src="/templates/philscan/js/template.js.php?b=0&v=1" type="text/javascript">
<script type="text/javascript" src="/media/system/js/mootools-more.js">
<base href="http://globalexcavator.philscan.com/en/">
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>Home</title>
<link title="RSS 2.0" type="application/rss+xml" rel="alternate" href="/en/?format=feed&type=rss">
<link title="Atom 1.0" type="application/atom+xml" rel="alternate" href="/en/?format=feed&type=atom">
<link type="image/vnd.microsoft.icon" rel="shortcut icon" href="/templates/philscan/favicon.ico">
<link type="text/css" href="/templates/philscan/css/template.css.php?b=0&v=1" rel="stylesheet">
<link type="text/css" href="/components/com_virtuemart/assets/css/facebox.css" rel="stylesheet">
<link type="text/css" href="/components/com_virtuemart/assets/css/vmsite-ltr.css" rel="stylesheet">
<link type="text/css" href="/modules/mod_phoca_vm_catdtree/assets/dtree.css" rel="stylesheet">
<link type="text/css" href="/modules/mod_phoca_vm_catdtree/assets/custom.css" rel="stylesheet">
<link type="text/css" href="/modules/mod_vm_pop_product_slider/tmpl/css/styles.css" rel="stylesheet">
<link type="text/css" href="/modules/mod_vm_pop_product_slider/tmpl/includes/mediaboxadvanced/mediaboxAdv-Minimal.css" rel="stylesheet">
<link type="text/css" href="/media/mod_languages/css/template.css" rel="stylesheet">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/jquery.noConflict.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmprices.js">
<script type="text/javascript" src="/modules/mod_phoca_vm_catdtree/assets/dtree.js">
<script type="text/javascript" src="/modules/mod_vm_pop_product_slider/tmpl/scripts/vm-pop-product-slider.js">
<script type="text/javascript" src="/modules/mod_vm_pop_product_slider/tmpl/includes/mediaboxadvanced/Quickie.js">
<script type="text/javascript" src="/modules/mod_vm_pop_product_slider/tmpl/includes/mediaboxadvanced/mediaboxAdv.js">
and some of your errors are:
QuoteTypeError: jQuery(".vmCartModule").productUpdate is not a function
jQuery(".vmCartModule").productUpdate();
/en/ (line 49)
TypeError: this.getFirst("div.vmpopproductslider-product-description") is null
...his.getFirst('div.vmpopproductslider-product-description').setStyle('opacity',0)
vm-pop...ider.js (line 80)
"NetworkError: 404 Not Found - http://globalexcavator.philscan.com/templates/philscan/img/select-icons.png"
TypeError: this.getFirst("div.vmpopproductslider-product-description") is null
...his.getFirst('div.vmpopproductslider-product-description').setStyle('opacity',0)
First you are loading twice, one from your template with version 1.8.1 and one time from vm2, the 1.6.4 version. The best will be to load only one instance, try to disable one of the and see how your site will work. Jquery 1.8.x does not work everytime with vm2, you could try a 1.7.x version to be loaded from your template and disable vm2 from loading jquery.
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