Hi,
Attachment Pasted_Image_9_1_13_2_56_PM.png not found
You don't need to go over the core files and commented out some lines. Because the facebox is already being triggered in here, which is enough.
Attachment Pasted_Image_9_1_13_2_57_PM.png not found
All you have to do is using this scheme to run the facebox modal popup.
<a href="URL_goes_HERE" rel="facebox" > link </a>
So the targeted URL will be loaded inside the facebox based on AJAX loading.
For the TOS, you can use this:
<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1&tmpl=component') ?>" class="terms-of-service" id="terms-of-service" rel="facebox">
The TOS page will be opened inside the facebox popup by AJAX requesting external URL.
This solution:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/687-terms-of-service-popup-not-popping-up#2876
Is to replace "facebox" with "fancybox" popup plugin. That solution used to work in some cases, because fancybox was ready to use as an alternative to facebox. But (after VM2.0.20) fancyboxi s not get loaded by default anymore, simply because it is not necessary anymore, facebox takes care everything.
Regards.
Support & Development