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?
New Zenner
Hi! How do I add a link to my shopping cart sidebox and add the text "total" in front of the total amount?
Totally Zenned
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" />';
}
20 years a Zencart User
Tell staff why this post should be reviewed.