Moshhegh.Faghdan Posted June 23, 2018 Share Posted June 23, 2018 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 More sharing options...
NemoPS Posted June 23, 2018 Share Posted June 23, 2018 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 1 Link to comment Share on other sites More sharing options...
Moshhegh.Faghdan Posted June 23, 2018 Author Share Posted June 23, 2018 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 More sharing options...
NemoPS Posted June 24, 2018 Share Posted June 24, 2018 It's covered in the course, the main file is layout.tpl, all others are included withing other templates. THe body is displayed depending on the controller, check them out in controllers/front 1 Link to comment Share on other sites More sharing options...
Moshhegh.Faghdan Posted June 24, 2018 Author Share Posted June 24, 2018 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 More sharing options...
NemoPS Posted June 26, 2018 Share Posted June 26, 2018 Again, the course covers it. They are variables assigned in frontcontroller.php. Others are defined elsewhere, depending on the controller (page). Link to comment Share on other sites More sharing options...
Moshhegh.Faghdan Posted June 28, 2018 Author Share Posted June 28, 2018 i am searching my host public_html but there is no frontcontroller.php!!! Link to comment Share on other sites More sharing options...
NemoPS Posted July 2, 2018 Share Posted July 2, 2018 classes/controller should be the folder Link to comment Share on other sites More sharing options...
Moshhegh.Faghdan Posted July 5, 2018 Author Share Posted July 5, 2018 On 7/2/2018 at 5:55 PM, NemoPS said: classes/controller should be the folder what about scripts? i am searching for shopping cart ajax functionality but no found any js script Link to comment Share on other sites More sharing options...
NemoPS Posted July 21, 2018 Share Posted July 21, 2018 That's from the blockcart module. Theme folder /js/modules/blockcart/ajax-cart.js Yeah, it's not uniform and doesn't make much sense for it to be there. 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