Displaying of related products after adding something to a cart in a fancybox

Started by borro, December 23, 2015, 15:27:48 PM

Previous topic - Next topic

borro

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
Wish you happiness!

Spiros Petrakis

Hi Borro,

1 ) components\com_virtuemart\views\cart\tmpl\padded.php
2)  components\com_virtuemart\sublayouts\related.php
Joomla templates and extensions development
https://www.yourgeek.gr

borro

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>?
Wish you happiness!

Spiros Petrakis

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');
      }
Joomla templates and extensions development
https://www.yourgeek.gr