mohamedali Posted February 18, 2014 Share Posted February 18, 2014 hi all, i am new to ps and i installed ps and it works fine.. when installed a new theme "leo_sportshoes_template_v1560", it raised some error messages such as, Warning: Copy/Paste your errors if you want to manually set the image type (in the "Images" page under the "Preferences" menu):Some kind of image could not be added because they exists. Here's the list: Name image type: small_default (Width: 45px, Height: 45px) Name image type: medium_default (Width: 58px, Height: 58px) Name image type: large_default (Width: 264px, Height: 264px) Name image type: thickbox_default (Width: 600px, Height: 600px) Name image type: category_default (Width: 250px, Height: 75px) Name image type: home_default (Width: 124px, Height: 124px) Name image type: scene_default (Width: 520px, Height: 189px) Name image type: m_scene_default (Width: 161px, Height: 58px) Name image type: product (Width: 225px, Height: 135px) Name image type: manufac (Width: 145px, Height: 70px) Name image type: new_product (Width: 220px, Height: 180px). after that i choose default theme as main theme, the newly installed theme merged with my default themes . please help...thanks in advance... Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 no worries, this message is not an error, its just an internal prestashop message which informs that you've got these imagetypes defined. you can manage list of messages under preferences > images tab. and regarding to your screenshot. it's because your leo theme installed nondefault module, remove these modules and your default theme will work as before. 1 Link to comment Share on other sites More sharing options...
mohamedali Posted February 20, 2014 Author Share Posted February 20, 2014 oh thanks for your answer.. then i unable to found the function "displayHome" function 'Hook::exec('displayHome'). can u tell me where it is located?. Link to comment Share on other sites More sharing options...
vekia Posted February 20, 2014 Share Posted February 20, 2014 displayhome is a hook, it's a part of IndexController inside initContent function public function initContent() { parent::initContent(); $this->context->smarty->assign('HOOK_HOME', Hook::exec('displayHome')); $this->setTemplate(_PS_THEME_DIR_.'index.tpl'); } but i think that this isn't what you're looking for... 1 Link to comment Share on other sites More sharing options...
mohamedali Posted February 21, 2014 Author Share Posted February 21, 2014 yes i would like to see the content of displayHome. something like.. function displayHome() { ------------------------ --------------------- } Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 i have no idea what you exactly expect, can you elaborate, please? Link to comment Share on other sites More sharing options...
mohamedali Posted February 26, 2014 Author Share Posted February 26, 2014 hai vekia, in ps default theme, the front office index page has the jquery slider. i have to fix the slider for all the pages next to company logo. so that i need the index page template to cut the slider code. in the themes/index.tpl the {$hook_home} smarty object only is there. how do i find the index page template code.. please help... Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 hello you're looking for these files: header.tpl footer.tpl Link to comment Share on other sites More sharing options...
mohamedali Posted February 26, 2014 Author Share Posted February 26, 2014 if you unable to understand my questions , sorry for my inconvenience English.. i need to see the code which combine modules for each pages. homepage. leftcolumn,right column,slider,cart,featured products etc.... product page. leftcolumn,right column,cart,products etc.... something i think like. function displayHome() { left.tpl right.tpl featured_prod.tpl } function productHome() { left.tpl right.tpl product.tpl } Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 well, now im confused and still don't know what you exactly expect. module hook functions aren't load theme .tpl files, only module .tpl files for example left column is defined in header.tpl file, not in module files etc. 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