Jump to content

[SOLVED] open link like the terms and conditions


Recommended Posts

hi there. i am trying to make a few adjustments on a custom html module. i want the link to open in an iframe like the terms and conditions on the checkout page. 

 

i've tried the following code, but it's just opening the cms page with content only, and not in a frame like this :

 

post-754138-0-65656000-1399895331_thumb.png

<a class="iframe" href="http://billigedufte.dk/mob/manufacturers?content_only=1" rel="nofollow"><em class="icon-check">  </em>Alle de kendte mærker   </a> 
 
 

you can see the code here on www.billigedufte.dk/mob 

 

it's the line just above the diasshow saying:

 

  Alle de kendte mærker     100% ægte parfume     Fri fragt ved køb over 1000kr     Gode priser og sikker betaling

Edited by vekia (see edit history)
Link to comment
Share on other sites

to your front controller add code:

$this->addJqueryPlugin(array('fancybox'));

to run fancybox for iframes use code like:

<script type="text/javascript">
$(document).ready(function() {
$(".iframe").fancybox();
});
</script>
Link to comment
Share on other sites

try to move

{literal}
						<script type="text/javascript">
						$(document).ready(function() {
						$(".iframe").fancybox();
						});
						</script>
					{/literal}

to the <head></head> section

 

 

i tried the same code on my own and it works well

Link to comment
Share on other sites

aight . so i got it to work ... wuhuuu...

 

what i did was adding this code to my header.tpl

 

 

{literal}
<script type="text/javascript">
$('a.iframe').fancybox({
'type' : 'iframe',
'width':600,
'height':600
});
</script>
{/literal}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...