Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    1
    Plugin Contributions
    0

    Default new link to shopping cart sidebox

    Hi! How do I add a link to my shopping cart sidebox and add the text "total" in front of the total amount?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: new link to shopping cart sidebox

    A crude, but quick way is to HARD CODE this into:-

    tpl_shopping_cart.php

    ( original file in /template_default/sideboxes/, so save edited version to /your_template/sideboxes/ ).

    FIND (around line 40 or so):

    Code:
      if ($_SESSION['cart']->count_contents() > 0) {
        $content .= '<hr />';
        $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
        $content .= '<br class="clearBoth" />';
      }
    EDIT TO THIS

    Code:
      if ($_SESSION['cart']->count_contents() > 0) {
        $content .= '<hr />';
        $content .= '<div class="cartBoxTotal">Total: ' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
        $content .= '<br class="clearBoth" />';
      }
    20 years a Zencart User

 

 

Similar Threads

  1. Shopping cart sidebox link change colour
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2011, 02:51 AM
  2. Shopping Cart Link sidebox header
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Sep 2010, 02:41 PM
  3. Remove [more] link from shopping cart sidebox header
    By kachana in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Oct 2008, 07:31 PM
  4. Replies: 9
    Last Post: 23 Jan 2007, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg