VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: borro on December 23, 2015, 15:27:48 PM

Title: Displaying of related products after adding something to a cart in a fancybox
Post by: borro on December 23, 2015, 15:27:48 PM
Hello all!

Please tell me where is the code which generates an html markup of a list of related products in a fancybox after adding something to a cart?

VM 3.0.9
Title: Re: Displaying of related products after adding something to a cart in a fancybox
Post by: Spiros Petrakis on December 23, 2015, 20:01:10 PM
Hi Borro,

1 ) components\com_virtuemart\views\cart\tmpl\padded.php
2)  components\com_virtuemart\sublayouts\related.php
Title: Re: Displaying of related products after adding something to a cart in a fancybox
Post by: borro on December 24, 2015, 08:51:36 AM
Quote from: Spyros Petrakis on December 23, 2015, 20:01:10 PM
Hi Borro,

1 ) components\com_virtuemart\views\cart\tmpl\padded.php
2)  components\com_virtuemart\sublayouts\related.php
Hello! Thank you

And what place in code does make that html markup to be surrended with <div id="fancybox-content">...</div>?
Title: Re: Displaying of related products after adding something to a cart in a fancybox
Post by: Spiros Petrakis on December 24, 2015, 10:14:28 AM
Hi,

this is done by vmprices.js .
components\com_virtuemart\assets\js\vmprices.js

Quote
      if(usefancy){
         jQuery.fancybox({
               "titlePosition" :    "inside",
               "transitionIn"   :   "fade",
               "transitionOut"   :   "fade",
               "changeFade"    : "slow",
               "type"             :   "html",
               "autoCenter"    :   true,
               "closeBtn"      :   false,
               "closeClick"    :   false,
               "content"       :   txt
            }
         );
      } else {
         jQuery.facebox( txt , 'my-groovy-style');
      }