Jump to content

open cms page in pop up


mikyta

Recommended Posts

Hi,

Opening the footer link (CMS) directly in the pop up will not be possible (Using Js it might be possible but popup will display the whole page in popup including header & footer so It's not the suggested solution) but you can do it manually by making changes in the code. You can get the content of the any CMS page using the code below.

 

$cms = new CMS();

$content = $cms->getCMSContent(1, $this->context->language->id); // Where 1 is the CMS ID.) 

Content can be added into any div on the page & can be displayed on pop up by clicking on any desired link.

 

  • Like 2
Link to comment
Share on other sites

On 31/7/2018 at 9:32 AM, Knowband Plugins said:

Hi,

Opening the footer link (CMS) directly in the pop up will not be possible (Using Js it might be possible but popup will display the whole page in popup including header & footer so It's not the suggested solution) but you can do it manually by making changes in the code. You can get the content of the any CMS page using the code below.

 


$cms = new CMS();

$content = $cms->getCMSContent(1, $this->context->language->id); // Where 1 is the CMS ID.) 

Content can be added into any div on the page & can be displayed on pop up by clicking on any desired link.

 

Hello,thanks a lot for your help

but how and where I've must add the code for example if I want use the "Privacy" link on the footer?

and how can I get the size of popup windows?

I use PS 1.7 and classic theme in witch folder I can find the page to add the code?

Sorry for my english

Thanks

Link to comment
Share on other sites

  • 3 years later...

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...