userandi2007 Posted January 16, 2007 Report Share Posted January 16, 2007 Hi, bei mir Sport Kübler Sport erscheint der Warenkorb nicht mehr mit den einzelnen Artikeln sondern nur noch in der Form: Es sind 2 Artikel im Korb. Ich hätte wieder gerne die ursprüngliche Variante dass man wenn man die Startseite oder andere Seiten öffnet, dann alle Artikel rechts im Warenkorb sieht in der Form. Warenkorb 1 kleines FUssballtor 1 TT - Tisch ---------------------- inkl. Umst. 19%: 4534 EUR Summe 3.000 EUR exkl. Versandkosten Wie bekomme ich das wieder rein? Merci Andi. Link to comment Share on other sites More sharing options...
e-h-bikestore Posted January 16, 2007 Report Share Posted January 16, 2007 Kommt darauf an, was du geändert hast. Musst ja irgendwas an der shopping_cart Datei geändert haben.... Im Zweifelfall wieder die originale Datei aid dem xtc Paket hochladen... Link to comment Share on other sites More sharing options...
userandi2007 Posted January 16, 2007 Author Report Share Posted January 16, 2007 wo sitzt die genau. Mein Prob ist ausserdem dass ich auch noch html files habe. Danke Andi. Link to comment Share on other sites More sharing options...
e-h-bikestore Posted January 16, 2007 Report Share Posted January 16, 2007 Die Warenkorb Dateien findest du im ordner "boxes" und "source-boxes" im Verzeichnis von deinem Template als box_cart.html und shopping_cart.php Die 2 Dateien sind für diese Box und die darin enthaltene Anzeige zuständig Link to comment Share on other sites More sharing options...
userandi2007 Posted January 16, 2007 Author Report Share Posted January 16, 2007 könntest du die zwei Dateien kurz posten hier. In meiner ursprünglichen Installation gibt es diese Dateien nur in bearbeiteter Form. Danke Andi. Link to comment Share on other sites More sharing options...
e-h-bikestore Posted January 16, 2007 Report Share Posted January 16, 2007 templates/xtc4/boxes/box_cart.html {config_load file="$language/lang_$language.conf" section="boxes"} {if $deny_cart neq 'true'} {if $empty=='false'} <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="infoBoxHeading_right"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBoxHeading_right">{#heading_cart#}</td> <td align="right"><a href="{$LINK_CART}"><img src="{$tpl_path}img/icon_more_light.gif" alt="" /></a></td> </tr> </table> </td> </tr> <tr> <td class="infoBox_right" align="left"> <table width="95%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="boxText"> <table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td style="border-bottom: 1px solid; border-color: #cccccc;" align="left" class="boxText"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> {foreach name=aussen item=products_data from=$products} <tr> <td class="main">{$products_data.QTY} x </td> <td class="main"><a href="{$products_data.LINK}">{$products_data.NAME|truncate:15:"...":true}</a></td> </tr> {/foreach} </table> </td> </tr> {if $DISCOUNT} <tr> <td align="right" class="productDiscountPrice">{#text_discount#} {$DISCOUNT}</td> </tr>{/if} <tr> <td align="right">{$UST}<strong>{#text_total#}</strong>{$TOTAL}{if $SHIPPING_INFO}<br />{$SHIPPING_INFO}{/if}</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> {else} <!-- cart has no content --> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="infoBoxHeading_right"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBoxHeading_right">{#heading_cart#}</td> <td align="right"><a href="{$LINK_CART}"><img src="{$tpl_path}img/icon_more_light.gif" alt="" /></a></td> </tr> </table> </td> </tr> <tr> <td class="infoBox_right" align="left"> <table width="95%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="boxText">{#text_empty_cart#}</td> </tr> </table> </td> </tr> </table> {/if} {if $ACTIVATE_GIFT=='true'} {if $GV_AMOUNT neq ''} <table class="infoBoxContents" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBox_right"><a href="{$LINK_CART}"><img src="{$tpl_path}img/img_gift.gif" alt="" /></a></td> <td valign="middle" class="infoBox_right"> <table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="100%" height="1" /></td> </tr> <tr> <td align="center" class="smalltext">{#voucher_balance#}</td> </tr> <tr> <td align="center" class="gvBox" valign="bottom">{$GV_AMOUNT}</td> </tr> </table> </td> </tr> </table> <table cellpadding="0" width="100%" cellspacing="0" border="0"> <tr> <td class="infoBox_right"><img src="{$tpl_path}img/pixel_trans.gif" alt="" width="100%" height="1" /></td> </tr> </table> {/if} {/if} {/if} templates/xtc4/source/boxes/shopping_cart.php <?php /* ----------------------------------------------------------------------------------------- $Id: shopping_cart.php 1281 2005-10-03 09:30:17Z mz $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(shopping_cart.php,v 1.18 2003/02/10); www.oscommerce.com (c) 2003 nextcommerce (shopping_cart.php,v 1.15 2003/08/17); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ $box_smarty = new smarty; $box_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/'); $box_content = ''; $box_price_string = ''; // include needed files require_once (DIR_FS_INC.'xtc_recalculate_price.inc.php'); if (strstr($PHP_SELF, FILENAME_CHECKOUT_PAYMENT) or strstr($PHP_SELF, FILENAME_CHECKOUT_CONFIRMATION) or strstr($PHP_SELF, FILENAME_CHECKOUT_SHIPPING)) $box_smarty->assign('deny_cart', 'true'); if ($_SESSION['cart']->count_contents() > 0) { $products = $_SESSION['cart']->get_products(); $products_in_cart = array (); $qty = 0; for ($i = 0, $n = sizeof($products); $i < $n; $i ++) { $qty += $products[$i]['quantity']; $products_in_cart[] = array ('QTY' => $products[$i]['quantity'], 'LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'],$products[$i]['name'])), 'NAME' => $products[$i]['name']); } $box_smarty->assign('PRODUCTS', $qty); $box_smarty->assign('empty', 'false'); } else { // cart empty $box_smarty->assign('empty', 'true'); } if ($_SESSION['cart']->count_contents() > 0) { $total =$_SESSION['cart']->show_total(); if ($_SESSION['customers_status']['customers_status_ot_discount_flag'] == '1' && $_SESSION['customers_status']['customers_status_ot_discount'] != '0.00') { if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) { $price = $total-$_SESSION['cart']->show_tax(false); } else { $price = $total; } $discount = $xtPrice->xtcGetDC($price, $_SESSION['customers_status']['customers_status_ot_discount']); $box_smarty->assign('DISCOUNT', $xtPrice->xtcFormat(($discount * (-1)), $price_special = 1, $calculate_currencies = false)); } if ($_SESSION['customers_status']['customers_status_show_price'] == '1') { if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) $total-=$discount; if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) $total-=$discount; if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 1) $total-=$discount; $box_smarty->assign('TOTAL', $xtPrice->xtcFormat($total, true)); } $box_smarty->assign('UST', $_SESSION['cart']->show_tax()); if (SHOW_SHIPPING=='true') { $box_smarty->assign('SHIPPING_INFO',' '.SHIPPING_EXCL.'<a href="javascript:newWin=void(window.open(\''.xtc_href_link(FILENAME_POPUP_CONTENT, 'coID='.SHIPPING_INFOS).'\', \'popup\', \'toolbar=0, width=640, height=600\'))"> '.SHIPPING_COSTS.'</a>'); } } if (ACTIVATE_GIFT_SYSTEM == 'true') { $box_smarty->assign('ACTIVATE_GIFT', 'true'); } // GV Code Start if (isset ($_SESSION['customer_id'])) { $gv_query = xtc_db_query("select amount from ".TABLE_COUPON_GV_CUSTOMER." where customer_id = '".$_SESSION['customer_id']."'"); $gv_result = xtc_db_fetch_array($gv_query); if ($gv_result['amount'] > 0) { $box_smarty->assign('GV_AMOUNT', $xtPrice->xtcFormat($gv_result['amount'], true, 0, true)); $box_smarty->assign('GV_SEND_TO_FRIEND_LINK', '<a href="'.xtc_href_link(FILENAME_GV_SEND).'">'); } } if (isset ($_SESSION['gv_id'])) { $gv_query = xtc_db_query("select coupon_amount from ".TABLE_COUPONS." where coupon_id = '".$_SESSION['gv_id']."'"); $coupon = xtc_db_fetch_array($gv_query); $box_smarty->assign('COUPON_AMOUNT2', $xtPrice->xtcFormat($coupon['coupon_amount'], true, 0, true)); } if (isset ($_SESSION['cc_id'])) { $box_smarty->assign('COUPON_HELP_LINK', '<a href="javascript:popupWindow(\''.xtc_href_link(FILENAME_POPUP_COUPON_HELP, 'cID='.$_SESSION['cc_id']).'\')">'); } // GV Code End $box_smarty->assign('LINK_CART', xtc_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); $box_smarty->assign('products', $products_in_cart); $box_smarty->caching = 0; $box_smarty->assign('language', $_SESSION['language']); $box_shopping_cart = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_cart.html'); $smarty->assign('box_CART', $box_shopping_cart); ?>[/php] Link to comment Share on other sites More sharing options...
userandi2007 Posted January 16, 2007 Author Report Share Posted January 16, 2007 es geht wieder... ihr seid echt der Hammer!!! Danke. Andi. Link to comment Share on other sites More sharing options...
userandi2007 Posted January 16, 2007 Author Report Share Posted January 16, 2007 wenn ich Artikel in den Warenkorb lege und auf "zur Kasse" klicke erhalte ich Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web5/html/shop/templates/lux/source/boxes/shopping_cart.php:104) in /srv/www/htdocs/web5/html/shop/inc/xtc_redirect.inc.php on line 29 hmmmmm und nü? Danke Andi. Link to comment Share on other sites More sharing options...
e-h-bikestore Posted January 16, 2007 Report Share Posted January 16, 2007 Der Fehler ist mir neu.... Kann ich leider wenig zu sagen.... ist die Frage, welche Shopversion du einsetzt. Die Dateien oben sind von der 3.04 SP2 Auf jeden Fall ist in der Datei "shop/inc/xtc_redirect.inc.php" in Zeile 29 nen Problem.... Aber ich kann da so nix machen. Sorry. Link to comment Share on other sites More sharing options...
userandi2007 Posted January 16, 2007 Author Report Share Posted January 16, 2007 wenn da schon ereg... drinsteht........gg header('Location: ' . eregi_replace("[\r\n]+(.*)$", "", $url)); Andi:cool: Link to comment Share on other sites More sharing options...
userandi2007 Posted January 17, 2007 Author Report Share Posted January 17, 2007 ES WAR EIN LEERZEICHEN IN DER XTC_IND.PHP am Schluss nach dem PHP End Tag, deshalb lief der halbe Shop nicht. Gestern abend fast drei Stunden herumprobiert, heute morgen hingesetzt und in zwei Minuten habe ich es gehabt. Naja, so ist das eben... Grüsse Andi. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.