Jump to content
4thbasement

[Resolved] Accepting terms of service Pop Up is blank

Recommended Posts

post-1241385-0-23633900-1462994255_thumb.jpgHi 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 by 4thbasement (see edit history)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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? :)

Share this post


Link to post
Share on other sites

most important question:

while you order something - you see https in address bar?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 by 4thbasement (see edit history)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

of course you can modify this order page, 

files for this page are avaialble in your theme directory: order-carrier.tpl

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More