Forums / Templates, Stylesheets, Page Layout / How to add links in the sidebox??

How to add links in the sidebox??

Locked

Views: 820

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jan 2009, 5:19 AM
#1
nyanko_chan avatar

nyanko_chan

New Zenner

Join Date:
Sep 2008
Posts:
40
Plugin Contributions:
0

How to add links in the sidebox??

Hello, master zenners!!

I’m trying to add links in my Cart Summary Sidebox. I want it to look like:

Items:
Amount:

Minimum Order | Cart | Checkout

I don’t know much of codes, and just found (took me ages to find this info too) that I need to add some codes into my templates/CUSTOM/sideboxes/tpl_cart_summary.php.

Can someone show/teach me what to add??

Thank you so much for your help :smile:

Nyanko chan =^.^=

16 Jan 2009, 2:04 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: How to add links in the sidebox??

I don't think:

tpl_cart_summary.php

is a core zencart file.

Did this come with your template? If so, you will have to contact the people who wrote the template to help you.

Or is it a zc add-on?

I've not seen the file before

18 Jan 2009, 7:47 AM
#3
nyanko_chan avatar

nyanko_chan

New Zenner

Join Date:
Sep 2008
Posts:
40
Plugin Contributions:
0

Re: How to add links in the sidebox??

It is a zc add-on (Cart Summary Sidebox).

The original code for the tpl_cart_summary.php is:

<?php
/**
 * Side Box Template
 *
 * @package sideboxes
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_cart_summary.php  $
 */
  $content = "";
  $content .= $totalsDisplay;  /* this info comes from the module file */ 


?>

This produces the my side cart:


Your Cart Contents:
Items:
Amount:

I’ve changed the code to below:

<?php
/**
 * Side Box Template
 *
 * @package sideboxes
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_cart_summary.php  $
 */
  $content = "";
  $content .= $totalsDisplay;  /* this info comes from the module file */ 
  $content .= '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . Checkout . '</a>'; ?>


?>

And now my Cart Summary Sidebox looks like:


Your Cart Contexts:
Items:
Amount:
Checkout

Can someone teach me how to fix it and add two more links? My goal is to make the Cart Summary Sidebox to look like below:

?>
Your Cart Contents:
Items:
Amount:

Minimum Order | Cart | Checkout

Thank you so much for you help!!

nyanko chan =^.^=