VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: geppie25 on January 27, 2012, 11:27:57 AM

Title: How can i load "Select payment" in a Facebox
Post by: geppie25 on January 27, 2012, 11:27:57 AM
Hi people of the good life,

I'm working on a project with VM2 and i want to use the facebox a bit more. How can i load content, like after pressing select a payment, into facebox? Cheers guys because i just breaking my head about it.

Title: How can i load "Select payment" in a Facebox
Post by: szbstvn on January 21, 2013, 22:06:22 PM
Nobody?


Küldve az én iPad-ről Tapatalk HD használatával
Title: Re: How can i load "Select payment" in a Facebox
Post by: PRO on January 22, 2013, 00:37:22 AM
cart/tmpl/default.php

Here is the code for the terms of service

$document = JFactory::getDocument ();
$document->addScriptDeclaration ("

//<![CDATA[
   jQuery(document).ready(function($) {
      $('div#full-tos').hide();
      $('a#terms-of-service').click(function(event) {
         event.preventDefault();
         $.facebox( { div: '#full-tos' }, 'my-groovy-style');
      });
   });

//]]>
");

and the link for terms of service

                     <a href="<?php JRoute::_ ('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1') ?>" class="terms-of-service" id="terms-of-service" rel="facebox"
                        target="_blank">





Have you tried modifying that code for payment?