Post by fotoshootoplocatienl » Fri Sep 09, 2011 9:00 pm

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.


Posts

Joined
Mon Mar 21, 2011 7:54 pm
Location - Kudelstaart (Aalsmeer), The Netherlands

Post by SXGuy » Sat Sep 10, 2011 2:05 am

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.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by fotoshootoplocatienl » Sat Sep 10, 2011 3:06 am

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 :crazy:


Posts

Joined
Mon Mar 21, 2011 7:54 pm
Location - Kudelstaart (Aalsmeer), The Netherlands

Post by Qphoria » Sat Sep 10, 2011 4:42 am


Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by fotoshootoplocatienl » Sat Sep 10, 2011 4:47 am

Qphoria wrote:here's more examples:
http://forum.opencart.com/viewtopic.php ... 82#p165896
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.


Posts

Joined
Mon Mar 21, 2011 7:54 pm
Location - Kudelstaart (Aalsmeer), The Netherlands
Who is online

Users browsing this forum: No registered users and 11 guests