Ergebnis 1 bis 3 von 3

Thema: Datei Template shopingcart defoult

  1. #1
    Padawan Stufe VI Avatar von bumerang24
    Registriert seit
    25.11.2011
    Ort
    München
    Beiträge
    729
    Themen
    113
    DANKE
    43
    Erhaltene Danke: 55

    Standard Datei Template shopingcart defoult

    Hallo Webchills,

    folgendes Problem.

    Die Original Datei aus dem Download:
    Code:
    <?php
    /**
     * Zen Cart German Specific
     * Page Template
     *
     * Loaded automatically by index.php?main_page=shopping_cart.<br />
     * Displays shopping-cart contents
     *
     * @package templateSystem
     * @copyright Copyright 2003-2019 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license https://www.zen-cart-pro.at/license/3_0.txt GNU General Public License V3.0
     * @version $Id: tpl_shopping_cart_default.php 4 2019-06-24 19:33:58Z webchills $
     */
    ?>
    <?php 
      if (!isset($display_as_mobile)) $display_as_mobile = ($detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' or $detect->isTablet() || $_SESSION['layoutType'] == 'tablet'); 
    ?>
    <div class="centerColumn" id="shoppingCartDefault">
    <?php
      if ($flagHasCartContents) {
    ?>
    
    <?php
      if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="forward"><?php echo TEXT_CART_HELP; ?></div>
    <?php
      }
    ?>
    
    <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT for not logged in visitors only! ** -->
    <?php if (!$_SESSION['customer_id']) { ?>    
    <div class="buttonRow forward">
    <?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');
    }
    ?>
    </div>
    <?php }?>
    <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
    <?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), 'post', 'id="shoppingCartForm"'); ?>
    <div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION; ?></div>
    
    <?php if (!empty($totalsDisplay)) { ?>
      <div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?></div>
    <?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 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']; ?>">
    
    <?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
          // 
          } else { ?>
    
           <td class="cartQuantity">
    <?php
      if ($product['flagShowFixedQuantity']) {
        echo $product['showFixedQuantityAmount'];
      } else {
        echo $product['quantityField'];
      }
    ?><br />
            <span class="alert bold"><?php echo $product['flagStockCheck'];?></span><br />
            <br /><?php echo $product['showMinUnits']; ?>
           </td>
    
           <td class="cartQuantityUpdate"><?php echo $product['buttonUpdate']; ?></td>
    <?php } ?>
    
    
    
           <td class="cartProductDisplay">
    
    <a href="<?php echo $product['linkProductsName']; ?>"><span class="cartImage back"><?php echo $product['productsImage']; ?></span><span class="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>';
        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>
    
    <?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) { ?>
    
           <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 echo $product['buttonUpdate']; ?></td>
    
    <?php  } else {
    
      }  ?>
    
    
           <td class="cartUnitDisplay"><?php if ($display_as_mobile) { echo '<b class="hide">' . TABLE_HEADING_PRICE . ':&nbsp;&nbsp;</b>'; } ?><?php echo $product['productsPriceEach']; ?></td>
           <td class="cartTotalDisplay"><?php if ($display_as_mobile) { echo '<b class="hide">' . TABLE_HEADING_TOTAL . ':&nbsp;&nbsp;</b>'; } ?><?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_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_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_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    <?php
    // show update cart button
      if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_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_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
    <?php
        }
    ?>
    
    
    
    <?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>
    Die Datei aus Amazon Pay dazu:

    Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=shopping_cart.<br />
     * Displays shopping-cart contents
     *
     * @package templateSystem
     * @copyright Copyright 2003-2019 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license https://www.zen-cart-pro.at/license/3_0.txt GNU General Public License V3.0
     * @version $Id: tpl_shopping_cart_default.php for Amazon Pay 2019-07-20 19:49:16Z webchills $
     */
    ?>
    <div class="centerColumn" id="shoppingCartDefault">
    <?php
      if ($flagHasCartContents) {
    ?>
    
    <?php
      if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="forward"><?php echo TEXT_CART_HELP; ?></div>
    <?php
      }
    ?>
    
    <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT for not logged in visitors only! ** -->
    <?php if (!$_SESSION['customer_id']) { ?>    
    <div class="buttonRow forward">
    <?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');
    }
    ?>
    </div>
    <?php }?>
    <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
    <?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), 'post', 'id="shoppingCartForm"'); ?>
    <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 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 class="cartImage back"><?php echo $product['productsImage']; ?></span><span class="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>';
        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_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_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_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    <?php
    // show update cart button
      if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_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_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
    <?php
        }
    ?>
    
    
    <!-- ** BEGIN AMAZON FRITES LOGIN ** -->
    <br class="clearBoth" />
        <?php  // the tpl_login_button template only displays LOGIN option if cart contents > 0 and value > 0 and if there are no virtual products
        
        if (defined('MODULE_PAYMENT_FRITES_STATUS') && MODULE_PAYMENT_FRITES_STATUS == 'True') {
            
      if ($_SESSION['cart']->in_cart_check('products_virtual')) {
          //
      } else {
          include DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/frites/tpl_login_button.php';
        }
    }
    
        ?>
        <!-- ** END AMAZON FRITES LOGIN ** -->
    
    <?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>
    Die Datei nach dem Mergen mit Bayond Compare:

    Code:
    <?php
    /**
     * Zen Cart German Specific
     * Page Template
     *
     * Loaded automatically by index.php?main_page=shopping_cart.<br />
     * Displays shopping-cart contents
     *
     * @package templateSystem
     * @copyright Copyright 2003-2019 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license https://www.zen-cart-pro.at/license/3_0.txt GNU General Public License V3.0
     * @version $Id: tpl_shopping_cart_default.php for Amazon Pay 2019-07-20 19:49:16Z webchills $
     */
    ?>
    <?php 
      if (!isset($display_as_mobile)) $display_as_mobile = ($detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' or $detect->isTablet() || $_SESSION['layoutType'] == 'tablet'); 
    ?>
    <div class="centerColumn" id="shoppingCartDefault">
    <?php
      if ($flagHasCartContents) {
    ?>
    
    <?php
      if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="forward"><?php echo TEXT_CART_HELP; ?></div>
    <?php
      }
    ?>
    
    <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <!-- ** BEGIN PAYPAL EXPRESS CHECKOUT for not logged in visitors only! ** -->
    <?php if (!$_SESSION['customer_id']) { ?>    
    <div class="buttonRow forward">
    <?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');
    }
    ?>
    </div>
    <?php }?>
    <!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
    <?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), 'post', 'id="shoppingCartForm"'); ?>
    <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 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']; ?>">
    
    <?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
          // 
          } else { ?>
    
           <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'];
      }
    ?><br />
            <span class="alert bold"><?php echo $product['flagStockCheck'];?></span><br />
            <br /><?php echo $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 class="cartImage back"><?php echo $product['productsImage']; ?></span><span class="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>';
        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_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_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_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    <?php
    // show update cart button
      if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_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_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
    <?php
        }
    ?>
    
    
    <!-- ** BEGIN AMAZON FRITES LOGIN ** -->
    <br class="clearBoth" />
        <?php  // the tpl_login_button template only displays LOGIN option if cart contents > 0 and value > 0 and if there are no virtual products
        
        if (defined('MODULE_PAYMENT_FRITES_STATUS') && MODULE_PAYMENT_FRITES_STATUS == 'True') {
            
      if ($_SESSION['cart']->in_cart_check('products_virtual')) {
          //
      } else {
          include DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/frites/tpl_login_button.php';
        }
    }
    
        ?>
        <!-- ** END AMAZON FRITES LOGIN ** -->
    
    <?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>
    und jetzt noch der Log, wenn ich einen Artikel im Warenkorb habe.

    Code:
    [07-Sep-2019 08:57:43 Europe/Berlin] PHP Parse error:  syntax error,  unexpected 'else' (T_ELSE) in  /www//ZC_SHOP_156/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php  on line 207
    
    [07-Sep-2019 08:57:43 Europe/Berlin] Request URI: /index.php?main_page=shopping_cart, IP address: 95.1
    --> PHP Parse error: syntax error, unexpected 'else' (T_ELSE) in  /www//ZC_SHOP_156/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php  on line 207.
    Mit der Datei original aus dem Download geht es, aber dafür müsste ich ja keine Datei ändern.

    Ich hoffe, das das Problem mal nicht wieder vor dem PC sitzt.

    Ich habe jetzt alles durchprobiert, sämtlichen Cache gellert usw. Seit 2 Stunden das gleiche ergebnis...

  2. #2
    Jedi-Ritter Avatar von webchills
    Registriert seit
    30.10.2004
    Ort
    Österreich
    Beiträge
    6.846
    Themen
    94
    DANKE
    3
    Erhaltene Danke: 1.188

    Standard

    Die einzige Änderung, die hier vorgenommen werden muss, ist das Hinzufügen des folgenden Abschnitts an der Stelle wo im Warenkorb der Amazon Pay Button erscheinen soll:
    Code:
    <!-- ** BEGIN AMAZON FRITES LOGIN ** -->
    <br class="clearBoth" />
        <?php  // the tpl_login_button template only displays LOGIN option if cart contents > 0 and value > 0 and if there are no virtual products
        
        if (defined('MODULE_PAYMENT_FRITES_STATUS') && MODULE_PAYMENT_FRITES_STATUS == 'True') {
            
      if ($_SESSION['cart']->in_cart_check('products_virtual')) {
          //
      } else {
          include DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/frites/tpl_login_button.php';
        }
    }
    
        ?>
        <!-- ** END AMAZON FRITES LOGIN ** -->
    Die mitgelieferte Beispieldatei verwendet den Code des entsprechenden Templates aus template_default als Basis.
    Du scheinst responsive_classic zu verwenden, dessen tpl_shopping_cart_default.php anders aufgebaut ist.

    Es macht keinen Sinn die anderen Dinge auch zu übernehmen, lediglich der oben gezeigte Amazon Pay Code wird an der gewünschten Stelle eingefügt
    !!! kostenloser Support ausschließlich im Forum - Nicht per Email, nicht per Telefon und nicht per PM !!!

  3. Folgender User sagt Danke zu webchills für den nützlichen Beitrag:

    bumerang24 (08.09.2019)

  4. #3
    Padawan Stufe VI Avatar von bumerang24
    Registriert seit
    25.11.2011
    Ort
    München
    Beiträge
    729
    Themen
    113
    DANKE
    43
    Erhaltene Danke: 55
    Erstellt von

    Standard

    Mercy,

    jetzt ist alles gut.
    War also wieder mal das Problem vor dem PC, in diesen Fall nur zu fleissig beim mergen.

Ähnliche Themen

  1. fehlende Datei
    Von embee im Forum pdf Rechnung
    Antworten: 2
    Letzter Beitrag: 10.10.2015, 16:08
  2. CSV Datei?
    Von afrobay im Forum Easy Populate
    Antworten: 4
    Letzter Beitrag: 14.08.2015, 10:37
  3. template datei für kategorien artikel übersicht bearbeiten
    Von Frage im Forum Archivierte Beiträge Zen-Cart Support
    Antworten: 7
    Letzter Beitrag: 08.06.2010, 10:34
  4. zip Datei
    Von miezy im Forum Archivierte Beiträge Zen-Cart Support
    Antworten: 0
    Letzter Beitrag: 19.09.2008, 13:06
  5. css datei
    Von guidoi im Forum Archivierte Beiträge Zen-Cart Support
    Antworten: 4
    Letzter Beitrag: 15.05.2006, 06:29

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
zen-cart-pro.at
Zen Cart ist eine kostenlose unter der GPL-Lizenz veröffentlichte Open-Source Shopsoftware. Das System wird in den USA entwickelt, die amerikanische Website dazu ist www.zen-cart.com

Die deutsche Zen-Cart Version, um die es hier auf zen-cart-pro.at geht, ist eine Anpassung der amerikanischen Version an die Bedürfnisse von Onlineshopbetreibern im deutschsprachigen Raum.
Die amerikanische Zen-Cart Version berücksichtigt viele rechtliche Erfordernisse nicht, denen ein Onlineshop im deutschsprachigen Raum unterworfen ist. Daher wurde die deutsche Zen-Cart Version nicht nur bloß ins Deutsche übersetzt, sondern auch funktional auf die Anforderungen, die an Onlineshops in Deutschland, Österreich und der Schweiz gestellt werden, angepasst.

Die amerikanische Version ist extrem abgespeckt und stellt weiterführende Funktionalitäten durch zusätzliche Module bereit, die erst mühsam manuell installiert werden müssen. Zahlreiche häufig genutzte Erweiterungen und eigene Entwicklungen sind in der deutschen Zen Cart Version bereits vorinstalliert.
Die deutsche Zen-Cart Version bietet außerdem einen völlig multilingualen Adminbereich. Weitere für die deutsche Zen Cart Version angepasste Erweiterungen stehen in unserem Downloadbereich zur Verfügung.

Die deutsche Zen Cart Version wird seit 15 Jahren von einem Team von Entwicklern in Österreich und Deutschland betreut, weiterentwickelt und supportet und steht kostenlos in unserem Downloadbereich zur Verfügung.

[mehr]
Follow Us
  • zen-cart-pro-at auf Twitter
  • zen-cart-pro-at auf Github
  • zen-cart-pro-at auf SourceForge
Aktuelle Version
Zen Cart 1.5.6c deutsch
vom 01.09.2019
[Download]

unterstützen
Unterstütze die Weiterentwicklung der deutschen Zen Cart Version mit einer Spende!

Spende für die Weiterentwicklung der deutschen Zen Cart Version