Jump to content

prestashop 1.6 theme structure


Recommended Posts

hi

i am newbie in prestashop 

i'am trying to edit my prestashop theme but when i look my theme folder i dont understand how prestashop generate theme from this tpl module 

i read Theme development fundamentals for prestashop 1.6 but it not clearly tell how them structured

for example in my header.tpl there are start <body tag but this tag not close in header.tpl module and </body> tag are in another module that i dont know witch one is!

or i don't know where all this module  combined  to together  and generate my HTML page

i want clear exclamation 

Link to comment
Share on other sites

30 minutes ago, NemoPS said:

You can check out my prestashop themes crash course. You can find it on my site, nemops.com.

Anyway the body closes in footer.tpl :)

thank you for replay 

how about another things?

how and where this tpls file combined to gather and generate store index page?

 

 

Link to comment
Share on other sites

thanl you but in i dont understand layout.tpl struct

it just have HOOKs like HOOK_LEFT_COLUMN,HOOK_RIGHT_COLUMN

here is my layout:

{assign var='left_column_size' value=0}{assign var='right_column_size' value=0}
{if isset($HOOK_LEFT_COLUMN) && $HOOK_LEFT_COLUMN|trim && !$hide_left_column && isset($product_specific_pricess)}{$left_column_size=3}{/if}
{if isset($HOOK_RIGHT_COLUMN) && $HOOK_RIGHT_COLUMN|trim && !$hide_right_column && isset($product_specific_pricess)}{$right_column_size=3}{/if}
{if !empty($display_header)}{include file="$tpl_dir./header.tpl" HOOK_HEADER=$HOOK_HEADER}{/if}
{if !empty($template)}{$template}{/if}
{if !empty($display_footer)}{include file="$tpl_dir./footer.tpl"}{/if}
{if !empty($live_edit)}{$live_edit}{/if}

can you tell me where HOOKs are defined ?

 

Link to comment
Share on other sites

  • 3 weeks later...

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