March 19, 20197 yr 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.
March 19, 20197 yr Author 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 ?
March 21, 20197 yr @Manupichu Hello, It's my first, it's possible to have an example, same simple. I would like to understand better the concept.
March 22, 20197 yr 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>
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.