Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / new link to shopping cart sidebox

new link to shopping cart sidebox

Locked

Views: 799

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
5 Nov 2008, 1:24 PM
#1
kareemu avatar

kareemu

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

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?

5 Nov 2008, 1:57 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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):

  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

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