Orphelia Posted March 19, 2019 Share Hello, Could you tell the process to create a new header template. Quote Link to post
Manupichu Posted March 19, 2019 Share The best way is to use the default multi template module. lot of thing is incorporated inside. After you can take all or not ! You can, inside the template directory, to create new file and include your own html approach. If you need a specific information, in this case, it's better to create a new module. Quote Link to post
Orphelia Posted March 19, 2019 Author Share If I understand well, if it's a simple modification, you create a new template, if it's a more complex header, you create a new module. Exact ? Quote Link to post
Foster Posted March 21, 2019 Share @Manupichu Hello, It's my first, it's possible to have an example, same simple. I would like to understand better the concept. Quote Link to post
Manupichu Posted March 22, 2019 Share Yes, of course A very simple approach. Inside modules_header/template/ add this files below After go in your administration Design/Layout/Header, edit your multi-template option and select your new template This example displays the logo and the login link and log off link if you are connected. create a file: my_new_header_test.php add this inside : <?php /** * * @copyright 2008 - https://www.clicshopping.org * @Brand : ClicShopping(Tm) at Inpi all right Reserved * @Licence GPL 2 & MIT * @licence MIT - Portion of osCommerce 2.4 * @Info : https://www.clicshopping.org/forum/trademark/ * */ use ClicShopping\OM\HTML; use ClicShopping\OM\CLICSHOPPING; ?> <div class="col-md-<?php echo $content_width; ?>"> <div class="row"> <div class="separator"></div> <span class="col-md-4"><?php echo $logo_header; ?><br /><br /></span> <?php if (!$CLICSHOPPING_Customer->isLoggedOn()) { ?> <span class="col-md-8 text-md-right"><?php echo HTML::link(CLICSHOPPING::link(null, 'Account&Login'), CLICSHOPPING::getDef('modules_header_multi_template_create_account')); ?></span> <?php } else { ?> <span class="col-md-8 text-md-right"><?php echo HTML::link(CLICSHOPPING::link(null, 'Account&LogOff'), CLICSHOPPING::getDef('modules_header_multi_template_account_logoff'));?></span> <?php } ?> </div> </div> 1 Quote Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.