VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pm4698 on October 05, 2016, 23:00:02 PM

Title: Ajax update of cart
Post by: pm4698 on October 05, 2016, 23:00:02 PM
Hello there,

I use joomla 3.6.2 with Virtuemart 3.0.18

Is there an easy way to change the pop up window function when you add to cart a product? I need the pop up not to pop up and with ajax to reload the module cart. Is this easy?

Where is the file i should take a look in order to do this?

Thank you in advance
Title: Re: Ajax update of cart
Post by: GJC Web Design on October 06, 2016, 13:45:36 PM
I have used this

components/com_virtuemart/assets/js/vmprices.js ~ line 97
no popup
if(usefancy){
      //remove for reload
         /*jQuery.fancybox({
               "titlePosition" :    "inside",
               "transitionIn"   :   "fade",
               "transitionOut"   :   "fade",
               "changeFade"    :   "fast",
               "type"         :   "html",
               "autoCenter"    :   true,
               "closeBtn"      :   false,
               "closeClick"    :   false,
               "content"       :   txt
            }
            
         );*/
            //add for reload
         //location.reload();
      } else {
         jQuery.facebox( txt , 'my-groovy-style');
      }