grouppda Posted April 27, 2020 Share Posted April 27, 2020 Is it possible to place the navbar under the storelogo ? Now I have the navbar then the storelogo and next the breadcrump Link to comment Share on other sites More sharing options...
burt Posted April 27, 2020 Share Posted April 27, 2020 You would create a new Header module that outputs the navbar content. You would then turn this on and turn off the core Navbar module. OR You would create a new Navigation Module that outputs the logo. You then turn this on and turn off the core Logo module. Link to comment Share on other sites More sharing options...
grouppda Posted April 29, 2020 Author Share Posted April 29, 2020 The easiest way... in catalog/includes/templatetop.php search for : echo $oscTemplate->getContent('navigation'); <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License */ $oscTemplate->buildBlocks(); $OSCOM_Hooks->call('siteWide', 'injectRedirects'); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html> <html<?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectSiteStart'); echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart'); // NAVBAR ABOVE HEADERLOGO, show = remove // in the echo line // echo $oscTemplate->getContent('navigation'); // END NAVBAR ABOVE HEADERLOGO ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?> pt-2"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyWrapperStart'); echo $OSCOM_Hooks->call('siteWide', 'injectBeforeHeader'); require('includes/header.php'); // NAVBAR UNDER HEADERLOGO, hide = put // in the echo line echo $oscTemplate->getContent('navigation'); echo "<br>"; // END NAVBAR UNDER HEADERLOGO echo $OSCOM_Hooks->call('siteWide', 'injectAfterHeader'); ?> <div class="row"> <div id="bodyContent" class="col order-1 order-md-6"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyContentStart'); ?> Link to comment Share on other sites More sharing options...
burt Posted April 29, 2020 Share Posted April 29, 2020 If that shortcut works for you, great. For anyone else reading this in the future, please *attempt* (ie, have a go at building a simple module) do it the right way. Link to comment Share on other sites More sharing options...
LeeFoster Posted April 29, 2020 Share Posted April 29, 2020 2 hours ago, grouppda said: The easiest way... in catalog/includes/templatetop.php search for : echo $oscTemplate->getContent('navigation'); <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License */ $oscTemplate->buildBlocks(); $OSCOM_Hooks->call('siteWide', 'injectRedirects'); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html> <html<?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectSiteStart'); echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyStart'); // NAVBAR ABOVE HEADERLOGO, show = remove // in the echo line // echo $oscTemplate->getContent('navigation'); // END NAVBAR ABOVE HEADERLOGO ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?> pt-2"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyWrapperStart'); echo $OSCOM_Hooks->call('siteWide', 'injectBeforeHeader'); require('includes/header.php'); // NAVBAR UNDER HEADERLOGO, hide = put // in the echo line echo $oscTemplate->getContent('navigation'); echo "<br>"; // END NAVBAR UNDER HEADERLOGO echo $OSCOM_Hooks->call('siteWide', 'injectAfterHeader'); ?> <div class="row"> <div id="bodyContent" class="col order-1 order-md-6"> <?php echo $OSCOM_Hooks->call('siteWide', 'injectBodyContentStart'); ?> This is possibly going to get over written by a future update, I would do as @burt suggested and create a *new* module. All you really need to do is take the current header module files, make some minor changes and drop them into the navigation folder Link to comment Share on other sites More sharing options...
grouppda Posted April 29, 2020 Author Share Posted April 29, 2020 this was the quickest way at this moment, I tried to add a new module but the page stucks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.