Jump to content

modifying {$link_conditions}


Asone

Recommended Posts

Hi everyone,

 

i'm writing this down due to the fact i didn't find any answer to my problem on googler nor on IRC channels dedicated to Prestashop.

 

In the order-carrier.tpl file that is given in the default theme, on the line 268 there's a call to the variable {$link_conditions} wich generates a link to TOS/CGV.

 

This link contains a parameter wich is "content_only" with a default value set as 1 .

i'd like to change this parameter to get content_only=0 so when clicking on the generated link i get the CGVs between header&footer parts of the website.

 

I've been looking around config files, theme config file, others .tpl files of the template but couldn't find where i can change this.

 

If any of you have an idea about how to do that i'd be really grateful :)

 

Thanks a lot,

 

Asone.

 

P.S : if this thread is in the wrong section, feel free to notify me or move it.

Edited by Asone (see edit history)
Link to comment
Share on other sites

okay

 

in this case you have to:

 

open the file controllers/front/ParentOrderController.php

 

you've got there (near line 500):

 

 if (!strpos($this->link_conditions, '?'))
  $this->link_conditions .= '?content_only=1';
 else
  $this->link_conditions .= '&content_only=1';

 

change the value of the content_only to: content_only=0

 

voila ;)

Link to comment
Share on other sites

  • 1 year later...

Hello!

 

I am needing some help with this.

 

I erased the terms and conditions CMS and then created it again. The problem is that in the order steps, when it asks to confrm the Terms, the link to read them gives a 404 error. I would like to know  where can I fix this.

 

Thanks a lot in advance!

Link to comment
Share on other sites

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