4thbasement Posted May 11, 2016 Share Posted May 11, 2016 (edited) Hi all, I tried searching for this but no luck in finding anyone with the same problem. At the page where you accept terms and service, the pop up to read the actual terms and service is blank. Attached the screenshot. Anyone got any idea how to fix this? Thank you, Tom Edited May 13, 2016 by 4thbasement (see edit history) Link to comment Share on other sites More sharing options...
presta4you.com Posted May 11, 2016 Share Posted May 11, 2016 Check your CMS linked with this button. Maybe CMS is empty. Link to comment Share on other sites More sharing options...
4thbasement Posted May 11, 2016 Author Share Posted May 11, 2016 It's not empty I thought it may be too long so I linked it to a different one with just a couple of lines. No changes, pop up is still blank.. Link to comment Share on other sites More sharing options...
vekia Posted May 11, 2016 Share Posted May 11, 2016 there is a chance that you browse order process with ssl certificate and tos page is loaded without ssl - because of this - you dont see it, just blank page. about 2 years ago it was common problem here :-) case needs inspection directly in your shop. Link to comment Share on other sites More sharing options...
4thbasement Posted May 11, 2016 Author Share Posted May 11, 2016 there is a chance that you browse order process with ssl certificate and tos page is loaded without ssl - because of this - you dont see it, just blank page. about 2 years ago it was common problem here :-) case needs inspection directly in your shop. I'm not sure I understand what you mean by that. Either way, how do I fix it? Link to comment Share on other sites More sharing options...
vekia Posted May 11, 2016 Share Posted May 11, 2016 most important question: while you order something - you see https in address bar? Link to comment Share on other sites More sharing options...
4thbasement Posted May 12, 2016 Author Share Posted May 12, 2016 you see https in address bar? Yes, but it's crossed out with the red line Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 can you please now go to preferences and disable ssl connection (for a second, for test purposes only) then go back to order process and try to open tos popup you see contents now, right? Link to comment Share on other sites More sharing options...
4thbasement Posted May 12, 2016 Author Share Posted May 12, 2016 (edited) Hi Vekia, I tried disabled SSL, no changes. It's still blank. Do you have any other ideas? Thank you for the help. EDIT: I found a thread from someone before having the same problem. I tried CTRL+SHIFT+J and the pop up shows the text. EDIT2: Disabling SSL actually works, it needed a second ;p. Obviously this isn't a permanent solution... how do I get it to work with SSL? And it seems like it's a chrome problem only. The log says: Failed to load resource: net::ERR_NAME_NOT_RESOLVED http://c.jirafe.com/jirafe.js Edited May 12, 2016 by 4thbasement (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 i know that this is not a solution, but i decribed these steps for debug purposes. Now i know where the problem is and as i already said: about 2 years ago it was common problem here :-) for example: https://www.prestashop.com/forums/topic/281415-solved-access-cms-pages-using-https/ sadly speaking it was a long time ago and i dont remember details of fix well. it was a case of .js scripts and some controller modifications. because of this, can i ask for url where i can test it? Link to comment Share on other sites More sharing options...
4thbasement Posted May 12, 2016 Author Share Posted May 12, 2016 i know that this is not a solution, but i decribed these steps for debug purposes. Now i know where the problem is and as i already said: about 2 years ago it was common problem here :-) for example: https://www.prestashop.com/forums/topic/281415-solved-access-cms-pages-using-https/ sadly speaking it was a long time ago and i dont remember details of fix well. it was a case of .js scripts and some controller modifications. because of this, can i ask for url where i can test it? I assumed since it was a 2 year old problem, the solution would be simple The site is https://www.gotyourshoes.com, but you'd have to create an account and go through the checkout process up to where you're asked to accept the terms of service. But how / where can I edit this the first place? When inspect the source : "href="https://www.gotyourshoes.com/content/3-terms-and-conditions-of-use?content_only=1" class="iframe">" I can't find find this file anywhere... If I can get the link that leads to a pop up to simply redirect to the standard terms and conditions page, that's be a decent solution for now.. Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2016 Share Posted May 12, 2016 I assumed since it was a 2 year old problem, the solution would be simple The site is https://www.gotyourshoes.com, but you'd have to create an account and go through the checkout process up to where you're asked to accept the terms of service. But how / where can I edit this the first place? When inspect the source : "href="https://www.gotyourshoes.com/content/3-terms-and-conditions-of-use?content_only=1" class="iframe">" I can't find find this file anywhere... If I can get the link that leads to a pop up to simply redirect to the standard terms and conditions page, that's be a decent solution for now.. thank you for the link i checked it, one last question before solution what is the ps version ? (share exact number please like 1.6.1.5) Link to comment Share on other sites More sharing options...
4thbasement Posted May 12, 2016 Author Share Posted May 12, 2016 Prestashop version: 1.5.3.1; Mr. Test@test ;p Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2016 Share Posted May 13, 2016 open: controllers/front/CmsController.php there is a code: class CmsControllerCore extends FrontController { public $php_self = 'cms'; public $assignCase; public $cms; public $cms_category; at the end add: public $ssl = true; class CmsControllerCore extends FrontController { public $php_self = 'cms'; public $assignCase; public $cms; public $cms_category; public $ssl = true; and if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms))) to: if (Validate::isLoadedObject($this->cms) && ($canonicalURL = str_replace('http','https',$this->context->link->getCMSLink($this->cms)))) you can find both codes somewhere between 30-40 lines Link to comment Share on other sites More sharing options...
4thbasement Posted May 13, 2016 Author Share Posted May 13, 2016 Thank you! That worked. I'll mark the topic as solved, but if you can tell me (if it's even possible): How would I edit that order page directly at the source file? Or maybe the question should be which file is it? (So, without using prestashop), it be great . (For example, to modify that pop up Terms of Service link to link to a different page and not a pop up) Thank you again, Tom Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2016 Share Posted May 13, 2016 of course you can modify this order page, files for this page are avaialble in your theme directory: order-carrier.tpl Link to comment Share on other sites More sharing options...
Itschig Posted November 25, 2018 Share Posted November 25, 2018 Hello Vekia, I seem to have the same problem in PrestaShop 1.7 (v. 1.7.4.4), however, the solution above (edits in CmsController.php) does not work for me. Do you have any suggestions how I could fix the same problem in PS 1.7? Best, Daniel Link to comment Share on other sites More sharing options...
nadina Posted November 13, 2019 Share Posted November 13, 2019 Hi. I have the same problem and none of the changes work. I don't know how to solve it. Link to comment Share on other sites More sharing options...
nono Posted November 17, 2019 Share Posted November 17, 2019 Hello, I faced the same problem with prestashop 1.7.6.1, however for me it is not related to ssl problem that seems well handled (on docker without https and ssl it doesnt work and on live environment where https and ssl are well handle and activated it does the same an empty popup with just a cross). Indeed in this case the content is well retrieve without error from the cms page and can be displayed in a new tab easily to check but it is not added to the dom of the popup and then not displayed. I had no time to fix properly the popup itself and the js code related to it in the front asset build so i made a simple fix by replacing the link that was triggering the popup by null and then i added a simple link that open in a new tab the cms page content above the check box. To achieve that i made a final override of the class ConditionsToApproveFinderCore because the method i was interested in is private, so in the method getDefaultTermsAndConditions i sent null instead of $link to remove the link auto generated. Then in the template templates/checkout/_partials/steps/payment.tpl i added after the form the following line <form id="conditions-to-approve" method="GET"> <a href="{$link->getCMSLink('3')}" target="_blank">{l s='Conditions générales de vente' d='Shop.Theme.Global'}</a><br> I hope it helps and that we can find a way to fix properly the popup itself. Best regards, Link to comment Share on other sites More sharing options...
yanguel Posted April 26, 2020 Share Posted April 26, 2020 (edited) The problem is the id's that the cms pages do not match the values of the prestashop cms rules table. The solution is very simple, edit with a database manager, (phpmyadmin or another...) the table cms_role and put the correct id in id_cms field (you can see correct id on the cms pages) in the entries: LEGAL_CONDITIONS LEGAL_REVOCATION Edited April 26, 2020 by yanguel (see edit history) 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