Ankündigung

Einklappen
Keine Ankündigung bisher.

404 Fehler nach Löschung eines Artikels aus dem Warenkorb

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    404 Fehler nach Löschung eines Artikels aus dem Warenkorb

    Hallo Zusammen,

    es erscheint ein 404 Fehler nachdem man einen Artikel aus dem Warenkorb löscht und auf den Button "Weiter einkaufen" kllickt.
    Man wird dann auf /page_not_found weitergeleitet.

    Hat jemand eine Idee woran das liegen kann?

    #2
    404 Fehler nach Löschung eines Artikels aus dem Warenkorb

    Hat niemand eine Idee oder das Problem auch schon gehabt?

    Kommentar


      #3
      Ohne einen Link zu diesem Shop ist es schwer etwas Sinnvolles dazu zu sagen.

      Kommentar


        #4
        404 Fehler nach Löschung eines Artikels aus dem Warenkorb

        sorry, anbei der Link: schnell-geputzt.de

        Kommentar


          #5
          Habe das jetzt ins SEO Unterforum verschoben, da das ein Problem des Moduls Ultimate SEO URls ist.
          Überprüfe unter Konfiguration > Mein Shop > PA-DSS Ajax Checkout
          Ultimate SEO kommt mit der Einstellung 1 nicht klar, falls die auf 1 steht, stelle auf 0 (Non Compliant)
          Danach unter Konfiguration > Ultimate SEO URL > Reset URL Cache auf true stellen um den URL Cache zu leeren
          Ist es danach ok?

          Kommentar


            #6
            404 Fehler nach Löschung eines Artikels aus dem Warenkorb

            Das SEO Plugin nimmt die Einstellung "Reset URL Cache" nicht auf true. Es bleibt immer auf false.

            Kommentar


              #7
              Ich habe mir mal Deinen Shop angeschaut, konnte aber den angegebenen Fehler nicht reproduzieren. Dafür konnte ich aber feststellen, dass jeder Hinweis geschweige denn ein Backlink zu Zen Cart vorhanden ist. Es sollte eine Selbstverständlichkeit sein, gerade wenn man immer wieder die Hilfe der Community einfordert, dass man zumindest den in der Originalversion vorhandenen Backlink stehen lässt. Oder wenn er denn unbedingt weg soll, dann wenigstens die Entwickler mit einer Spende bedenken. Denn die bekommen nichts bezahlt für ihre Arbeit und ihren Support, im Gegenteil, die Plattform kostet jeden Monat Geld, und die Forensoftware gibt es auch nicht geschenkt. All das bezahlen diese Leute aus ihrer eigenen Tasche!

              Denk mal drüber nach, dass Du mit diesem kostenlosen Programm gutes Geld verdienst, dass man Dir hier bei Problemen auch kostenlos weiter hilft - und dass es die Freizeit anderer Menschen ist, die das erst möglich macht. Nichts für ungut, aber ab und an sollte man sich auch daran erinnern.

              Kommentar


                #8
                404 Fehler nach Löschung eines Artikels aus dem Warenkorb

                da hast du vollkommen recht. Ich habe deine Anmerkung direkt mal an meine Geschäftsführung weitergegeben.
                Der Support hier ist nämlich hervorragend und sollte daher auch belohnt werden.

                Zum 404 Fehler:
                Der Fehler tritt nur dann auf, wenn du angemeldet bist, einen Artikel im Warenkorb löschst und dann auf den Button "weiter Einkaufen" klickst.

                Kommentar


                  #9
                  Zitat von Merena Beitrag anzeigen
                  Das SEO Plugin nimmt die Einstellung "Reset URL Cache" nicht auf true. Es bleibt immer auf false.
                  Das ist normal, es geht rein darum einmal auf false zu stellen und zu aktualisieren, dadurch werden die URLs aus der Tabelle seo_cache geleert und bei neuem Aufruf neu generiert.
                  Hast Du die Änderung mit dem PA-DSS Ajax Checkout durchgeführt?

                  Hier ein 1.5.4 mit genau demselben Ultimate SEO Modul, das Du verwendest, dieses Problem tritt dort nicht auf:


                  Wenn es bei Dir weiterhin auftritt, dann poste mal den kompletten Inhalt folgender Datei:

                  includes/functions/html_output.php

                  Und den kompletten Inhalt der .htaccess im Shopverzeichnis

                  Kommentar


                    #10
                    404 Fehler nach Löschung eines Artikels aus dem Warenkorb

                    Hast Du die Änderung mit dem PA-DSS Ajax Checkout durchgeführt?
                    Habe ich auf 0 gestellt.

                    Das ist normal, es geht rein darum einmal auf false zu stellen und zu aktualisieren, dadurch werden die URLs aus der Tabelle seo_cache geleert und bei neuem Aufruf neu generiert.
                    Die Einstellung stand auf false, Einstellungsänderungen werden nicht geladen.

                    Ich habe dann einen Test durchgeführt. Keine Änderung nach Überprüfung des Warenkorbs.
                    Wir nutzen die Version 2.215 des SEO Plugins.

                    Anbei die includes/functions/html_output.php
                    PHP-Code:
                    <?php
                    /**
                     * html_output.php
                     * HTML-generating functions used throughout the core
                     *
                     * @package functions
                     * @copyright Copyright 2003-2016 Zen Cart Development Team
                     * @copyright Portions Copyright 2003 osCommerce
                     * @license http://www.zen-cart-pro.at/license/2_0.txt GNU Public License V2.0
                     * @version $Id: html_output.php for Ultimate SEO 2.6 2016-05-20 10:12:09Z webchills $
                     */

                    /*
                     * The HTML href link wrapper function
                     */
                      
                    function zen_href_link($page ''$parameters ''$connection 'NONSSL'$add_session_id true$search_engine_safe true$static false$use_dir_ws_catalog true) {
                        global 
                    $request_type$session_started$http_domain$https_domain;

                        
                    // START alternative URLs patch
                        
                    global $altURLs;
                        
                    $link null;
                        if(isset(
                    $altURLs)) {
                          
                    $link $altURLs->href_link($page$parameters$connection$add_session_id$static$use_dir_ws_catalog);
                            if(
                    $link !== null) return $link;
                        }
                        
                    // END alternative URLs patch

                        
                    if (!zen_not_null($page)) {
                          die(
                    '</td></tr></table></td></tr></table><br /><br /><strong class="note">Error!<br /><br />Unable to determine the page link!</strong><br /><br /><!--' $page '<br />' $parameters ' -->');
                        }

                        if (
                    $connection == 'NONSSL') {
                          
                    $link HTTP_SERVER;
                        } elseif (
                    $connection == 'SSL') {
                          if (
                    ENABLE_SSL == 'true') {
                            
                    $link HTTPS_SERVER ;
                          } else {
                            
                    $link HTTP_SERVER;
                          }
                        } else {
                          die(
                    '</td></tr></table></td></tr></table><br /><br /><strong class="note">Error!<br /><br />Unable to determine connection method on a link!<br /><br />Known methods: NONSSL SSL</strong><br /><br />');
                        }

                        if (
                    $use_dir_ws_catalog) {
                          if (
                    $connection == 'SSL' && ENABLE_SSL == 'true') {
                            
                    $link .= DIR_WS_HTTPS_CATALOG;
                          } else {
                            
                    $link .= DIR_WS_CATALOG;
                          }
                        }

                        if (!
                    $static) {
                          if (
                    zen_not_null($parameters)) {
                            
                    $link .= 'index.php?main_page='$page "&" zen_output_string($parameters);
                          } else {
                            
                    $link .= 'index.php?main_page=' $page;
                          }
                        } else {
                          if (
                    zen_not_null($parameters)) {
                            
                    $link .= $page "?" zen_output_string($parameters);
                          } else {
                            
                    $link .= $page;
                          }
                        }

                        
                    $separator '&';

                        while ( (
                    substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link substr($link0, -1);
                    // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
                        
                    if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
                          if (
                    defined('SID') && zen_not_null(constant('SID'))) {
                            
                    $sid constant('SID');
                    //      } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL_ADMIN == 'true') ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
                          
                    } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == 'true') ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
                            if (
                    $http_domain != $https_domain) {
                              
                    $sid zen_session_name() . '=' zen_session_id();
                            }
                          }
                        }

                    // clean up the link before processing
                        
                    while (strstr($link'&&')) $link str_replace('&&''&'$link);
                        while (
                    strstr($link'&amp;&amp;')) $link str_replace('&amp;&amp;''&amp;'$link);

                        if ( (
                    SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
                          while (
                    strstr($link'&&')) $link str_replace('&&''&'$link);

                          
                    $link str_replace('&amp;''/'$link);
                          
                    $link str_replace('?''/'$link);
                          
                    $link str_replace('&''/'$link);
                          
                    $link str_replace('=''/'$link);

                          
                    $separator '?';
                        }

                        if (isset(
                    $sid)) {
                          
                    $link .= $separator zen_output_string($sid);
                        }

                    // clean up the link after processing
                        
                    while (strstr($link'&amp;&amp;')) $link str_replace('&amp;&amp;''&amp;'$link);

                        
                    $link preg_replace('/&/''&amp;'$link);
                        return 
                    $link;
                      }


                    /*
                     * The HTML image wrapper function for non-proportional images
                     * used when "proportional images" is turned off or if calling from a template directory
                     */
                      
                    function zen_image_OLD($src$alt ''$width ''$height ''$parameters '') {
                        global 
                    $template_dir;

                    //auto replace with defined missing image
                        
                    if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
                          
                    $src DIR_WS_IMAGES PRODUCTS_IMAGE_NO_IMAGE;
                        }

                        if ( (empty(
                    $src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
                          return 
                    false;
                        }

                        
                    // if not in current template switch to template_default
                        
                    if (!file_exists($src)) {
                          
                    $src str_replace(DIR_WS_TEMPLATES $template_dirDIR_WS_TEMPLATES 'template_default'$src);
                        }

                    // alt is added to the img tag even if it is null to prevent browsers from outputting
                    // the image filename as default
                        
                    $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

                        if (
                    zen_not_null($alt)) {
                          
                    $image .= ' title=" ' zen_output_string($alt) . ' "';
                        }

                        if ( (
                    CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {
                          if (
                    $image_size = @getimagesize($src)) {
                            if (empty(
                    $width) && zen_not_null($height)) {
                              
                    $ratio $height $image_size[1];
                              
                    $width $image_size[0] * $ratio;
                            } elseif (
                    zen_not_null($width) && empty($height)) {
                              
                    $ratio $width $image_size[0];
                              
                    $height $image_size[1] * $ratio;
                            } elseif (empty(
                    $width) && empty($height)) {
                              
                    $width $image_size[0];
                              
                    $height $image_size[1];
                            }
                          } elseif (
                    IMAGE_REQUIRED == 'false') {
                            return 
                    false;
                          }
                        }

                        if (
                    zen_not_null($width) && zen_not_null($height)) {
                          
                    $image .= ' width="' zen_output_string($width) . '" height="' zen_output_string($height) . '"';
                        }

                        if (
                    zen_not_null($parameters)) $image .= ' ' $parameters;

                        
                    $image .= ' />';

                        return 
                    $image;
                      }


                    /*
                     * The HTML image wrapper function
                     */
                      
                    function zen_image($src$alt ''$width ''$height ''$parameters '') {
                        global 
                    $template_dir$zco_notifier;

                        
                    // soft clean the alt tag
                        
                    $alt zen_clean_html($alt);

                        
                    // use old method on template images
                        
                    if (strstr($src'includes/templates') or strstr($src'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
                          return 
                    zen_image_OLD($src$alt$width$height$parameters);
                        }

                    //auto replace with defined missing image
                        
                    if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
                          
                    $src DIR_WS_IMAGES PRODUCTS_IMAGE_NO_IMAGE;
                        }

                        if ( (empty(
                    $src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
                          return 
                    false;
                        }

                        
                    // if not in current template switch to template_default
                        
                    if (!file_exists($src)) {
                          
                    $src str_replace(DIR_WS_TEMPLATES $template_dirDIR_WS_TEMPLATES 'template_default'$src);
                        }

                        
                    // hook for handle_image() function such as Image Handler etc
                        
                    if (function_exists('handle_image')) {
                          
                    $newimg handle_image($src$alt$width$height$parameters);
                          list(
                    $src$alt$width$height$parameters) = $newimg;
                          
                    $zco_notifier->notify('NOTIFY_HANDLE_IMAGE', array($newimg));
                        }

                        
                    // Convert width/height to int for proper validation.
                        // intval() used to support compatibility with plugins like image-handler
                        
                    $width = empty($width) ? $width intval($width);
                        
                    $height = empty($height) ? $height intval($height);

                    // alt is added to the img tag even if it is null to prevent browsers from outputting
                    // the image filename as default
                        
                    $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

                        if (
                    zen_not_null($alt)) {
                          
                    $image .= ' title=" ' zen_output_string($alt) . ' "';
                        }

                        if ( ((
                    CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height))) ) {
                          if (
                    $image_size = @getimagesize($src)) {
                            if (empty(
                    $width) && zen_not_null($height)) {
                              
                    $ratio $height $image_size[1];
                              
                    $width $image_size[0] * $ratio;
                            } elseif (
                    zen_not_null($width) && empty($height)) {
                              
                    $ratio $width $image_size[0];
                              
                    $height $image_size[1] * $ratio;
                            } elseif (empty(
                    $width) && empty($height)) {
                              
                    $width $image_size[0];
                              
                    $height $image_size[1];
                            }
                          } elseif (
                    IMAGE_REQUIRED == 'false') {
                            return 
                    false;
                          }
                        }


                        if (
                    zen_not_null($width) && zen_not_null($height) and file_exists($src)) {
                    //      $image .= ' width="' . zen_output_string($width) . '" height="' . zen_output_string($height) . '"';
                    // proportional images
                          
                    $image_size = @getimagesize($src);
                          
                    // fix division by zero error
                          
                    $ratio = ($image_size[0] != $width $image_size[0] : 1);
                          if (
                    $image_size[1]*$ratio $height) {
                            
                    $ratio $height $image_size[1];
                            
                    $width $image_size[0] * $ratio;
                          } else {
                            
                    $height $image_size[1] * $ratio;
                          }
                    // only use proportional image when image is larger than proportional size
                          
                    if ($image_size[0] < $width and $image_size[1] < $height) {
                            
                    $image .= ' width="' $image_size[0] . '" height="' intval($image_size[1]) . '"';
                          } else {
                            
                    $image .= ' width="' round($width) . '" height="' round($height) . '"';
                          }
                        } else {
                           
                    // override on missing image to allow for proportional and required/not required
                          
                    if (IMAGE_REQUIRED == 'false') {
                            return 
                    false;
                          } else if (
                    substr($src04) != 'http') {
                            
                    $image .= ' width="' intval(SMALL_IMAGE_WIDTH) . '" height="' intval(SMALL_IMAGE_HEIGHT) . '"';
                          }
                        }

                        
                    // inject rollover class if one is defined. NOTE: This could end up with 2 "class" elements if $parameters contains "class" already.
                        
                    if (defined('IMAGE_ROLLOVER_CLASS') && IMAGE_ROLLOVER_CLASS != '') {
                          
                    $parameters .= (zen_not_null($parameters) ? ' ' '') . 'class="rollover"';
                        }
                        
                    // add $parameters to the tag output
                        
                    if (zen_not_null($parameters)) $image .= ' ' $parameters;

                        
                    $image .= ' />';

                        return 
                    $image;
                      }

                    /*
                     * The HTML form submit button wrapper function
                     * Outputs a "submit" button in the selected language
                     */
                      
                    function zen_image_submit($image$alt ''$parameters ''$sec_class '') {
                        global 
                    $template$current_page_base$zco_notifier;
                        if (
                    strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image$alt'submit'$sec_class$parameters);
                        
                    $zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');

                        
                    $image_submit '<input type="image" src="' zen_output_string($template->get_template_dir($imageDIR_WS_TEMPLATE$current_page_base'buttons/' $_SESSION['language'] . '/') . $image) . '" alt="' zen_output_string($alt) . '"';

                        if (
                    zen_not_null($alt)) $image_submit .= ' title=" ' zen_output_string($alt) . ' "';

                        if (
                    zen_not_null($parameters)) $image_submit .= ' ' $parameters;

                        
                    $image_submit .= ' />';

                        return 
                    $image_submit;
                      }

                    /*
                     * Output a function button in the selected language
                     */
                      
                    function zen_image_button($image$alt ''$parameters ''$sec_class '') {
                        global 
                    $template$current_page_base$zco_notifier;

                        
                    // inject rollover class if one is defined. NOTE: This could end up with 2 "class" elements if $parameters contains "class" already.
                        
                    if (defined('IMAGE_ROLLOVER_CLASS') && IMAGE_ROLLOVER_CLASS != '') {
                          
                    $parameters .= (zen_not_null($parameters) ? ' ' '') . 'class="rollover"';
                        }

                        
                    $zco_notifier->notify('PAGE_OUTPUT_IMAGE_BUTTON');
                        if (
                    strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') return zenCssButton($image$alt'button'$sec_class$parameters);
                        return 
                    zen_image($template->get_template_dir($imageDIR_WS_TEMPLATE$current_page_base'buttons/' $_SESSION['language'] . '/') . $image$alt''''$parameters);
                      }


                    /**
                     * generate CSS buttons in the current language
                     * concept from contributions by Seb Rouleau and paulm, subsequently adapted to Zen Cart
                     * note: any hard-coded buttons will not be able to use this function
                    **/
                      
                    function zenCssButton($image ''$text$type$sec_class ''$parameters '') {
                       global 
                    $css_button_text$css_button_opts$template$current_page_base$language;

                       
                    $button_name basename($image'.gif');

                        
                    // if no secondary class is set use the image name for the sec_class
                        
                    if (empty($sec_class)) $sec_class $button_name;
                        if(!empty(
                    $sec_class)) $sec_class ' ' $sec_class;
                        if(!empty(
                    $parameters))$parameters ' ' $parameters;
                        
                    $mouse_out_class  'cssButton ' . (($type == 'submit') ? 'submit_button button ' 'normal_button button ') . $sec_class;
                        
                    $mouse_over_class 'cssButtonHover ' . (($type == 'button') ? 'normal_button button ' '') . $sec_class $sec_class 'Hover';
                        
                    // javascript to set different classes on mouseover and mouseout: enables hover effect on the buttons
                        // (pure css hovers on non link elements do work work in every browser)
                        
                    $css_button_js .=  'onmouseover="this.className=\''$mouse_over_class '\'" onmouseout="this.className=\'' $mouse_out_class '\'"';

                        if (
                    CSS_BUTTON_POPUPS_IS_ARRAY == 'true') {
                          
                    $popuptext = (!empty($css_button_text[$button_name])) ? $css_button_text[$button_name] : ($button_name CSSBUTTONS_CATALOG_POPUPS_SHOW_BUTTON_NAMES_TEXT);
                          
                    $tooltip ' title="' $popuptext '"';
                        } else {
                          
                    $tooltip '';
                        }
                        
                    $css_button '';

                        if (
                    $type == 'submit'){
                          
                    // form input button
                          
                    if ($parameters != '') {
                            
                    // If the input parameters include a "name" attribute, need to emulate an <input type="image" /> return value by adding a _x to the name parameter (creds to paulm)
                            
                    if (preg_match('/name="([a-zA-Z0-9\-_]+)"/'$parameters$matches)) {
                              
                    $parameters str_replace('name="' $matches[1], 'name="' $matches[1] . '_x'$parameters);
                            }
                            
                    // If the input parameters include a "value" attribute, remove it since that attribute will be set to the input text string.
                            
                    if (preg_match('/(value="[a-zA-Z0=9\-_]+")/'$parameters$matches)) {
                              
                    $parameters str_replace($matches[1], ''$parameters);
                            }
                          }

                          
                    $css_button '<input class="' $mouse_out_class '" ' $css_button_js ' type="submit" value="' $text '"' $tooltip $parameters ' />';
                        }

                        if (
                    $type=='button'){
                          
                    // link button
                          
                    $css_button '<span class="' $mouse_out_class '" ' $css_button_js $tooltip $parameters '>&nbsp;' $text '&nbsp;</span>';
                        }
                        return 
                    $css_button;
                      }


                    /*
                     *  Output a separator either through whitespace, or with an image
                     */
                      
                    function zen_draw_separator($image 'true'$width '100%'$height '1') {

                        
                    // set default to use from template - zen_image will translate if not found in current template
                        
                    if ($image == 'true') {
                          
                    $image DIR_WS_TEMPLATE_IMAGES OTHER_IMAGE_BLACK_SEPARATOR;
                        } else {
                          if (!
                    strstr($imageDIR_WS_TEMPLATE_IMAGES)) {
                            
                    $image DIR_WS_TEMPLATE_IMAGES $image;
                          }
                        }
                        return 
                    zen_image($image''$width$height);
                      }

                    /*
                     *  Output a form
                     */
                      
                    function zen_draw_form($name$action$method 'post'$parameters '') {
                        
                    $form '<form name="' zen_output_string($name) . '" action="' zen_output_string($action) . '" method="' zen_output_string($method) . '"';

                        if (
                    zen_not_null($parameters)) $form .= ' ' $parameters;

                        
                    $form .= '>';
                        if (
                    strtolower($method) == 'post'$form .= '<input type="hidden" name="securityToken" value="' $_SESSION['securityToken'] . '" />';
                        return 
                    $form;
                      }

                    /*
                     *  Output a form input field
                     */
                      
                    function zen_draw_input_field($name$value ''$parameters ''$type 'text'$reinsert_value true) {
                        
                    $field '<input type="' zen_output_string($type) . '" name="' zen_sanitize_string(zen_output_string($name)) . '"';
                        if ( (isset(
                    $GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) {
                          
                    $field .= ' value="' zen_output_string(stripslashes($GLOBALS[$name])) . '"';
                        } elseif (
                    zen_not_null($value)) {
                          
                    $field .= ' value="' zen_output_string($value) . '"';
                        }

                        if (
                    zen_not_null($parameters)) $field .= ' ' $parameters;

                        
                    $field .= ' />';

                        return 
                    $field;
                      }

                    /*
                     *  Output a form password field
                     */
                      
                    function zen_draw_password_field($name$value ''$parameters 'maxlength="40"') {
                        return 
                    zen_draw_input_field($name$value$parameters'password'true);
                      }

                    /*
                     *  Output a selection field - alias function for zen_draw_checkbox_field() and zen_draw_radio_field()
                     */
                      
                    function zen_draw_selection_field($name$type$value ''$checked false$parameters '') {
                        
                    $selection '<input type="' zen_output_string($type) . '" name="' zen_output_string($name) . '"';

                        if (
                    zen_not_null($value)) $selection .= ' value="' zen_output_string($value) . '"';

                        if ( (
                    $checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
                          
                    $selection .= ' checked="checked"';
                        }

                        if (
                    zen_not_null($parameters)) $selection .= ' ' $parameters;

                        
                    $selection .= ' />';

                        return 
                    $selection;
                      }

                    /*
                     *  Output a form checkbox field
                     */
                      
                    function zen_draw_checkbox_field($name$value ''$checked false$parameters '') {
                        return 
                    zen_draw_selection_field($name'checkbox'$value$checked$parameters);
                      }

                    /*
                     * Output a form radio field
                     */
                      
                    function zen_draw_radio_field($name$value ''$checked false$parameters '') {
                        return 
                    zen_draw_selection_field($name'radio'$value$checked$parameters);
                      }

                    /*
                     *  Output a form textarea field
                     */
                      
                    function zen_draw_textarea_field($name$width$height$text '~*~*#'$parameters ''$reinsert_value true) {
                        
                    $field '<textarea name="' zen_output_string($name) . '" cols="' zen_output_string($width) . '" rows="' zen_output_string($height) . '"';

                        if (
                    zen_not_null($parameters)) $field .= ' ' $parameters;

                        
                    $field .= '>';

                        if (
                    $text == '~*~*#' && (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) {
                          
                    $field .= stripslashes($GLOBALS[$name]);
                        } elseif (
                    $text != '~*~*#' && zen_not_null($text)) {
                          
                    $field .= $text;
                        }

                        
                    $field .= '</textarea>';

                        return 
                    $field;
                      }

                    /*
                     *  Output a form hidden field
                     */
                      
                    function zen_draw_hidden_field($name$value ''$parameters '') {
                        
                    $field '<input type="hidden" name="' zen_sanitize_string(zen_output_string($name)) . '"';

                        if (
                    zen_not_null($value)) {
                          
                    $field .= ' value="' zen_output_string($value) . '"';
                        } elseif (isset(
                    $GLOBALS[$name]) && is_string($GLOBALS[$name])) {
                          
                    $field .= ' value="' zen_output_string(stripslashes($GLOBALS[$name])) . '"';
                        }

                        if (
                    zen_not_null($parameters)) $field .= ' ' $parameters;

                        
                    $field .= ' />';

                        return 
                    $field;
                      }

                    /*
                     * Output a form file-field
                     */
                      
                    function zen_draw_file_field($name$required false) {
                        
                    $field zen_draw_input_field($name''' size="50" ''file');

                        return 
                    $field;
                      }


                    /*
                     *  Hide form elements while including session id info
                     *  IMPORTANT: This should be used in every FORM that has an OnSubmit() function tied to it, to prevent unexpected logouts
                     */
                      
                    function zen_hide_session_id() {
                        global 
                    $session_started;

                        if ( (
                    $session_started == true) && defined('SID') && zen_not_null(SID) ) {
                          return 
                    zen_draw_hidden_field(zen_session_name(), zen_session_id());
                        }
                      }

                    /*
                     *  Output a form pull down menu
                     *  Pulls values from a passed array, with the indicated option pre-selected
                     */
                      
                    function zen_draw_pull_down_menu($name$values$default ''$parameters ''$required false) {
                        
                    $field '<select name="' zen_output_string($name) . '"';

                        if (
                    zen_not_null($parameters)) $field .= ' ' $parameters;

                        
                    $field .= '>' "\n";

                        if (empty(
                    $default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) ) $default stripslashes($GLOBALS[$name]);

                        for (
                    $i=0$n=sizeof($values); $i<$n$i++) {
                          
                    $field .= '  <option value="' zen_output_string($values[$i]['id']) . '"';
                          if (
                    $default == $values[$i]['id']) {
                            
                    $field .= ' selected="selected"';
                          }

                          
                    $field .= '>' zen_output_string($values[$i]['text'], array('"' => '&quot;''\'' => ''''<' => '&lt;''>' => '&gt;')) . '</option>' "\n";
                        }
                        
                    $field .= '</select>' "\n";

                        if (
                    $required == true$field .= TEXT_FIELD_REQUIRED;

                        return 
                    $field;
                      }

                    /*
                     * Creates a pull-down list of countries
                     */
                      
                    function zen_get_country_list($name$selected ''$parameters '') {
                        
                    $countriesAtTopOfList = array();
                        
                    $countries_array = array(array('id' => '''text' => PULL_DOWN_DEFAULT));
                        
                    $countries zen_get_countries();

                        
                    // Set some default entries at top of list:
                        
                    if (STORE_COUNTRY != SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY$countriesAtTopOfList[] = SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
                        
                    $countriesAtTopOfList[] = STORE_COUNTRY;
                        
                    // Wenn Sie weitere Laender direkt am Anfang der Liste anzeigen lassen wollen, kommentieren Sie die Zeilen mit $countriesAtTopOfList aus.
                        // Sie koennen hier soviele Laender angeben wie Sie wollen, einfach weitere solcher Zeilen anlegen
                        // Beispiel: Deutschland ist 81, Oesterreich ist 14:
                        //$countriesAtTopOfList[] = 81;
                        //$countriesAtTopOfList[] = 14;

                        //process array of top-of-list entries:
                        
                    foreach ($countriesAtTopOfList as $key=>$val) {
                          
                    $countries_array[] = array('id' => $val'text' => zen_get_country_name($val));
                        }
                        
                    // now add anything not in the defaults list:
                        
                    for ($i=0$n=sizeof($countries); $i<$n$i++) {
                          
                    $alreadyInList FALSE;
                          foreach(
                    $countriesAtTopOfList as $key=>$val) {
                            if (
                    $countries[$i]['countries_id'] == $val)
                            {
                              
                    // If you don't want to exclude entries already at the top of the list, comment out this next line:
                              
                    $alreadyInList TRUE;
                              continue;
                            }
                          }
                          if (!
                    $alreadyInList$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
                        }

                        return 
                    zen_draw_pull_down_menu($name$countries_array$selected$parameters);
                      }
                    /*
                     * Assesses suitability for additional parameters such as rel=nofollow etc
                     */
                      
                    function zen_href_params($page ''$parameters '') {
                        global 
                    $current_page_base;
                        
                    $addparms '';
                        
                    // if nofollow has already been set, ignore this function
                        
                    if (stristr($parameters'nofollow')) return $parameters;
                        
                    // if list of skippable pages has been set in meta_tags.php lang file (is by default), use that to add rel=nofollow params
                        
                    if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($pageexplode(","constant('ROBOTS_PAGES_TO_SKIP')))
                            || 
                    $current_page_base=='down_for_maintenance'$addparms 'rel="nofollow"';
                        return (
                    $parameters == '' $addparms $parameters ' ' $addparms);
                      }
                    ?>
                    htaccess:
                    PHP-Code:
                    ###############################################################################
                    # Common directives
                    ###############################################################################
                    ##### WICHTIG: Ersetze bei RewriteBase /shop/ mit dem Verzeichnis, in dem der Zen-Cart Shop läuft, relativ zum Root Verzeichnis angegeben.
                    ##### Beispiel 1: Shop läuft im Rootverzeichnis auf http://www.meinshop.de : RewriteBase /
                    ##### Beispiel 2: Shop läuft im Unterverzeichnis auf http://www.meinshop.de/onlineshop : RewriteBase /onlineshop/

                    Options +FollowSymLinks
                    RewriteEngine on
                    RewriteCond 
                    %{SERVER_PORT} !=443
                    RewriteRule 
                    ^(.*)$ https://www.meine-domain.de/$1 [R=301,L]
                    RewriteCond %{HTTP_HOST} !^www\.
                    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
                    RewriteBase /


                    ###############################################################################
                    # Add custom headers and options
                    ###############################################################################
                    # Notes:
                    #
                    # Examples: Adding IE compatibility / edge flags, language and encoding flags,
                    # php or suphp directives, configure other Apache modules such as page_speed,
                    # and enable or disable Apache httpd options.
                    #
                    # Do NOT configure anything directly relating to physical or virtual resources
                    # in this section. These should be addressed later on in this file.
                    ###############################################################################
                    #Options -Indexes

                    ###############################################################################
                    # Enable mod_rewrite processing using the rules in this .htaccess file
                    ###############################################################################
                    # Notes:
                    #
                    # <IfModule> should be avoided at all costs. If mod_rewrite is not available
                    # it is almost always better to return HTTP 500 status. This way we see there
                    # is an issue as soon as the .htaccess file is uploaded.
                    #
                    # For mod_rewrite to work, the Apache server option to allow symbolic links to
                    # be followed must be enabled. Most providers supporting mod_rewrite will
                    # already have it enabled for you, but if your rewrite rules are not working
                    # you can un-comment the first directive below to manually enable the option.
                    #
                    # Don't forget, mod_rewrite directives are processed in order until a matching
                    # RewriteRule with the [L] flag is encountered. So the more specific a rule is
                    # the closer it should appear to the top of this file.
                    ###############################################################################
                    #Options +FollowSymLinks
                    RewriteEngine on

                    ###############################################################################
                    # Tell mod_rewrite where this file is relative to the server document_root
                    ###############################################################################
                    # Notes:
                    #
                    # This directive should only be enabled if this .htaccess file is not placed
                    # in the document_root (usually public_html, www, or web) of the (sub)domain.
                    #
                    # An easy way to determine the location relative to the server document_root is
                    # to look at the URL used to access a file in this folder. For example if you
                    # access a "page" in the same folder as this file by typing in the URL
                    # "www.mydomain.com/myfolder/index.html" then "myfolder" will be the location
                    # of this file relative to the server document_root.
                    #
                    # Another quick and easy way to determine the correct setting for this is to
                    # look at the defined value for DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG in
                    # Zen Cart's configure.php files. All three values should match.
                    #
                    # Don't forget the leading and trailing /. This directive requires both!
                    ###############################################################################
                    #RewriteBase /shop/


                    ###############################################################################
                    # Redirect if request was for index.php (no query)
                    ###############################################################################
                    # Notes:
                    #
                    # This is only required if the site generates references to index.php with no
                    # parameters. This rule will force a 301 redirect to the site root when a
                    # request is made for "/index.php" with no query terms (?key=value).
                    ###############################################################################
                    #RewriteCond %{QUERY_STRING} ^$
                    #RewriteRule ^index\.php$ / [R=301,L]


                    ###############################################################################
                    # Add any custom 301 redirects
                    ###############################################################################
                    # Notes:
                    #
                    # In general these should be few and far between. If you use a RewriteRule
                    # be sure to add the L flag to let Apache mod_rewrite know to stop processing
                    # and skip any RewriteRules defined later in the .htaccess file.
                    ###############################################################################
                    Redirect 301 /artikel-p-351 https://www.meine-domain.de/angebote-c-11

                    ###############################################################################
                    # Redirect if request was for index.php (with or without query)
                    ###############################################################################
                    # Notes:
                    #
                    # This is a performance optimization. If the request is for index.php simply
                    # pass the request on and do not process any other mod_rewrite directives in
                    # this file.
                    #
                    # Basically this avoids the overhead of checking if index.php is a real file
                    # or directory (used in subsequent mod_rewrite rules) before sending the
                    # request to index.php.
                    ###############################################################################
                    RewriteRule ^index\.php$ - [L]


                    ###############################################################################
                    # Start Ultimate (SEO) URLs
                    ###############################################################################
                    # Notes:
                    #
                    # You should not make any changes in this section unless you really understand
                    # how it will impact your web site. Mistakes can break things.
                    ###############################################################################

                    # Handles the new URL formats
                    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]

                    # Original (unchanged) URL formats
                    RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
                    RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

                    # Rewrite all other requests (if the file / directory does not exist)
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond 
                    %{REQUEST_FILENAME} !-d
                    RewriteRule 
                    ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]

                    ###############################################################################
                    # Add any other directives relating to the handling of physical files
                    ###############################################################################
                    # Notes:
                    #
                    # If processing makes it this far, the request was for a real file or folder.
                    # Example: Adding further processing related to browser caching or security.
                    ###############################################################################


                    ErrorDocument 404 https://www.meine-domain.de/page_not_found 

                    Kommentar


                      #11
                      Vertippt, gemeint war:
                      Das ist normal, es geht rein darum einmal auf true zu stellen und zu aktualisieren, dadurch werden die URLs aus der Tabelle seo_cache geleert und bei neuem Aufruf neu generiert.
                      Danach steht die Einstellung wieder auf false und das ist auch gut und normal so
                      Also einmal auf true umschalten und Aktualisieren Button drücken, dadurch wird der Cache geleert.

                      includes/functions/html_output.php

                      Zeile 16

                      Ändere von

                      Code:
                      function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
                      auf

                      Code:
                      function zen_href_link($page = '', $parameters = '', $connection = 'SSL', $add_session_id = false, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
                      Zeile 528

                      Ändere von

                      Code:
                      $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => ''', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
                      auf

                      Code:
                      $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
                      Danach leere erneut den SEO URL Cache


                      .htaccess

                      Statt
                      Code:
                      RewriteCond %{SERVER_PORT} !=443
                      RewriteRule ^(.*)$ https://www.meine-domain.de/$1 [R=301,L]
                      RewriteCond %{HTTP_HOST} !^www\.
                      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
                      würde ich mal verwenden:

                      Code:
                      RewriteCond %{HTTPS} off 
                      RewriteCond %{HTTPS_HOST} !^www.meine-domain.de$ [NC]
                      RewriteRule ^(.*)$ https://www.meine-domain.de/$1 [L,R=301]
                      Folgenden Eintrag ganz rausnehmen:
                      Code:
                      RewriteBase /

                      Kommentar


                        #12
                        404 Fehler nach Löschung eines Artikels aus dem Warenkorb

                        Ich habe die Anpassungen wie beschrieben geändert.
                        Den SEO Cache kann ich wie gesagt nicht auf true setzen. Die Einstellung wird einfach nicht übernommen.
                        Es bleibt auf false stehen.
                        Kann ich den SEO Cache anders leeren?

                        Die htaccess verursacht nach Änderung einen 500er Fehler (Internal Server Error)

                        Habe den Warenkorb trotzdem mal getestet (die Hoffnung stirbt zuletzt) Leider ist der Fehler immer noch vorhanden. :(

                        Kommentar


                          #13
                          Zitat von Merena Beitrag anzeigen
                          Den SEO Cache kann ich wie gesagt nicht auf true setzen. Die Einstellung wird einfach nicht übernommen.
                          Es bleibt auf false stehen.
                          Wie gesagt:
                          Das ist normal, das Umschalten auf true und Clicken von Aktualisieren löscht den Cache und es springt wieder auf false.

                          Poste jetzt noch den kompletten Inhalt von
                          includes/templates/stirling_grand/templates/tpl_shopping_cart_default.php
                          Sollte diese Datei nicht vorhanden sein, dann von
                          includes/templates/template_default/templates/tpl_shopping_cart_default.php

                          Kommentar


                            #14
                            404 Fehler nach Löschung eines Artikels aus dem Warenkorb

                            tpl_shopping_cart_default.php:

                            PHP-Code:
                            <?php
                            /**
                             * Page Template
                             *
                             * Loaded automatically by index.php?main_page=shopping_cart.<br />
                             * Displays shopping-cart contents
                             *
                             * @package templateSystem
                             * @copyright Copyright 2003-2010 Zen Cart Development Team
                             * @copyright Portions Copyright 2003 osCommerce
                             * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                             * @version $Id: tpl_shopping_cart_default.php 15881 2010-04-11 16:32:39Z wilt $
                             */
                            ?>
                            <div class="centerColumn" id="shoppingCartDefault">
                            <?php
                              
                            if ($flagHasCartContents) {
                            ?>

                            <?php
                              
                            if ($_SESSION['cart']->count_contents() > 0) {
                            ?>
                            <div class="forward"><?php echo TEXT_VISITORS_CART?></div>
                            <?php
                              
                            }
                            ?>

                            <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE?></h1>

                            <?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>

                            <?php echo zen_draw_form('cart_quantity'zen_href_link(FILENAME_SHOPPING_CART'action=update_product'$request_type)); ?>
                            <div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION?></div>

                            <?php if (!empty($totalsDisplay)) { ?>
                              <div class="cartTotalsDisplay important"><?php echo $totalsDisplay?></div>
                              <br class="clearBoth" />
                            <?php ?>

                            <?php  if ($flagAnyOutOfStock) { ?>

                            <?php    if (STOCK_ALLOW_CHECKOUT == 'true') {  ?>

                            <div class="messageStackError"><?php echo OUT_OF_STOCK_CAN_CHECKOUT?></div>

                            <?php    } else { ?>
                            <div class="messageStackError"><?php echo OUT_OF_STOCK_CANT_CHECKOUT?></div>


                            <?php    //endif STOCK_ALLOW_CHECKOUT ?>
                            <?php  
                            //endif flagAnyOutOfStock ?>

                            <table  border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
                                 <tr class="tableHeading">
                                    <th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY?></th>
                                    <th scope="col" id="scUpdateQuantity">&nbsp;</th>
                                    <th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS?></th>
                                    <th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE?></th>
                                    <th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL?></th>
                                    <th scope="col" id="scRemoveHeading">&nbsp;</th>
                                 </tr>
                                     <!-- Loop through all products /-->
                            <?php
                              
                            foreach ($productArray as $product) {
                            ?>
                                 <tr class="<?php echo $product['rowClass']; ?>">
                                   <td class="cartQuantity">
                            <?php
                              
                            if ($product['flagShowFixedQuantity']) {
                                echo 
                            $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
                              } else {
                                echo 
                            $product['quantityField'] . '<br /><span class="alert bold">' $product['flagStockCheck'] . '</span><br /><br />' $product['showMinUnits'];
                              }
                            ?>
                                   </td>
                                   <td class="cartQuantityUpdate">
                            <?php
                              
                            if ($product['buttonUpdate'] == '') {
                                echo 
                            '' ;
                              } else {
                                echo 
                            $product['buttonUpdate'];
                              }
                            ?>
                                   </td>
                                   <td class="cartProductDisplay">
                            <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' $product['flagStockCheck'] . '</span>'?></span></a>
                            <br class="clearBoth" />


                            <?php
                              
                            echo $product['attributeHiddenField'];
                              if (isset(
                            $product['attributes']) && is_array($product['attributes'])) {
                              echo 
                            '<div class="cartAttribsList">';
                              echo 
                            '<ul>';
                                
                            reset($product['attributes']);
                                foreach (
                            $product['attributes'] as $option => $value) {
                            ?>

                            <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER nl2br($value['products_options_values_name']); ?></li>

                            <?php
                                
                            }
                              echo 
                            '</ul>';
                              echo 
                            '</div>';
                              }
                            ?>
                                   </td>
                                   <td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
                                   <td class="cartTotalDisplay"><?php echo $product['productsPrice']; ?></td>
                                   <td class="cartRemoveItemDisplay">
                            <?php
                              
                            if ($product['buttonDelete']) {
                            ?>
                                       <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'action=remove_product&product_id=' $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASHDIR_WS_TEMPLATE$current_page_base,'images/icons'). '/' ICON_IMAGE_TRASHICON_TRASH_ALT); ?></a>
                            <?php
                              
                            }
                              if (
                            $product['checkBoxDelete'] ) {
                                echo 
                            zen_draw_checkbox_field('cart_delete[]'$product['id']);
                              }
                            ?>
                            </td>
                                 </tr>
                            <?php
                              
                            // end foreach ($productArray as $product)
                            ?>
                                   <!-- Finished loop through all products /-->
                                  </table>

                            <div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL?> <?php echo $cartShowTotal?></div>
                            <br class="clearBoth" />

                            <!--bof shopping cart buttons-->
                            <div class="buttonRow forward"><?php echo '<a href="' zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' zen_image_button(BUTTON_IMAGE_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a>'?></div>
                            <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPINGBUTTON_CONTINUE_SHOPPING_ALT) . '</a>'?></div>
                            <?php
                            // show update cart button
                              
                            if (SHOW_SHOPPING_CART_UPDATE == or SHOW_SHOPPING_CART_UPDATE == 3) {
                            ?>
                            <div class="buttonRow back cart-update"><?php echo zen_image_submit(ICON_IMAGE_UPDATEICON_UPDATE_ALT); ?></div>
                            <?php
                              
                            } else { // don't show update button below cart
                            ?>
                            <?php
                              
                            // show update button
                            ?>
                            <!--eof shopping cart buttons-->
                            </form>

                            <br class="clearBoth" />
                            <?php
                                
                            if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {
                            ?>

                            <div class="buttonRow back"><?php echo '<a href="javascript:popupWindow(\'' zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
                             
                            zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATORBUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'?></div>
                            <?php
                                
                            }
                            ?>

                            <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
                            <?php  // the tpl_ec_button template only displays EC option if cart contents >0 and value >0
                            if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True') {
                              include(
                            DIR_FS_CATALOG DIR_WS_MODULES 'payment/paypal/tpl_ec_button.php');
                            }
                            ?>
                            <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->

                            <?php
                                  
                            if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {
                            /**
                             * load the shipping estimator code if needed
                             */
                            ?>
                                  <?php require(DIR_WS_MODULES zen_get_module_directory('shipping_estimator.php')); ?>

                            <?php
                                  
                            }
                            ?>
                            <?php
                              
                            } else {
                            ?>

                            <h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY?></h2>

                            <?php
                            $show_display_shopping_cart_empty 
                            $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);

                            while (!
                            $show_display_shopping_cart_empty->EOF) {
                            ?>

                            <?php
                              
                            if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
                            <?php
                            /**
                             * display the Featured Products Center Box
                             */
                            ?>
                            <?php 
                            require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
                            <?php 
                            ?>

                            <?php
                              
                            if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
                            <?php
                            /**
                             * display the Special Products Center Box
                             */
                            ?>
                            <?php 
                            require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
                            <?php 
                            ?>

                            <?php
                              
                            if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
                            <?php
                            /**
                             * display the New Products Center Box
                             */
                            ?>
                            <?php 
                            require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
                            <?php 
                            ?>

                            <?php
                              
                            if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
                                include(
                            DIR_WS_MODULES zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
                              }
                            ?>
                            <?php
                              $show_display_shopping_cart_empty
                            ->MoveNext();
                            // !EOF
                            ?>
                            <?php
                              
                            }
                            ?>
                            </div>

                            Kommentar


                              #15
                              includes/modules/pages/page_not_found/header_php.php

                              sieht am Schluss normalerweise so aus:

                              Code:
                              require DIR_WS_CLASSES . 'site_map.php';
                              $zen_SiteMapTree = new zen_SiteMapTree;
                              
                              // This should be last line of the script:
                              $zco_notifier->notify('NOTIFY_HEADER_END_PAGE_NOT_FOUND');
                              Ändere dort mal auf:

                              Code:
                              require DIR_WS_CLASSES . 'site_map.php';
                              $zen_SiteMapTree = new zen_SiteMapTree;
                              
                              $_SESSION['navigation']->remove_current_page();  // Remove page from navigation history
                              
                              // This should be last line of the script:
                              $zco_notifier->notify('NOTIFY_HEADER_END_PAGE_NOT_FOUND');

                              Kommentar

                              Info zu diesem Forenarchiv:
                              Mit Release von 1.5.7 wurde die deutsche Zen Cart Version auf eine reine DIY-Lösung umgestellt.
                              Für einen Support via Forum stehen keine personellen und zeitlichen Ressourcen mehr zur Verfügung.
                              Dieses Supportforum bleibt im Nur-Lesen-Modus als Wissensarchiv noch online verfügbar.
                              PM Funktionalität, Registrierung und Posten neuer Beiträge sind deaktiviert.
                              Zugriff auf Anhänge in den Postings ist auch ohne Registrierung/Einloggen möglich.
                              FAQ und Downloadbereich des Forums wurden in die neue umfangreiche Knowledgebase auf der zen-cart-pro.at Website übernommen.

                              Das Development der deutschen Zen Cart Version geht wie bisher auf Github weiter.
                              Wir werden auch weiterhin neue Versionen bereitstellen und die Onlinedokumentation/Knowledgebase aktualisieren.
                              Fehler in der Software können auf Github als Issues gemeldet werden.
                              Follow us
                              aktuelle version
                              Zen Cart 1.5.7g deutsch
                              vom 12.12.2023
                              [Download]
                              Lädt...
                              X