mikyta Posted July 30, 2018 Share Posted July 30, 2018 Hello, I want to open some link to cms page (for ex.shipping,payment on widget link footer) in a pop up windows ,is it possible? Thanks Link to comment Share on other sites More sharing options...
Knowband Plugins Posted July 31, 2018 Share Posted July 31, 2018 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. 2 Link to comment Share on other sites More sharing options...
miky Posted July 31, 2018 Share Posted July 31, 2018 (edited) 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? Sorry for my english Thanks Edited July 31, 2018 by miky (see edit history) Link to comment Share on other sites More sharing options...
miky Posted July 31, 2018 Share Posted July 31, 2018 Hi I use PS 1.7 and classic theme in witch folder I can find the page to add the code? Thanks Link to comment Share on other sites More sharing options...
miky Posted August 3, 2018 Share Posted August 3, 2018 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 More sharing options...
gregbbb999 Posted August 7, 2021 Share Posted August 7, 2021 Thank you for this usefull information Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now