Jump to content

How to add quick view window


Recommended Posts

you mean that you want to open these pages (that you added to displayNav) in modal popup window?

 

Yes something similar. To explain more if user clicks on the link i want a small window in same page without redirecting to other page. When he closes this window he should be able to see the main page contents again. Hope that is clear

 

Thanks

Link to comment
Share on other sites

it will be necessary to add fancybox library to each page in your website

 

and js script:

	if (!!$.prototype.fancybox)
		$("a.iframe").fancybox({
			'type': 'iframe',
			'width': 600,
			'height': 600
		});

then create links with class="iframe"

Link to comment
Share on other sites

it will be necessary to add fancybox library to each page in your website

 

and js script:

	if (!!$.prototype.fancybox)
		$("a.iframe").fancybox({
			'type': 'iframe',
			'width': 600,
			'height': 600
		});

then create links with class="iframe"

Hi Viki,

 

Is this done in js folder or themes folder files...i am not quite sure which js files u r referring to...thanks

Link to comment
Share on other sites

in frontcontroller setmedia() function add:

 

$this->addCSS(_PS_CSS_DIR_.'jquery.fancybox-1.3.4.css', 'screen');
$this->addJqueryPlugin('fancybox');

:-)

I added above code into FrontController.php and where does below code goes ? i mean which file, i am quite new so asking...i need to learn a lot here. Thanks :)

 

if (!!$.prototype.fancybox)

        $("a.iframe").fancybox({

            'type': 'iframe',

            'width': 600,

            'height': 600

        });

Link to comment
Share on other sites

×
×
  • Create New...