coppermine-gallery.com/forum

Support => Deutsch (German) => Language Specific Support => cpg1.4.x Deutsch (German) => Topic started by: cap on February 22, 2008, 05:32:52 PM

Title: {CART_MENU} als Liste
Post by: cap on February 22, 2008, 05:32:52 PM
Hallo Stramm

Hab noch eine Frage: Wie kann ich die drei Punkte des {CART_MENU} ( X Bild(er) im Warenkorb :: Meine Bestellung :: Bestellen! ) als Liste anzeigen lassen. Ich möchte, dass die drei Einträge genau gleich aussehen wie das restliche Menü, siehe Bild.

Danke
Title: Re: {CART_MENU} als Liste
Post by: Stramm on February 22, 2008, 06:16:33 PM
In codebase.php editierst Du die Funktion photoshop_user_menu. Dann sollte es klappen.
Title: Re: {CART_MENU} als Liste
Post by: cap on February 22, 2008, 11:46:03 PM
Guten Abend Stramm

Danke für Deinen Tipp. Hat mich zwar noch einiges an Hirnschmalz, "Try and Error" und Schweiss gekostet, aber ich habe es geschafft.
Stolz auf mich bin  ;D

andere sollen es einfacher haben:
//the user menu, 'ximages in cart, my orders, checkout'
function photoshop_user_menu(&$html){
    global $template_sys_menu_spacer, $lang_photoshop;
    if (!strpos($html,'{CART_MENU}')) {
$html = str_replace('{ADMIN_MENU}','{CART_MENU}<br />{ADMIN_MENU} ',$html);
}
//if you do not want the MyOrders page then uncomment the following line and comment out the one with the menu entry
   
//$cart_menu =
"<a href=\"index.php?file=photo_shop/photo_shop_cart\">".photoshop_count()." {$lang_photoshop['in_cart']}</a><br>
<a href=\"index.php?file=photo_shop/photo_shop_checkout\">{$lang_photoshop['checkout']}</a>";
      $cart_menu = "<h3>Shopmenü</h3><ul><li><a href=\"index.php?file=photo_shop/photo_shop_cart\">".photoshop_count()." {$lang_photoshop['in_cart']}</a><br></li>";
if (USER_ID) $cart_menu .= " <li><a href=\"index.php?file=photo_shop/photo_shop_myorders\" >{$lang_photoshop['myorders']}</a></li>";
$cart_menu .= " <li><a href=\"index.php?file=photo_shop/photo_shop_checkout\" >{$lang_photoshop['checkout']}</a></li></ul>";

    $html = str_replace('{CART_MENU}',$cart_menu,$html);

    return $html;
}


Danke Cap