PrestaShop Forums: [SOLVED] How do I put the term and condition in a thickbox in the authentication.php - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[SOLVED] How do I put the term and condition in a thickbox in the authentication.php


[SOLVED] How do I put the term and condition in a thickbox in the authentication.php

#1 metta

    PrestaShop Apprentice

  • 20 Jul 2009
  • Members
  • PipPip
  • 116 posts

Posted 07 January 2010 - 03:59 AM

I want to put the term and condition (CMS3) in a thick box in the authentication.php under the creat an account block. I copied the codes from the order page as follow:


{l s='(read)'}


But I don't get the thickbox pop up effect, I only got a page that use up the whole screen. What am I missing?


Do I need to add something to it?

Thank you for the help.

#2 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 07 January 2010 - 05:23 AM

I think you need to add the following before including header.php on line 207 of authentication.php:


$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#3 metta

    PrestaShop Apprentice

  • 20 Jul 2009
  • Members
  • PipPip
  • 116 posts

Posted 07 January 2010 - 07:12 AM

Hi Rocky,

I put the codes and I only got a full back screen. The pop up effect and the cms3 are not loaded.

Thank you ssooooo much for the help.

#4 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 07 January 2010 - 07:41 AM

Sorry, forgot that you also need to add the following to the top of authentication.tpl in your theme's directory:


{include file=$tpl_dir./thickbox.tpl}

Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#5 metta

    PrestaShop Apprentice

  • 20 Jul 2009
  • Members
  • PipPip
  • 116 posts

Posted 13 January 2010 - 09:14 PM

I finally got a chance to test it. It works great. Thank you very much.

#6 Octahedron

    PrestaShop Apprentice

  • 24 Jun 2009
  • Members
  • PipPip
  • 38 posts
  • Location:Wrocław, Poland

Posted 03 March 2010 - 01:10 PM

Hi there,

I am trying to do the same with my identity.tpl (to display Privacy Policy in a thickbox) but I don't really understand where to put the code:

$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

Please can you advise where exactly I should place the above?
Many thanks!!

#7 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 03 March 2010 - 01:39 PM

Put it before line 81 (the include header.php line) of identity.php.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#8 Octahedron

    PrestaShop Apprentice

  • 24 Jun 2009
  • Members
  • PipPip
  • 38 posts
  • Location:Wrocław, Poland

Posted 03 March 2010 - 02:27 PM

Hey rocky, many thanks for your prompt response!

However, I still don’t get what you mean…

I’m on 1.2.5.0 version and I do not have such line in my identity.tpl that includes header.php

Do I need to add some code within my header.php file then? If so, what part of the code and where exactly?

What about this part of code?

{include file=$tpl_dir./thickbox.tpl}


Where do I place this one?

I can't paste the full content of my identity.tpl file here, but that's how it looks like from line 77:

                



<input type="checkbox" id="newsletter" name="newsletter" value="1" {if $smarty.post.newsletter == 1} checked="checked"{/if} />



<input type="checkbox" name="optin" id="optin" value="1" {if $smarty.post.optin == 1} checked="checked"{/if} />



<input type="submit" class="button" name="submitIdentity" value="{l s='Save'}" />



</form>


<!--{l s='Click HERE for our Privacy Policy'}-->
Click HERE to read our Privacy Policy


{/if}




I'm sure it must be something very easy to do but I just didn't catch up yet.

Thank you for your understanding and further explanations!

#9 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 03 March 2010 - 03:01 PM

You are looking at the wrong file. It is identity.php, not identity.tpl. The file identity.php is in the root directory of Prestashop.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

#10 Octahedron

    PrestaShop Apprentice

  • 24 Jun 2009
  • Members
  • PipPip
  • 38 posts
  • Location:Wrocław, Poland

Posted 03 March 2010 - 03:22 PM

excellent! works perfect now!! :)
many thanks rocky!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users