Managed Server
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Navigations Links bearbeiten im Headerereich

    Swiftice

    • Neu im Forum
    • Beiträge: 2
    Guten Tag Zusammen
    Eher gesagt guten Morgen.

    Zu erst einmal entschuldige ich mich, falls ich hier im falschen Bereich bin. auch die Suche habe ich genutz leider ohne Erfolg.
    Aber ich suche seit Stunden die datei wo ich die Navigations Links im Header ändere.

    Gemeint sind Startseite KAsse Warenkorp mein Konto
    Gerne würde ich auch wissen, wo in welcher der Tausend php Daeien ich diese ändern ggf welche zufügen kann.

    Es geht um diese links
    Screen: HIer oder im Anhang: https://picload.org/image/rgcgoall/linksheader.png

    p.S Es muss doch die möglichkeit geben diese anzupassen oder z.b ein Navigations Link hizuzufügen z.b Partner oder Link us was auch immer.

    Wäre nett wenn mir einer helfen könnte diese Datei zu finden :)

    Gruß Marcel

    Linkback: https://www.modified-shop.org/forum/index.php?topic=35059.0

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Re: Navigations Links bearbeiten im Headerereich
    Antwort #1 am: 22. Mai 2016, 01:31:01
    In den Dateien 'includes/header.php' und 'templates/xtc5/index.html' kann man diese Links bearbeiten und wenn du neue hinzufügen willst kann dir dieser Link helfen -> topmenu kategorien definieren

    Gruss
    Hanspeter

    Swiftice

    • Neu im Forum
    • Beiträge: 2
    Re: Navigations Links bearbeiten im Headerereich
    Antwort #2 am: 22. Mai 2016, 01:39:54
    GUten Morgen.

    Ich danke dir aufjedenfall für die Schnelle Antwort.

    Aber in der inkludes/header.php ist kein link vorhanden.

    hier mal die Inkludes/header.php als php Code ich finde da nirgends einen Link der z-b auf die Startseite oder auf Kasse hinweist.

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: header.php 3808 2012-10-28 20:39:04Z web28 $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(header.php,v 1.40 2003/03/14); www.oscommerce.com
       (c) 2003 nextcommerce (header.php,v 1.13 2003/08/17); www.nextcommerce.org
       (c) 2006 XT-Commerce (header.php 1140 2005-08-10)

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c)  Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    //SET SHOP OFFLINE 503 STATUS CODE
    require_once(DIR_FS_INC . 'xtc_get_shop_conf.inc.php');

    $shop_is_offline = get_shop_offline_status();
    if ($shop_is_offline) {
      header("HTTP/1.1 503 Service Temporarily Unavailable");
      header("Status: 503 Service Temporarily Unavailable");
    }
    //SET 410 STATUS CODE
    elseif (isset($site_error)
            && ($site_error === CATEGORIE_NOT_FOUND
                || $site_error === TEXT_PRODUCT_NOT_FOUND
                || $site_error === TEXT_CONTENT_NOT_FOUND
                || $site_error === MANUFACTURER_NOT_FOUND
                || $site_error === TEXT_SITE_NOT_FOUND
                )
            )
    {
      header("HTTP/1.0 410 Gone");
      header("Status: 410 Gone"); // FAST CGI
    }

    foreach(auto_include(DIR_FS_CATALOG.'includes/extra/header/header_begin/','php') as $file) require_once ($file);

    defined('TEMPLATE_RESPONSIVE') or define('TEMPLATE_RESPONSIVE', 'false');
    defined('TEMPLATE_HTML_ENGINE') or define('TEMPLATE_HTML_ENGINE', 'xhtml');
    ?>
    <!DOCTYPE html<?php echo ((TEMPLATE_HTML_ENGINE == 'xhtml') ? ' PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"' : ''); ?>>
    <html<?php echo ((TEMPLATE_HTML_ENGINE == 'xhtml') ? ' '.HTML_PARAMS : ' lang="'.$_SESSION['language_code'].'"'); ?>>
    <head>
    <?php include(DIR_WS_MODULES.FILENAME_METATAGS); ?>
    <?php include(DIR_WS_MODULES.'favicons.php'); ?>
    <?php
    /*
      The following copyright announcement is in compliance
      to section 2c of the GNU General Public License, and
      thus can not be removed, or can only be modified
      appropriately.

      Please leave this comment intact together with the
      following copyright announcement.
    */

    ?>
    <!--
    =========================================================
    modified eCommerce Shopsoftware (c) 2009-2013 [www.modified-shop.org]
    =========================================================

    modified eCommerce Shopsoftware offers you highly scalable E-Commerce-Solutions and Services.
    The Shopsoftware is redistributable under the GNU General Public License (Version 2) [http://www.gnu.org/licenses/gpl-2.0.html].
    based on: E-Commerce Engine Copyright (c) 2006 xt:Commerce, created by Mario Zanier & Guido Winger and licensed under GNU/GPL.
    Information and contribution at http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

    =========================================================
    Please visit our website: www.modified-shop.org
    =========================================================
    -->
    <meta name="generator" content="(c) by <?php echo PROJECT_VERSION; ?> 7D0 http://www.modified-shop.org" />
    <?php
    if (DIR_WS_BASE == '') {
      echo '<base href="'.(($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER).DIR_WS_CATALOG.'" />';
    }
    if (is_file('templates/'.CURRENT_TEMPLATE.'/css/general.css.php')) {
      require('templates/'.CURRENT_TEMPLATE.'/css/general.css.php');
    } else { //Maintain backwards compatibility for older templates
      echo '<link rel="stylesheet" type="text/css" href="templates/'.CURRENT_TEMPLATE.'/stylesheet.css" />';
    }

    // require theme based javascript
    require('templates/'.CURRENT_TEMPLATE.'/javascript/general.js.php');

    // require additional javascript
    switch(basename($PHP_SELF)) {

      case FILENAME_CHECKOUT_PAYMENT:
          require('includes/form_check.js.php');
          echo $payment_modules->javascript_validation();
        break;

      case FILENAME_CHECKOUT_SHIPPING:
          require('includes/form_check.js.php');
          echo $shipping_modules->javascript_validation();
        break;

      case FILENAME_CREATE_ACCOUNT:
      case FILENAME_CREATE_GUEST_ACCOUNT:
      case FILENAME_ACCOUNT_PASSWORD:
      case FILENAME_ACCOUNT_EDIT:
      case FILENAME_CHECKOUT_PAYMENT:
      case FILENAME_CHECKOUT_SHIPPING_ADDRESS:
      case FILENAME_CHECKOUT_PAYMENT_ADDRESS:
      case FILENAME_ADVANCED_SEARCH:
      case FILENAME_PRODUCT_REVIEWS_WRITE:
          require('includes/form_check.js.php');
        break;

      case FILENAME_ADDRESS_BOOK_PROCESS:
          if (isset($_GET['delete']) === false) {
            include('includes/form_check.js.php');
          }
        break;

    }

    foreach(auto_include(DIR_FS_CATALOG.'includes/extra/header/header_head/','php') as $file) require_once ($file);
    ?>
    </head>
    <body>
    <?php

    // include needed functions
    require_once('inc/xtc_output_warning.inc.php');
    require_once('inc/xtc_parse_input_field_data.inc.php');

    // check if the 'install' directory exists, and warn of its existence
    if (WARN_INSTALL_EXISTENCE == 'true') {
      if (is_dir(DIR_FS_CATALOG . '/' . DIR_MODIFIED_INSTALLER)) {
        xtc_output_warning(sprintf(WARNING_INSTALL_DIRECTORY_EXISTS, DIR_FS_CATALOG . DIR_MODIFIED_INSTALLER));
      }
    }

    // check if the configure.php file is writeable
    if (WARN_CONFIG_WRITEABLE == 'true') {
      if ((is_file(DIR_WS_INCLUDES . 'configure.php')) && (is_writeable(DIR_WS_INCLUDES . 'configure.php'))) {
        xtc_output_warning(sprintf(WARNING_CONFIG_FILE_WRITEABLE, DIR_WS_INCLUDES . 'configure.php'));
      }
      if ((is_file(DIR_WS_INCLUDES . 'local/configure.php')) && (is_writeable(DIR_WS_INCLUDES . 'local/configure.php'))) {
        xtc_output_warning(sprintf(WARNING_CONFIG_FILE_WRITEABLE, DIR_WS_INCLUDES . 'local/configure.php'));
      }
    }

    // check if the session folder is writeable
    if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
      if (STORE_SESSIONS == '') {
        if (!is_dir(xtc_session_save_path())) {
          xtc_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);
        } elseif (!is_writeable(xtc_session_save_path())) {
          xtc_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);
        }
      }
    }

    // check session.auto_start is disabled
    if ( (WARN_SESSION_AUTO_START == 'true') && (function_exists('ini_get')) ) {
      if (ini_get('session.auto_start') == '1') {
        xtc_output_warning(WARNING_SESSION_AUTO_START);
      }
    }

    if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
      if (!is_dir(DIR_FS_DOWNLOAD)) {
        xtc_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);
      }
    }

    $smarty->assign('navtrail', $breadcrumb->trail(' &raquo; '));
    if (isset($_SESSION['customer_id'])) {
            $smarty->assign('logoff',xtc_href_link(FILENAME_LOGOFF, '', 'SSL'));
    } else {
            $smarty->assign('login',xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
            $smarty->assign('create_account',xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
    }
    $smarty->assign('index',xtc_href_link(FILENAME_DEFAULT));
    if ((isset($_SESSION['customer_id'])
         && $_SESSION['customers_status']['customers_status_id'] != DEFAULT_CUSTOMERS_STATUS_ID_GUEST
         ) || GUEST_ACCOUNT_EDIT == 'true'
        )
    {
      $smarty->assign('account',xtc_href_link(FILENAME_ACCOUNT, '', 'SSL'));
    }
    $smarty->assign('cart',xtc_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
    $smarty->assign('checkout',xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $smarty->assign('store_name', encode_htmlspecialchars(TITLE));

    if (isset($_GET['error_message']) && xtc_not_null($_GET['error_message'])) {
      $smarty->assign('error', get_message('error_message'));
    }
    if (isset($_GET['info_message']) && xtc_not_null($_GET['info_message'])) {
      $smarty->assign('error', get_message('info_message'));
    }

    ## header_body_extra

    // SHOP OFFLINE INFO
    if ($shop_is_offline) {
      $smarty->assign('language', $_SESSION['language']);
      $smarty->assign('shop_offline_msg', xtc_get_shop_conf('SHOP_OFFLINE_MSG'));  
      $smarty->display(CURRENT_TEMPLATE.'/offline.html');  
      exit();
    }

    foreach(auto_include(DIR_FS_CATALOG.'includes/extra/header/header_body/','php') as $file) require_once ($file);
    ## header_body_extra
    ?>

    HIer auch mal die index.php aus dem template

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="index"}
    <div id="wrap">
      <div id="header">
        <div id="logo"><img src="{$tpl_path}img/spacer.gif" width="400" height="115" alt="{$store_name}" /></div>
        <div id="search">{if isset($box_SEARCH)}{$box_SEARCH}{/if}</div>
      </div>
      <div id="topmenuwrap">
        <ul id="topmenu">
          <li><a href="{$index}">{if isset($LINK_INDEX)}{$LINK_INDEX}{else}{#link_index#}{/if}</a></li>
         <li><a href="{$cart}">{#link_cart#}</a></li>
         {if isset($account)}
            <li><a href="{$account}">{#link_account#}</a></li>
         {/if}
          {if $smarty.session.customers_status.customers_status_id == '1'}
            <li><a href="{$create_account}">{#new_customer#}</a></li>
         {/if}
          <li><a href="{$checkout}">{#link_checkout#}</a></li>
         {if isset($smarty.session.customer_id)}
            <li><a href="{$logoff}">{#link_logoff#}</a></li>
         {else}
            <li><a href="{$login}">{#link_login#}</a></li>
         {/if}
        </ul>
        <div id="languages">{if isset($box_LANGUAGES)}{$box_LANGUAGES}{/if}</div>
      </div>
      <div id="breadcrumb">{if isset($navtrail)}{$navtrail}{/if}</div>
      <div id="contentwrap">
        {if (!strstr($smarty.server.PHP_SELF, 'checkout')) || (strstr($smarty.server.PHP_SELF, 'checkout_express'))}
          <div id="leftcol">
            {if isset($box_CATEGORIES)}{$box_CATEGORIES}{/if}
            {if isset($box_ADD_QUICKIE)}{$box_ADD_QUICKIE}{/if}
            {if isset($box_CONTENT)}{$box_CONTENT}{/if}
            {if isset($box_INFORMATION)}{$box_INFORMATION}{/if}
            {if isset($box_LAST_VIEWED)}{$box_LAST_VIEWED}{/if}
            {if isset($box_REVIEWS)}{$box_REVIEWS}{/if}
            {if isset($box_SPECIALS)}{$box_SPECIALS}{/if}
            {if isset($box_WHATSNEW)}{$box_WHATSNEW}{/if}
            {if isset($box_HISTORY)}{$box_HISTORY}{/if}
          </div>
        {/if}
        <div id="content{if (strstr($smarty.server.PHP_SELF, 'checkout')) && (!strstr($smarty.server.PHP_SELF, 'checkout_express'))}full{/if}">
          {if $home}
            {if isset($BANNER)}<div class="banner_item">{$BANNER}</div>{/if}
          {/if}
          {if isset($main_content)}{$main_content}{/if}
        </div>
        {if (!strstr($smarty.server.PHP_SELF, 'checkout')) || (strstr($smarty.server.PHP_SELF, 'checkout_express'))}
          <div id="rightcol">
            {if isset($box_CART)}{$box_CART}{/if}
            {if isset($box_WISHLIST)}{$box_WISHLIST}{/if}
            {if isset($box_LOGIN)}{$box_LOGIN}{/if}
            {if isset($box_ADMIN)}{$box_ADMIN}{/if}
            {if isset($box_NEWSLETTER)}{$box_NEWSLETTER}{/if}
            {if isset($box_BESTSELLERS)}{$box_BESTSELLERS}{/if}
            {if isset($box_INFOBOX)}{$box_INFOBOX}{/if}
            {if isset($box_CURRENCIES)}{$box_CURRENCIES}{/if}
            {if isset($box_MANUFACTURERS_INFO)}{$box_MANUFACTURERS_INFO}{/if}
            {if isset($box_MANUFACTURERS)}{$box_MANUFACTURERS}{/if}
            {if isset($box_TRUSTEDSHOPS)}{$box_TRUSTEDSHOPS}{/if}
          </div>
        {/if}
      </div>
      <p class="footer">{$smarty.const.TITLE} &copy; {$smarty.now|date_format:"%Y"} | Template &copy; 2009-{$smarty.now|date_format:"%Y"} by <span class="cop_magenta">mod</span><span class="cop_grey">ified eCommerce Shopsoftware</span></p>
    </div>
    {if ($smarty.const.TRACKING_COUNT_ADMIN_ACTIVE == 'true' && $smarty.session.customers_status.customers_status_id == '0') || $smarty.session.customers_status.customers_status_id != '0'}
      {if $smarty.const.TRACKING_PIWIK_ACTIVE == 'true'}
        {piwik url=$smarty.const.TRACKING_PIWIK_LOCAL_PATH id=$smarty.const.TRACKING_PIWIK_ID goal=$smarty.const.TRACKING_PIWIK_GOAL}
      {/if}
      {if $smarty.const.TRACKING_GOOGLEANALYTICS_ACTIVE == 'true'}
        {googleanalytics account=$smarty.const.TRACKING_GOOGLEANALYTICS_ID}
      {/if}
      {if $smarty.const.TRACKING_FACEBOOK_ACTIVE=='true'}
        {facebook id=$smarty.const.TRACKING_FACEBOOK_ID}
      {/if}
    {/if}

    dort sind allerdings nirgends link die z.b auf checkout_shipping.php as in dem Fall kasse wäre hinweisen. Kann natürlich auch sein das ich einfach zu dumm dafür bin :)

    Mantronix

    • Fördermitglied
    • Beiträge: 155
    Re: Navigations Links bearbeiten im Headerereich
    Antwort #3 am: 22. Mai 2016, 02:04:45
    Evtl hilft dir das weiter?

    Topmenu anpassen

    Gruß

    hpzeller

    • Experte
    • Beiträge: 4.129
    • Geschlecht:
    Re: Navigations Links bearbeiten im Headerereich
    Antwort #4 am: 22. Mai 2016, 09:23:30
    [...]
    dort sind allerdings nirgends link die z.b auf checkout_shipping.php as in dem Fall kasse wäre hinweisen. Kann natürlich auch sein das ich einfach zu dumm dafür bin :)

    Doch hier in der 'inkludes/header.php' wird die Linkadresse zur 'checkout_shipping.php' von PHP zusammengebaut

    Code: PHP  [Auswählen]
    $smarty->assign('checkout',xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

    und hier in der 'templates/xtc5/index.html' wird die Linkadresse von Smarty zum Link "Kasse" weiter verarbeitet

    Code: XML  [Auswählen]
    <li><a href="{$checkout}">{#link_checkout#}</a></li>

    und so sieht dann der ausgegebene Link im Quellcode des Browsers aus

    Code: XML  [Auswählen]
    <li><a href="http://domain.tld/checkout_shipping.php">Kasse</a></li>

    Weiter Infos:

    Handbuch PHP -> http://www.php.net/manual/de/

    Handbuch Smarty2 template engine -> http://www.smarty.net/docsv2/de/

    PS:
    Ich denke nicht das du zu dumm bist, aber du hast wohl kaum Erfahrung mit PHP, der Smarty template engine und  diesem Shopsystem.

    Gruss
    Hanspeter
    Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware
    5 Antworten
    3887 Aufrufe
    15. September 2009, 15:41:10 von maelektro
    6 Antworten
    4065 Aufrufe
    26. März 2018, 11:44:53 von karsta.de
    8 Antworten
    4265 Aufrufe
    09. März 2011, 21:18:20 von AllyG
    2 Antworten
    3164 Aufrufe
    01. Dezember 2013, 12:18:05 von web28