Jump to content
xt:Commerce Community Forum

Link ins Menü von xt Commerce einfügen?


kostja984

Recommended Posts

Hallo, ich bin schon langsam am verzweifeln.

Ich möchte im meinem Shop im Hautmenü unter Informationen

einen Link zum Ebay-Shop hinzufügen, doch es klappt einfach nicht.

Kann mir jemand Helfen?

Ich habe versucht die verlinkung in die Detei templates/Shop/index.php einzufügen , doch jedesmal stützt der Shop ab.

Hier die index.php Code:

{config_load file="$language/lang_$language.conf" section="index"}

<div id="wrap">

<div id="storename"><div style="float: left;height: 60px;width: 360px;margin-top: 4px;">

<!-- animBoxes -->

{literal}

<script type="text/javascript"><!--

xAddEventListener(window, 'load', function() { newbox = new animBox('animBoxCart', 1, 2, 1, 250); xOpacity('animBoxCart', 0.9); newbox.reposition('btn_animBoxCart', '-', '+'); }, false);

--></script>

{/literal}

<!--

<?php echo ($cart->count_contents() > 0) ? (sizeof($cart->get_products()) * 500 - (sizeof($cart->get_products()) - 1) * 250) : 250; ?>

-->

<div id="animBoxCart" class="animBoxDropover jsContainer">

{php}

define('CART_IMAGE_WIDTH', 50);

define('CART_IMAGE_HEIGHT', 50);

define('SINGLE','Einzelpreis: ');

define('TOTAL','Summe: ');

define('CART_EMPTY','Ihr Warenkorb ist noch leer');

define('SHOWDETAILS','» Details anzeigen');

define('SHOWCART','» Warenkorb anzeigen');

if ($_SESSION['cart']->count_contents() > 0) {

echo '<table width="100%" cellspacing="0" cellpadding="5">';

echo ' <tr><td class="animBoxCartLink" colspan="2"><a href="'. xtc_href_link(FILENAME_SHOPPING_CART) .'">'.SHOWCART.'</a></td></tr>';

$products = $_SESSION['cart']->get_products();

for ($i = 0, $n = sizeof($products); $i < $n; $i ++) {

$products_name = ' <tr>' .

' <td class="animBoxCartImage" width="'. CART_IMAGE_WIDTH .'" align="center"><a href="'. xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'],$products[$i]['name'])).'"><img src="templates/xtm105_bs24pro/img/lupe.gif"/></a></td>' .

' <td class="animBoxCartContent">' .

' <div class="animBoxCartName"><a href="'. xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'],$products[$i]['name'])).'">'. $products[$i]['name'] .'</a></div>';

$products_name .= 'Menge: '. $products[$i]['quantity'] .

' <div class="animBoxCartPrice">'.SINGLE.$products[$i]['price'].' €</a></div>' .

' <a href="'. xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($products[$i]['id'],$products[$i]['name'])).'">'.SHOWDETAILS.'</a>' .

' </td>' .

' </tr>';

echo $products_name;

}

echo ' <tr><td class="animBoxCartTotal" colspan="2">'. TOTAL . $_SESSION['cart']->show_total() .' €</td></tr>';

echo '</table>';

}

else // Wenn Korb leer

{

echo '<div class="animBoxCartNotice">'.CART_EMPTY.'</div>';

}

{/php}

</div>

<!-- animBoxes_eof -->

<img src="{$tpl_path}img/header.png" style="float: none; left: 570px; position: relative;"/>

</div>

<div id="topmenuwrap">

<ul id="topmenu">

<img src="{$tpl_path}img/back-topmenu_lf.jpg" style="float: left; position: relative; top: 75px;"/>

<li><a href="{$index}">{#link_index#}</a></li>

<li><a href="{$cart}">{#link_cart#}</a></li>

{if $account}

<li><a href="{$account}">{#link_account#}</a></li>

{/if}

{if $smarty.session.customers_status.customers_status_id == '1'}

<li><a href="{php}echo xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL');{/php}">{#new_customer#}</a></li>

{/if}

<li><a href="{$checkout}">{#link_checkout#}</a></li>

{if $smarty.session.customer_id}

<li><a href="{$logoff}">{#link_logoff#}</a></li>

{else}

<li><a href="{$login}">{#link_login#}</a></li>

{/if}

<img src="{$tpl_path}img/back-topmenu_rt.jpg" style=" float: right;position: relative;top: 75px;"/>

</ul>

</div>

</div>

<div id="header">

<img src="{$tpl_path}img/back-pathway_lf.jpg" style=" float: left;position: relative;top: 0px;"/>

<img src="{$tpl_path}img/back-pathway_rt.jpg" style=" float: right;position: relative;top: 0px;"/>

<div style="border-left: 1px dotted #999999;float: right;position: relative;text-align: center;top: -36px;">

<a style="text-decoration: none;" href="{php} echo xtc_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); {/php}">

<div id="btn_animBoxCart" class="jsTrigger">

<table width="100%" cellspacing="0" cellpadding="0" align="center"">

{$box_CART}

</table>

</div>

</a>

</div>

<div id="search">{$box_SEARCH}</div>

<!-- <div id="logo"><a href="{$index}"><img src="{$tpl_path}img/spacer.gif" width="529" height="290" alt="{$store_name}" /></a></div>

-->

</div>

<div id="contentwrap"> {if !strstr ($smarty.server.PHP_SELF, 'checkout')}

<div id="leftcol">

{$box_CATEGORIES}

{$box_SPECIALS}

{*$box_WHATSNEW*}

{$box_LOGIN}

{*$box_BESTSELLERS*}

{*$box_REVIEWS*}

{$box_INFORMATION}

{$box_ADMIN}

</div>

{/if}

<div

{if !strstr ($smarty.server.PHP_SELF, 'checkout')}

id="content"

{else}

id="contentfull"

{/if}

>

{if strstr ($smarty.server.PHP_SELF, 'index')}

{if $smarty.get.cPath==null and $smarty.get.manufacturers_id==''}

{if $BANNER}{$BANNER}{/if}

{/if}

{/if}

{$main_content}

</div>

{if !strstr ($smarty.server.PHP_SELF, 'checkout')}

<div id="rightcol"> </div>

{/if} </div>

</div>

{$box_CONTENT}

<div class="footer2">{$smarty.const.TITLE} © 2009-{$smarty.now|date_format:"%Y"} | © <a href="http://www.bannershop24.de/ihr-eigener-webshop.html" target="_blank" title="Ihr eigener Webshop - eCommerce|Internetshops|WebDesign & 24h-PC-Notdienst Bad Lauchstädt Saalekreis Halle Merseburg Mücheln Milzau Klobikau Schafstädt">Template by BannerShop24 - WebDesign & Shopsysteme</a></div>

<!-- LiveZilla Live Chat, Live Support and Customer Support Software for your website Chat Button Link Code -->

<div style="position: fixed; right: 10px; bottom: 10px;">

<a href="javascript:void(window.open('http://www.bannershop24.de/zilla/chat.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes''>http://www.bannershop24.de/zilla/chat.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://www.bannershop24.de/zilla/image.php?id=04" border="0" alt="" /></a><noscript>

<div><a href="http://www.bannershop24.de/zilla/chat.php" target="_blank">Start Live Help Chat</a></div></noscript>

</div>

<!-- LiveZilla Live Chat, Live Support and Customer Support Software for your website Chat Button Link Code -->

Wie bekomme ich den einen Link in meine Index.php?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...