kubo12312 Posted March 5, 2017 Share Posted March 5, 2017 Hi, I have two modules (New Products and Featured Products). I want to create this: How to edit those two modules to have them on one page? Thanks Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 You want to display it not in tab but all visible? You need to unhook this modules from hook displayHomeTab and hook displayHomeTabContent and hook it to hook displayHome. Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 I cant hook Block with news to displayHome Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 Probably this module not support this hook, you need to add this hook in blocknewsproduct.php or you can do this in other way. This two modules hook to displayHomeTab and unhook from displayHomeTabContent and displayHome. In file index.tpl add this code: {if !empty($HOOK_HOME_TAB_CONTENT)} <div class="block col-xs-12 col-sm-12"> {$HOOK_HOME_TAB_CONTENT} </div> {/if} After that clear cache and force compilation. Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 Not working Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 If you do everything correct it has to work. Pleas tell as what are you do step by step, what are have in hook displayHomeTab and DispalyHomeTabContent, how is now look your index.tpl file, did you clear cache and did you force compilation? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 Some screenshots index.tpl: Clean cache and force compilation Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 I had to hook it to displayHomeTabContent and it works. Thank you Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 How to add headlines? Above the products i want to have New Products and Featured Products. Thanks Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 In blocknewproduct.tpl for example before "if isset product" add: <h3>{l s='New Products' mod='blocknewproducts'}</h3> in other modules is simmilar. Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 Nothing happened Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 Make sure you do it in correct file, and you force compilation after every change. Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 I am sure that it is in correct file and i delete cache and make force compilation Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 Could you show path to file? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 I changed it in modules/blocknewpructs/blocknewproducts.tpl and also tried in themes/default-bootstrap/modules/blocknewproducts/blocknewproducts.tpl Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 If you use default-bootstrap theme second path is correct, any change in this file are visible in front? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 No change Link to comment Share on other sites More sharing options...
endriu107 Posted March 5, 2017 Share Posted March 5, 2017 Did you force compilation and clear cache after every change? Link to comment Share on other sites More sharing options...
kubo12312 Posted March 5, 2017 Author Share Posted March 5, 2017 Yes I did Link to comment Share on other sites More sharing options...
kubo12312 Posted March 6, 2017 Author Share Posted March 6, 2017 What do you think? Why is not it working? Link to comment Share on other sites More sharing options...
endriu107 Posted March 6, 2017 Share Posted March 6, 2017 If you don't see any change in this file on front it means you edit wrong file or you do not compile theme after change. There is no other possibility. Link to comment Share on other sites More sharing options...
kubo12312 Posted March 7, 2017 Author Share Posted March 7, 2017 This is file blocknewproducts.tpl in /themes/default-bootstrap/modules/blocknewproducts 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