Jump to content

Crearte a new header template

Recommended Posts

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.

Link to post

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 :

 *  @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>
  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>
  } 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>  


  • Thanks 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use