News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How can i load "Select payment" in a Facebox

Started by geppie25, January 27, 2012, 11:27:57 AM

Previous topic - Next topic

geppie25

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.


szbstvn

Nobody?


Küldve az én iPad-ről Tapatalk HD használatával

PRO

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?