Skip to content
View in the app

A better way to browse. Learn more.

Clicshopping AI, Free generative artificial intelligence e-commerce Open Source , Open Source Store Onlne

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Crearte a new header template

Featured Replies

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.

  • 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 ?

@Manupichu

Hello,

It's my first, it's possible to have an example, same simple. I would like to understand better the concept.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.