Page 1 of 1
Open website using fancybox in information page?
Posted: Fri Sep 09, 2011 9:00 pm
by fotoshootoplocatienl
Hi,
Can some-one tell me how I can open an website using fancybox, when I click on a link in a information page?
I want to let it popup in fancybox, instead of opening new browser window.
Re: Open website using fancybox in information page?
Posted: Sat Sep 10, 2011 2:05 am
by SXGuy
what you need to do, is edit the information module, add the fancybox class id to the <a href links.
Then the information page at catalog/view/theme/yourtheme/template/information/information.tpl needs to be edited to remove the header, footer, column data and you may also need to remove the content div id's, class names etc, so it is basically just left with raw data.
Now when someone clicks a link in the information module, it will trigger the fancy box via the class id and display the just the text.
Follow how fancy box is set up on the product pages for the images, and use the same method for your information links.
Re: Open website using fancybox in information page?
Posted: Sat Sep 10, 2011 3:06 am
by fotoshootoplocatienl
SXGuy wrote:what you need to do, is edit the information module, add the fancybox class id to the <a href links.
Then the information page at catalog/view/theme/yourtheme/template/information/information.tpl needs to be edited to remove the header, footer, column data and you may also need to remove the content div id's, class names etc, so it is basically just left with raw data.
Now when someone clicks a link in the information module, it will trigger the fancy box via the class id and display the just the text.
Follow how fancy box is set up on the product pages for the images, and use the same method for your information links.
Hmm ok... bit to much for me in coding terms. Can you do it if I pay you for it

Re: Open website using fancybox in information page?
Posted: Sat Sep 10, 2011 4:42 am
by Qphoria
Re: Open website using fancybox in information page?
Posted: Sat Sep 10, 2011 4:47 am
by fotoshootoplocatienl
Tried it, but did not work. Opens in the same window, no popup.
I think i removed some code somewhere ... will try to compare the scripts this weekend.