Post by Qphoria » Tue Jan 10, 2012 10:52 pm

This script will make it so that the information links in the footer popup in a fancybox (1.5.1) or colorbox (1.5.2) overlay.
It uses an ajax code check to hide the header/footer/sides if the page opens as a fancybox, while still allowing the pages to load normally when opened directly. Very small vQmod changes.
footer_info_fancybox.gif

footer_info_fancybox.gif (156.42 KiB) Viewed 6243 times


Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by opencartArab » Wed Jan 11, 2012 3:10 am

cool .. i like it.
Thanks..

https://www.opencartarab.com
التعليمات باللغة العربية موجودة على الرابط التالي
https://www.opencartarab.com/docs


Expert Member

Posts

Joined
Thu Apr 01, 2010 3:31 am

Post by cantykiwi » Wed Jan 11, 2012 5:10 am

Nice one Q!!! :good:

New member

Posts

Joined
Mon Sep 13, 2010 12:37 pm

Post by Qphoria » Wed Jan 11, 2012 5:44 am

Small update. Added "rel" tag. Now you can use the Next/Prev arrows to scroll through all information pages easily

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Ozfarmer » Wed Jan 11, 2012 7:03 am

Thanks Qphoria! very good work!

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

New member

Posts

Joined
Sun Mar 20, 2011 3:58 pm

Post by Luke Worsfold » Wed Jan 11, 2012 10:25 pm

Hi there how to i get this to work on my site??

Newbie

Posts

Joined
Wed Jan 11, 2012 10:01 pm

Post by Qphoria » Wed Jan 11, 2012 10:27 pm

Luke Worsfold wrote:Hi there how to i get this to work on my site??
http://forum.opencart.com/viewtopic.php?f=131&t=27139

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cwswebdesign » Mon Mar 12, 2012 12:25 pm

Great mod! It looks awesome in 1.5.1.3

Does it need to be modified to work with 1.5.2.1 ?

Thanks!

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Qphoria » Tue Mar 13, 2012 9:41 am

Added colorbox version for v1.5.2

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cwswebdesign » Fri Mar 23, 2012 7:44 am

Qphoria wrote:Added colorbox version for v1.5.2

Thank you!!

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by disgruntled » Mon Mar 26, 2012 6:06 pm

Minor quirk. If the store is setup using www in admin, your mod does not work when just using http://store.com and viseversa. The funny thing is in the admin Opencart gives the example using www on the second store of a multi store setup. We are using version 1.5.2.1

Newbie

Posts

Joined
Wed Mar 14, 2012 4:31 am

Post by Qphoria » Tue Mar 27, 2012 2:41 am

I'm not sure I can do anything about that due to Same Origin Policy limitations for ajax

The web treats "www.domain.com" and "domain.com" as 2 different origins.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by disgruntled » Tue Mar 27, 2012 2:53 am

Hi Q, found a fix. It's opencart's .htaccess that's the problem. Not sure why it's not fixed because it's so simple? just placed this in our .htaccess and fixed it.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Newbie

Posts

Joined
Wed Mar 14, 2012 4:31 am

Post by disgruntled » Tue Mar 27, 2012 3:01 am

One other problem that was solved (which has nothing to do with this mod) is that when an Opencart site is accessed without using the www the add to cart buttons on the home page will not work. The .htaccess re-write fixed that problem.

Newbie

Posts

Joined
Wed Mar 14, 2012 4:31 am

Post by Qphoria » Wed Apr 11, 2012 2:23 am

updated to fix a problem with them not showing when on an https page.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by lightworks » Mon Jul 30, 2012 7:41 pm

Qphoria,

This works great - many thanks. A quick question: given that it opens up a full page in pop-up necessitating scrolling, is there a way to add a different URL to T&Cs etc so that a specially designed text page (without header etc) can be opened? Similar to one of those 'print this page' set-ups while leaving the main T&Cs page intact?

Newbie

Posts

Joined
Sat Jul 21, 2012 6:51 am

Post by cwswebdesign » Tue Aug 07, 2012 10:21 pm

wondering if anyone can help me out. I know this mod alone works with no errors and works great, but I've got some other mod that is preventing this from working and I can't figure out which one.

This is the error I'm getting:

---------- Date: 2012-08-07 14:18:18 ~ IP : xxxxxxxx ----------
REQUEST URI : /index.php?route=information/information&information_id=12
MOD DETAILS:
modFile : /home/xxxxxxxx/public_html/ocart/vqmod/xml/footer_information_colorbox_v152.xml
id : Footer Information Fancybox
version : 152.1
vqmver : 2.1.5
author : qphoria
SEARCH NOT FOUND (ABORTING MOD): <?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>

I would give out a site link but I have to disable this mod because it doesn't allow the rest of the site to function properly.

Help is greatly appreciated!

Thanks

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by cwswebdesign » Fri Aug 10, 2012 5:38 am

cwswebdesign wrote:wondering if anyone can help me out. I know this mod alone works with no errors and works great, but I've got some other mod that is preventing this from working and I can't figure out which one.

This is the error I'm getting:

---------- Date: 2012-08-07 14:18:18 ~ IP : xxxxxxxx ----------
REQUEST URI : /index.php?route=information/information&information_id=12
MOD DETAILS:
modFile : /home/xxxxxxxx/public_html/ocart/vqmod/xml/footer_information_colorbox_v152.xml
id : Footer Information Fancybox
version : 152.1
vqmver : 2.1.5
author : qphoria
SEARCH NOT FOUND (ABORTING MOD): <?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>

I would give out a site link but I have to disable this mod because it doesn't allow the rest of the site to function properly.

Help is greatly appreciated!

Thanks

DL
Fixed Now.

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by faizanmemon786 » Thu Oct 04, 2012 10:56 pm

getting this erro... can anyone tell me how to fix this...

---------- Date: 2012-10-04 14:53:54 ~ IP : 92.98.158.123 ----------
REQUEST URI : /
MOD DETAILS:
modFile : /home/u456264460/public_html/vqmod/xml/footer_information_fancybox.xml
id : Footer Information Fancybox
version : 1.0
vqmver : 2.1.5
author : qphoria
SEARCH NOT FOUND (ABORTING MOD): <a href="<?php echo $information['href']; ?>">


Posts

Joined
Wed Oct 03, 2012 3:10 am
Who is online

Users browsing this forum: No registered users and 7 guests